Browse Source

global: use static method to construct AP_Notify

master
Lucas De Marchi 8 years ago committed by Francisco Ferreira
parent
commit
62ac0ab8aa
  1. 2
      APMrover2/Rover.h
  2. 2
      AntennaTracker/Tracker.h
  3. 2
      ArduCopter/Copter.h
  4. 2
      ArduPlane/Plane.h
  5. 2
      ArduSub/Sub.h

2
APMrover2/Rover.h

@ -251,7 +251,7 @@ private: @@ -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;

2
AntennaTracker/Tracker.h

@ -96,7 +96,7 @@ private: @@ -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;

2
ArduCopter/Copter.h

@ -178,7 +178,7 @@ private: @@ -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;

2
ArduPlane/Plane.h

@ -186,7 +186,7 @@ private: @@ -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;

2
ArduSub/Sub.h

@ -148,7 +148,7 @@ private: @@ -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;

Loading…
Cancel
Save