AP_Arming: convert to delegates

This commit is contained in:
Andrew Tridgell 2015-05-13 18:32:16 +10:00
parent daa2c611a9
commit c3aa8d67fa

View File

@ -38,7 +38,7 @@ public:
};
//for the hacky funciton pointer to gcs_send_text_p
typedef void (*gcs_send_t_p)(gcs_severity, const prog_char_t*);
typedef DELEGATE_FUNCTION2(void, gcs_severity, const prog_char_t*) gcs_send_t_p;
AP_Arming(const AP_AHRS &ahrs_ref, const AP_Baro &baro, Compass &compass,
const enum HomeState &home_set, gcs_send_t_p);