mirror of https://github.com/ArduPilot/ardupilot
AntennaTracker: add infrastructure to handle command longs as command ints
This commit is contained in:
parent
527f3d5728
commit
db217d47fa
|
@ -412,7 +412,7 @@ MAV_RESULT GCS_MAVLINK_Tracker::_handle_command_preflight_calibration_baro(const
|
|||
return ret;
|
||||
}
|
||||
|
||||
MAV_RESULT GCS_MAVLINK_Tracker::handle_command_component_arm_disarm(const mavlink_command_long_t &packet)
|
||||
MAV_RESULT GCS_MAVLINK_Tracker::handle_command_component_arm_disarm(const mavlink_command_int_t &packet)
|
||||
{
|
||||
if (is_equal(packet.param1,1.0f)) {
|
||||
tracker.arm_servos();
|
||||
|
|
|
@ -19,7 +19,7 @@ protected:
|
|||
uint32_t telem_delay() const override { return 0; }
|
||||
|
||||
|
||||
MAV_RESULT handle_command_component_arm_disarm(const mavlink_command_long_t &packet) override;
|
||||
MAV_RESULT handle_command_component_arm_disarm(const mavlink_command_int_t &packet) override;
|
||||
MAV_RESULT _handle_command_preflight_calibration_baro(const mavlink_message_t &msg) override;
|
||||
MAV_RESULT handle_command_long_packet(const mavlink_command_long_t &packet) override;
|
||||
|
||||
|
|
Loading…
Reference in New Issue