|
|
|
@ -1269,30 +1269,6 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
@@ -1269,30 +1269,6 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
|
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MAV_CMD_DO_SET_SERVO: |
|
|
|
|
if (sub.ServoRelayEvents.do_set_servo(packet.param1, packet.param2)) { |
|
|
|
|
result = MAV_RESULT_ACCEPTED; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MAV_CMD_DO_REPEAT_SERVO: |
|
|
|
|
if (sub.ServoRelayEvents.do_repeat_servo(packet.param1, packet.param2, packet.param3, packet.param4*1000)) { |
|
|
|
|
result = MAV_RESULT_ACCEPTED; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MAV_CMD_DO_SET_RELAY: |
|
|
|
|
if (sub.ServoRelayEvents.do_set_relay(packet.param1, packet.param2)) { |
|
|
|
|
result = MAV_RESULT_ACCEPTED; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MAV_CMD_DO_REPEAT_RELAY: |
|
|
|
|
if (sub.ServoRelayEvents.do_repeat_relay(packet.param1, packet.param2, packet.param3*1000)) { |
|
|
|
|
result = MAV_RESULT_ACCEPTED; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN: |
|
|
|
|
if (is_equal(packet.param1,1.0f) || is_equal(packet.param1,3.0f)) { |
|
|
|
|
// Send an invalid signal to the motors to prevent spinning due to neutral (1500) pwm pulse being cut short
|
|
|
|
@ -1753,6 +1729,11 @@ AP_Mission *GCS_MAVLINK_Sub::get_mission()
@@ -1753,6 +1729,11 @@ AP_Mission *GCS_MAVLINK_Sub::get_mission()
|
|
|
|
|
return &sub.mission; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
AP_ServoRelayEvents *GCS_MAVLINK_Sub::get_servorelayevents() const |
|
|
|
|
{ |
|
|
|
|
return &sub.ServoRelayEvents; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
AP_Rally *GCS_MAVLINK_Sub::get_rally() const |
|
|
|
|
{ |
|
|
|
|
#if AC_RALLY == ENABLED |
|
|
|
|