global: use static method to construct AP_Scheduler

This commit is contained in:
Lucas De Marchi 2017-08-23 00:43:34 -07:00 committed by Francisco Ferreira
parent d3e12eb899
commit de680dac5b
6 changed files with 8 additions and 8 deletions

View File

@ -130,7 +130,7 @@ private:
ParametersG2 g2; ParametersG2 g2;
// main loop scheduler // main loop scheduler
AP_Scheduler scheduler; AP_Scheduler scheduler = AP_Scheduler::create();
// mapping between input channels // mapping between input channels
RCMapper rcmap; RCMapper rcmap;

View File

@ -93,8 +93,8 @@ private:
Parameters g; Parameters g;
// main loop scheduler // main loop scheduler
AP_Scheduler scheduler; AP_Scheduler scheduler = AP_Scheduler::create();
// notification object for LEDs, buzzers etc // notification object for LEDs, buzzers etc
AP_Notify notify; AP_Notify notify;

View File

@ -175,7 +175,7 @@ private:
ParametersG2 g2; ParametersG2 g2;
// main loop scheduler // main loop scheduler
AP_Scheduler scheduler; AP_Scheduler scheduler = AP_Scheduler::create();
// AP_Notify instance // AP_Notify instance
AP_Notify notify; AP_Notify notify;

View File

@ -166,8 +166,8 @@ private:
ParametersG2 g2; ParametersG2 g2;
// main loop scheduler // main loop scheduler
AP_Scheduler scheduler; AP_Scheduler scheduler = AP_Scheduler::create();
// mapping between input channels // mapping between input channels
RCMapper rcmap; RCMapper rcmap;

View File

@ -145,7 +145,7 @@ private:
ParametersG2 g2; ParametersG2 g2;
// main loop scheduler // main loop scheduler
AP_Scheduler scheduler; AP_Scheduler scheduler = AP_Scheduler::create();
// AP_Notify instance // AP_Notify instance
AP_Notify notify; AP_Notify notify;

View File

@ -17,7 +17,7 @@ public:
private: private:
AP_InertialSensor ins = AP_InertialSensor::create(); AP_InertialSensor ins = AP_InertialSensor::create();
AP_Scheduler scheduler; AP_Scheduler scheduler = AP_Scheduler::create();
uint32_t ins_counter; uint32_t ins_counter;
static const AP_Scheduler::Task scheduler_tasks[]; static const AP_Scheduler::Task scheduler_tasks[];