mirror of https://github.com/ArduPilot/ardupilot
Blimp: provide default implemenation of handle_change_alt_request
The TODO items to actually implement these are almost 6 years old. Since then these methods have been burning space. This doesn't even make sense for several vehicles, so a default implementation which does nothing seems OK.
This commit is contained in:
parent
2372a4f3b6
commit
24a5f57b45
|
@ -383,14 +383,6 @@ bool GCS_MAVLINK_Blimp::handle_guided_request(AP_Mission::Mission_Command &cmd)
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void GCS_MAVLINK_Blimp::handle_change_alt_request(AP_Mission::Mission_Command &cmd)
|
|
||||||
{
|
|
||||||
// add home alt if needed
|
|
||||||
if (cmd.content.location.relative_alt) {
|
|
||||||
cmd.content.location.alt += blimp.ahrs.get_home().alt;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void GCS_MAVLINK_Blimp::packetReceived(const mavlink_status_t &status,
|
void GCS_MAVLINK_Blimp::packetReceived(const mavlink_status_t &status,
|
||||||
const mavlink_message_t &msg)
|
const mavlink_message_t &msg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -48,7 +48,6 @@ private:
|
||||||
|
|
||||||
void handleMessage(const mavlink_message_t &msg) override;
|
void handleMessage(const mavlink_message_t &msg) override;
|
||||||
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override;
|
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override;
|
||||||
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override;
|
|
||||||
bool try_send_message(enum ap_message id) override;
|
bool try_send_message(enum ap_message id) override;
|
||||||
|
|
||||||
void packetReceived(const mavlink_status_t &status,
|
void packetReceived(const mavlink_status_t &status,
|
||||||
|
|
Loading…
Reference in New Issue