Skip to content

Commit

Permalink
Merge pull request #7 from ethz-asl/fix/compIdForSensorpodReset
Browse files Browse the repository at this point in the history
Using proper method to send command message
  • Loading branch information
philipoe committed Jun 9, 2016
2 parents c109238 + f5689d7 commit a1cbd9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui/sensorpodstatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ void SensorpodStatus::PowerCycleSensorpodCmd()

if (reply == QMessageBox::Yes) {
//Send the message via the currently active UAS
ASLUAV *tempUAS = (ASLUAV*) UASManager::instance()->getActiveUAS();;
if (tempUAS) tempUAS->SendCommandLongTarget(MAV_CMD_PAYLOAD_CONTROL, (uint8_t) 50, 1.0f);
ASLUAV *tempUAS = (ASLUAV*) UASManager::instance()->getActiveUAS();
if (tempUAS) {
tempUAS->SendCommandLong(MAV_CMD_PAYLOAD_CONTROL, 1.0f);
}
}

}
Expand Down

0 comments on commit a1cbd9b

Please sign in to comment.