2017-05-30 22:58:20 +00:00
|
|
|
#include "ch.h"
|
|
|
|
#include "hal.h"
|
|
|
|
|
2017-06-12 14:46:03 +00:00
|
|
|
#include "tracking.h"
|
|
|
|
#include "watchdog.h"
|
|
|
|
#include "pi2c.h"
|
|
|
|
#include "pac1720.h"
|
2017-05-30 22:58:20 +00:00
|
|
|
|
|
|
|
systime_t watchdog_tracking;
|
|
|
|
|
2017-06-12 14:46:03 +00:00
|
|
|
void start_essential_threads(void) {
|
2017-09-19 01:36:38 +00:00
|
|
|
init_watchdog(); // Init watchdog
|
|
|
|
pi2cInit(); // Initialize I2C
|
|
|
|
pac1720_init(); // Initialize current measurement
|
|
|
|
init_tracking_manager(false); // Initialize tracking manager (without GPS, GPS is initialized if needed by position thread)
|
2017-10-07 04:55:11 +00:00
|
|
|
chThdSleepMilliseconds(50); // Wait for tracking manager to initialize
|
2017-06-12 14:46:03 +00:00
|
|
|
}
|
|
|
|
|