global: use static method to construct AP_Notify

This commit is contained in:
Lucas De Marchi 2017-08-23 07:55:06 -07:00 committed by Francisco Ferreira
parent 9463dbb408
commit 62ac0ab8aa
5 changed files with 5 additions and 5 deletions

View File

@ -251,7 +251,7 @@ private:
} failsafe;
// notification object for LEDs, buzzers etc (parameter set to false disables external leds)
AP_Notify notify;
AP_Notify notify = AP_Notify::create();
// true if we have a position estimate from AHRS
bool have_position;

View File

@ -96,7 +96,7 @@ private:
AP_Scheduler scheduler = AP_Scheduler::create();
// notification object for LEDs, buzzers etc
AP_Notify notify;
AP_Notify notify = AP_Notify::create();
uint32_t start_time_ms = 0;

View File

@ -178,7 +178,7 @@ private:
AP_Scheduler scheduler = AP_Scheduler::create();
// AP_Notify instance
AP_Notify notify;
AP_Notify notify = AP_Notify::create();
// used to detect MAVLink acks from GCS to stop compassmot
uint8_t command_ack_counter;

View File

@ -186,7 +186,7 @@ private:
RC_Channel *channel_rudder;
// notification object for LEDs, buzzers etc (parameter set to false disables external leds)
AP_Notify notify;
AP_Notify notify = AP_Notify::create();
DataFlash_Class DataFlash;

View File

@ -148,7 +148,7 @@ private:
AP_Scheduler scheduler = AP_Scheduler::create();
// AP_Notify instance
AP_Notify notify;
AP_Notify notify = AP_Notify::create();
// primary input control channels
RC_Channel *channel_roll;