|
|
|
@ -359,6 +359,13 @@ void Rover::one_second_loop(void)
@@ -359,6 +359,13 @@ void Rover::one_second_loop(void)
|
|
|
|
|
|
|
|
|
|
ins.set_raw_logging(should_log(MASK_LOG_IMU_RAW)); |
|
|
|
|
|
|
|
|
|
// update home position if not soft armed and gps position has
|
|
|
|
|
// changed. Update every 1s at most
|
|
|
|
|
if (!hal.util->get_soft_armed() && |
|
|
|
|
gps.status() >= AP_GPS::GPS_OK_FIX_3D) { |
|
|
|
|
update_home(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 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 not
|
|
|
|
@ -429,10 +436,6 @@ void Rover::update_GPS_10Hz(void)
@@ -429,10 +436,6 @@ void Rover::update_GPS_10Hz(void)
|
|
|
|
|
do_take_picture(); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
if (!hal.util->get_soft_armed()) { |
|
|
|
|
update_home(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|