Plane: Expose the AFS instance to MAVLink

This commit is contained in:
Michael du Breuil 2017-07-24 23:35:52 -07:00 committed by Francisco Ferreira
parent 97c1785bef
commit 833ec1336e
2 changed files with 6 additions and 0 deletions

View File

@ -1900,6 +1900,11 @@ AP_ServoRelayEvents *GCS_MAVLINK_Plane::get_servorelayevents() const
return &plane.ServoRelayEvents;
}
AP_AdvancedFailsafe *GCS_MAVLINK_Plane::get_advanced_failsafe() const
{
return &plane.afs;
}
AP_Rally *GCS_MAVLINK_Plane::get_rally() const
{
return &plane.rally;

View File

@ -24,6 +24,7 @@ protected:
Compass *get_compass() const override;
AP_Camera *get_camera() const override;
AP_ServoRelayEvents *get_servorelayevents() const override;
AP_AdvancedFailsafe *get_advanced_failsafe() const override;
AP_Rally *get_rally() const override;
AP_GPS *get_gps() const override;