mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_NavEKF2: added const (review request)
This commit is contained in:
parent
7a34ec4458
commit
7d7031d3d7
@ -832,7 +832,7 @@ void NavEKF2::UpdateFilter(void)
|
||||
void NavEKF2::checkLaneSwitch(void)
|
||||
{
|
||||
AP::dal().log_event2(AP_DAL::Event2::checkLaneSwitch);
|
||||
uint32_t now = AP::dal().millis();
|
||||
const uint32_t now = AP::dal().millis();
|
||||
if (lastLaneSwitch_ms != 0 && now - lastLaneSwitch_ms < 5000) {
|
||||
// don't switch twice in 5 seconds
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user