Tracker: handle SET_SERVO and MISSION_START as command_int+command_long

This commit is contained in:
Peter Barker 2023-08-25 18:00:36 +10:00 committed by Peter Barker
parent 8ee773f77d
commit 22141a8bc6
2 changed files with 3 additions and 3 deletions

View File

@ -425,7 +425,7 @@ MAV_RESULT GCS_MAVLINK_Tracker::handle_command_component_arm_disarm(const mavlin
return MAV_RESULT_UNSUPPORTED;
}
MAV_RESULT GCS_MAVLINK_Tracker::handle_command_long_packet(const mavlink_command_long_t &packet, const mavlink_message_t &msg)
MAV_RESULT GCS_MAVLINK_Tracker::handle_command_int_packet(const mavlink_command_int_t &packet, const mavlink_message_t &msg)
{
switch(packet.command) {
@ -444,7 +444,7 @@ MAV_RESULT GCS_MAVLINK_Tracker::handle_command_long_packet(const mavlink_command
return MAV_RESULT_ACCEPTED;
default:
return GCS_MAVLINK::handle_command_long_packet(packet, msg);
return GCS_MAVLINK::handle_command_int_packet(packet, msg);
}
}

View File

@ -21,7 +21,7 @@ protected:
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, const mavlink_message_t &msg) override;
MAV_RESULT handle_command_int_packet(const mavlink_command_int_t &packet, const mavlink_message_t &msg) override;
int32_t global_position_int_relative_alt() const override {
return 0; // what if we have been picked up and carried somewhere?