Rover: windvane update called from scheduler at 20hz

This commit is contained in:
Randy Mackay 2018-09-26 21:30:59 +09:00
parent 31e2d5d2ad
commit 4a5b56c929
3 changed files with 1 additions and 7 deletions

View File

@ -53,6 +53,7 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
SCHED_TASK_CLASS(AP_Baro, &rover.barometer, update, 10, 200),
SCHED_TASK_CLASS(AP_Beacon, &rover.g2.beacon, update, 50, 200),
SCHED_TASK_CLASS(AP_Proximity, &rover.g2.proximity, update, 50, 200),
SCHED_TASK_CLASS(AP_WindVane, &rover.g2.windvane, update, 20, 100),
SCHED_TASK(update_visual_odom, 50, 200),
SCHED_TASK(update_wheel_encoder, 50, 200),
SCHED_TASK(update_compass, 10, 200),
@ -95,7 +96,6 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
#if ADVANCED_FAILSAFE == ENABLED
SCHED_TASK(afs_fs_check, 10, 200),
#endif
SCHED_TASK(windvane_update, 10, 200),
};
void Rover::read_mode_switch()

View File

@ -525,7 +525,6 @@ private:
void accel_cal_update(void);
void read_rangefinders(void);
void init_proximity();
void windvane_update();
void update_sensor_status_flags(void);
// Steering.cpp

View File

@ -241,11 +241,6 @@ void Rover::init_proximity(void)
g2.proximity.set_rangefinder(&rangefinder);
}
void Rover::windvane_update()
{
g2.windvane.update();
}
// update error mask of sensors and subsystems. The mask
// uses the MAV_SYS_STATUS_* values from mavlink. If a bit is set
// then it indicates that the sensor or subsystem is present but