Browse Source

Rover: fixed turn time in flash logs

master
Andrew Tridgell 12 years ago
parent
commit
947b64dfc4
  1. 2
      APMrover2/Log.pde

2
APMrover2/Log.pde

@ -448,7 +448,7 @@ static void Log_Write_Sonar() @@ -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),

Loading…
Cancel
Save