Plane: let AP_Vehicle handle loop()
This commit is contained in:
parent
18670d681e
commit
58d45ef04a
@ -123,12 +123,6 @@ void Plane::get_scheduler_tasks(const AP_Scheduler::Task *&tasks,
|
||||
|
||||
constexpr int8_t Plane::_failsafe_priorities[7];
|
||||
|
||||
void Plane::loop()
|
||||
{
|
||||
scheduler.loop();
|
||||
G_Dt = scheduler.get_loop_period_s();
|
||||
}
|
||||
|
||||
// update AHRS system
|
||||
void Plane::ahrs_update()
|
||||
{
|
||||
|
@ -160,9 +160,6 @@ public:
|
||||
|
||||
Plane(void);
|
||||
|
||||
// HAL::Callbacks implementation.
|
||||
void loop() override;
|
||||
|
||||
private:
|
||||
|
||||
// key aircraft parameters passed to multiple libraries
|
||||
@ -172,9 +169,6 @@ private:
|
||||
Parameters g;
|
||||
ParametersG2 g2;
|
||||
|
||||
// main loop scheduler
|
||||
AP_Scheduler scheduler;
|
||||
|
||||
// mapping between input channels
|
||||
RCMapper rcmap;
|
||||
|
||||
@ -726,11 +720,6 @@ private:
|
||||
|
||||
float relative_altitude;
|
||||
|
||||
// INS variables
|
||||
// The main loop execution time. Seconds
|
||||
// This is the time between calls to the DCM algorithm and is the Integration time for the gyros.
|
||||
float G_Dt = 0.02f;
|
||||
|
||||
// loop performance monitoring:
|
||||
AP::PerfInfo perf_info;
|
||||
struct {
|
||||
|
Loading…
Reference in New Issue
Block a user