Plane: fixed a warning

This commit is contained in:
Andrew Tridgell 2017-11-05 21:25:37 +11:00
parent 9c8cd6c1cc
commit bbf98fae46
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ bool QuadPlane::tailsitter_transition_fw_complete(void)
}
if (labs(ahrs_view->pitch_sensor) > tailsitter.transition_angle*100 ||
roll_cd > tailsitter.transition_angle*100 ||
AP_HAL::millis() - transition_start_ms > transition_time_ms) {
AP_HAL::millis() - transition_start_ms > uint32_t(transition_time_ms)) {
return true;
}
// still waiting