Rover: fixed turn time in flash logs

This commit is contained in:
Andrew Tridgell 2013-04-19 11:03:43 +10:00
parent 6122dd2bdd
commit 947b64dfc4

View File

@ -448,7 +448,7 @@ static void Log_Write_Sonar()
{
uint16_t turn_time = 0;
if (obstacle.turn_angle != 0) {
turn_time = hal.scheduler->millis() - (obstacle.detected_time_ms + g.sonar_turn_time*1000);
turn_time = hal.scheduler->millis() - obstacle.detected_time_ms;
}
struct log_Sonar pkt = {
LOG_PACKET_HEADER_INIT(LOG_SONAR_MSG),