mirror of https://github.com/ArduPilot/ardupilot
PID: use millis/micros/panic functions
This commit is contained in:
parent
a096c2b72c
commit
e839892524
|
@ -21,7 +21,7 @@ const AP_Param::GroupInfo PID::var_info[] = {
|
|||
|
||||
float PID::get_pid(float error, float scaler)
|
||||
{
|
||||
uint32_t tnow = hal.scheduler->millis();
|
||||
uint32_t tnow = AP_HAL::millis();
|
||||
uint32_t dt = tnow - _last_t;
|
||||
float output = 0;
|
||||
float delta_time;
|
||||
|
|
Loading…
Reference in New Issue