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;
// main loop scheduler
AP_Scheduler scheduler;
AP_Scheduler scheduler = AP_Scheduler::create();
// mapping between input channels
RCMapper rcmap;

View File

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

View File

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

View File

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

View File

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

View File

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