mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
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)
|
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;
|
uint32_t dt = tnow - _last_t;
|
||||||
float output = 0;
|
float output = 0;
|
||||||
float delta_time;
|
float delta_time;
|
||||||
|
Loading…
Reference in New Issue
Block a user