Skip to content

Commit

Permalink
fix on nav_check_wp_time
Browse files Browse the repository at this point in the history
  • Loading branch information
kadir4172 committed Jun 19, 2014
1 parent 7f7da8c commit fd7d333
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sw/airborne/firmwares/rotorcraft/navigation.c
Expand Up @@ -350,7 +350,10 @@ bool_t nav_check_wp_time(struct EnuCoor_i * wp, uint16_t stay_time) {
time_at_wp = 0;
wp_reached = FALSE;
}
if (time_at_wp > stay_time) return TRUE;
if (time_at_wp > stay_time) {
INT_VECT3_ZERO(wp_last);
return TRUE;
}
return FALSE;
}

Expand Down

0 comments on commit fd7d333

Please sign in to comment.