AntennaTracker: add infrastructure to handle command longs as command ints

This commit is contained in:
Peter Barker 2023-05-02 22:22:25 +10:00 committed by Andrew Tridgell
parent 527f3d5728
commit db217d47fa
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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;