2019-09-13 12:41:55 -03:00
|
|
|
#include "mode.h"
|
|
|
|
|
|
|
|
#include "Tracker.h"
|
|
|
|
|
|
|
|
void ModeAuto::update()
|
|
|
|
{
|
|
|
|
if (tracker.vehicle.location_valid) {
|
|
|
|
update_auto();
|
2019-10-21 03:50:19 -03:00
|
|
|
} else if (tracker.target_set || (tracker.g.auto_opts.get() & (1 << 0)) != 0) {
|
2019-09-13 12:41:55 -03:00
|
|
|
update_scan();
|
|
|
|
}
|
|
|
|
}
|