Skip to content

Commit

Permalink
PID: use millis/micros/panic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarcelo authored and rmackay9 committed Nov 20, 2015
1 parent a096c2b commit e839892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/PID/PID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e839892

Please sign in to comment.