mc_pos_control: use local position timestamp for dt

This commit is contained in:
Daniel Agar
2020-08-10 10:51:52 -04:00
parent c5eb084236
commit 14f734ac15
2 changed files with 21 additions and 32 deletions
@@ -59,7 +59,7 @@ public:
~Takeoff() = default;
// initialize parameters
void setSpoolupTime(const float seconds) { _spoolup_time_hysteresis.set_hysteresis_time_from(false, (hrt_abstime)(seconds * (float)1_s)); }
void setSpoolupTime(const float seconds) { _spoolup_time_hysteresis.set_hysteresis_time_from(false, seconds * 1_s); }
void setTakeoffRampTime(const float seconds) { _takeoff_ramp_time = seconds; }
/**