Changeset 84 in flair-src for branches/mavlink/tools/Controller/Mavlink/src/GuiGcs.cpp
- Timestamp:
- 09/23/16 11:13:25 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mavlink/tools/Controller/Mavlink/src/GuiGcs.cpp
r83 r84 42 42 //outputSocket = new Socket((Thread *)this, "output socket", outputAddress + ":" + to_string(outputPort)); 43 43 44 missionPauseEnabled = false; 45 44 46 mavCom = new MavlinkUDP(outputAddress, outputPort); 45 47 } … … 78 80 } 79 81 80 void GuiGcs::MissionResume() { 81 cout << "MavPlanner GuiGcs MissionResume" << endl; 82 void GuiGcs::MissionPause() { 83 cout << "MavPlanner GuiGcs MissionPause" << endl; 84 // send pause/continue depending on the state of the button 85 if(missionPauseEnabled) { 86 missionPauseEnabled = false; 87 cout << "Sent pause command.\n"; 88 mavCom->cmdDoPauseContinue(mavCom->target.getSysID(), mavCom->target.getCompID(), 0); 89 } else { 90 missionPauseEnabled = true; 91 cout << "Sent continue command.\n"; 92 mavCom->cmdDoPauseContinue(mavCom->target.getSysID(), mavCom->target.getCompID(), 1); 93 } 94 mavCom->waitCommandAck(ACK_TIMEOUT); 82 95 } 83 96
Note:
See TracChangeset
for help on using the changeset viewer.