mirror of https://github.com/ArduPilot/ardupilot
AC_Sprayer: use millis/micros/panic functions
This commit is contained in:
parent
ccd03bcf60
commit
70d0ea9151
|
@ -116,7 +116,7 @@ AC_Sprayer::update()
|
||||||
ground_speed = pythagorous2(velocity.x,velocity.y);
|
ground_speed = pythagorous2(velocity.x,velocity.y);
|
||||||
|
|
||||||
// get the current time
|
// get the current time
|
||||||
now = hal.scheduler->millis();
|
now = AP_HAL::millis();
|
||||||
|
|
||||||
// check our speed vs the minimum
|
// check our speed vs the minimum
|
||||||
if (ground_speed >= _speed_min) {
|
if (ground_speed >= _speed_min) {
|
||||||
|
|
Loading…
Reference in New Issue