PID: use millis/micros/panic functions

This commit is contained in:
Caio Marcelo de Oliveira Filho 2015-11-20 12:15:45 +09:00 committed by Randy Mackay
parent a096c2b72c
commit e839892524
1 changed files with 1 additions and 1 deletions

View File

@ -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;