void DSKY::ResetPressed() { KeyClick(); SendKeyCode(18); // DS20061225 If the RESTART light is lit, this resets it externally to the AGC program. CSM 104 SYS HBK pg 399 if (RestartLit()) { ClearRestart(); } if(agc.Yaagc && agc.vagc.VoltageAlarm != 0){ agc.vagc.VoltageAlarm = 0; } }
double MathematicaLib::DoTheMath(char const* equation){ commandHistory.insert(commandHistory.end(), equation); // saves each inputted command into a vector try{ if (strcmp("Help", equation) == 0) { Help(); return 0.0; } else if (strcmp("Undo", equation) == 0) { return Undo(); } else if (strcmp("ClearRestart", equation) == 0){ ClearRestart(); return 0.0; } else if (strcmp("History", equation) == 0){ History(commandHistory); return 0.0; } else if (strcmp("Load", equation) == 0){ Load(); return 0.0; } else if (strlen(equation) > 100) { cout << "Input enetered is too big" << endl; return 0.0; } // used to limit input else { return IsThisAnEquation(equation); } } catch (exception e){ cout << "Invalid input" << endl; return 0; } return 0.0; // when an equations was not inputted }// end of DoTheMath