Rover: handle landing target mavlink message

This commit is contained in:
Shiv Tyagi 2022-06-19 11:22:02 +05:30 committed by Randy Mackay
parent bc3ff20871
commit 7b573fa2c4
2 changed files with 10 additions and 0 deletions

View File

@ -1072,6 +1072,15 @@ void GCS_MAVLINK_Rover::handle_radio(const mavlink_message_t &msg)
handle_radio_status(msg, rover.should_log(MASK_LOG_PM));
}
/*
handle a LANDING_TARGET command. The timestamp has been jitter corrected
*/
void GCS_MAVLINK_Rover::handle_landing_target(const mavlink_landing_target_t &packet, uint32_t timestamp_ms)
{
#if PRECISION_LANDING == ENABLED
rover.precland.handle_msg(packet, timestamp_ms);
#endif
}
uint64_t GCS_MAVLINK_Rover::capabilities() const
{

View File

@ -42,6 +42,7 @@ private:
void handle_set_position_target_local_ned(const mavlink_message_t &msg);
void handle_set_position_target_global_int(const mavlink_message_t &msg);
void handle_radio(const mavlink_message_t &msg);
void handle_landing_target(const mavlink_landing_target_t &msg, uint32_t timestamp_ms) override;
void send_servo_out();