mirror of https://github.com/ArduPilot/ardupilot
AntennaTracker: implement HAL::Callbacks
Also removes includes for each board since they are not necessary anymore.
This commit is contained in:
parent
06b2c966c1
commit
b648715496
|
@ -127,19 +127,4 @@ Tracker::Tracker(void)
|
|||
|
||||
Tracker tracker;
|
||||
|
||||
/*
|
||||
compatibility with old pde style build
|
||||
*/
|
||||
void setup(void);
|
||||
void loop(void);
|
||||
|
||||
void setup(void)
|
||||
{
|
||||
tracker.setup();
|
||||
}
|
||||
void loop(void)
|
||||
{
|
||||
tracker.loop();
|
||||
}
|
||||
|
||||
AP_HAL_MAIN();
|
||||
AP_HAL_MAIN_CALLBACKS(&tracker);
|
||||
|
|
|
@ -76,21 +76,16 @@
|
|||
#include "Parameters.h"
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
|
||||
#include <AP_HAL_AVR/AP_HAL_AVR.h>
|
||||
#include <AP_HAL_SITL/AP_HAL_SITL.h>
|
||||
#include <AP_HAL_PX4/AP_HAL_PX4.h>
|
||||
#include <AP_HAL_FLYMAPLE/AP_HAL_FLYMAPLE.h>
|
||||
#include <AP_HAL_Linux/AP_HAL_Linux.h>
|
||||
#include <AP_HAL_Empty/AP_HAL_Empty.h>
|
||||
|
||||
class Tracker {
|
||||
class Tracker : public AP_HAL::HAL::Callbacks {
|
||||
public:
|
||||
friend class GCS_MAVLINK;
|
||||
friend class Parameters;
|
||||
|
||||
Tracker(void);
|
||||
void setup();
|
||||
void loop();
|
||||
|
||||
// HAL::Callbacks implementation.
|
||||
void setup() override;
|
||||
void loop() override;
|
||||
|
||||
private:
|
||||
const AP_InertialSensor::Sample_rate ins_sample_rate = AP_InertialSensor::RATE_50HZ;
|
||||
|
|
Loading…
Reference in New Issue