AP_Arming: use functor macros

Functor is not yet being used but let's make is macro fallback to the
previous Delegate implementation for easy of transition between the two.
This commit is contained in:
Lucas De Marchi 2015-05-24 20:24:11 -03:00 committed by Andrew Tridgell
parent cc1fbddc95
commit ca7db5cdc1

View File

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