|
|
|
@ -27,6 +27,7 @@ private:
@@ -27,6 +27,7 @@ private:
|
|
|
|
|
void five_second_call(void); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
static AP_BoardConfig board_config = AP_BoardConfig::create(); |
|
|
|
|
static SchedTest schedtest; |
|
|
|
|
|
|
|
|
|
#define SCHED_TASK(func, _interval_ticks, _max_time_micros) SCHED_TASK_CLASS(SchedTest, &schedtest, func, _interval_ticks, _max_time_micros) |
|
|
|
@ -46,7 +47,7 @@ const AP_Scheduler::Task SchedTest::scheduler_tasks[] = {
@@ -46,7 +47,7 @@ const AP_Scheduler::Task SchedTest::scheduler_tasks[] = {
|
|
|
|
|
void SchedTest::setup(void) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
AP_BoardConfig{}.init(); |
|
|
|
|
board_config.init(); |
|
|
|
|
|
|
|
|
|
ins.init(scheduler.get_loop_rate_hz()); |
|
|
|
|
|
|
|
|
|