mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Made dtors virtual, tested on IO and FMU
This commit is contained in:
parent
5baea153e7
commit
802d0ae2fa
@ -127,7 +127,7 @@ class BlinkM : public device::I2C
|
||||
{
|
||||
public:
|
||||
BlinkM(int bus, int blinkm);
|
||||
~BlinkM();
|
||||
virtual ~BlinkM();
|
||||
|
||||
|
||||
virtual int init();
|
||||
|
||||
@ -126,7 +126,7 @@ class BMA180 : public device::SPI
|
||||
{
|
||||
public:
|
||||
BMA180(int bus, spi_dev_e device);
|
||||
~BMA180();
|
||||
virtual ~BMA180();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
||||
@ -86,7 +86,7 @@ class GPS : public device::CDev
|
||||
{
|
||||
public:
|
||||
GPS(const char* uart_path);
|
||||
~GPS();
|
||||
virtual ~GPS();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ public:
|
||||
MODE_NONE
|
||||
};
|
||||
HIL();
|
||||
~HIL();
|
||||
virtual ~HIL();
|
||||
|
||||
virtual int ioctl(file *filp, int cmd, unsigned long arg);
|
||||
|
||||
|
||||
@ -130,7 +130,7 @@ class HMC5883 : public device::I2C
|
||||
{
|
||||
public:
|
||||
HMC5883(int bus);
|
||||
~HMC5883();
|
||||
virtual ~HMC5883();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
||||
@ -152,7 +152,7 @@ class L3GD20 : public device::SPI
|
||||
{
|
||||
public:
|
||||
L3GD20(int bus, const char* path, spi_dev_e device);
|
||||
~L3GD20();
|
||||
virtual ~L3GD20();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ class LED : device::CDev
|
||||
{
|
||||
public:
|
||||
LED();
|
||||
~LED();
|
||||
virtual ~LED();
|
||||
|
||||
virtual int init();
|
||||
virtual int ioctl(struct file *filp, int cmd, unsigned long arg);
|
||||
|
||||
@ -100,7 +100,7 @@ class MB12XX : public device::I2C
|
||||
{
|
||||
public:
|
||||
MB12XX(int bus = MB12XX_BUS, int address = MB12XX_BASEADDR);
|
||||
~MB12XX();
|
||||
virtual ~MB12XX();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
||||
@ -151,7 +151,7 @@ class MPU6000 : public device::SPI
|
||||
{
|
||||
public:
|
||||
MPU6000(int bus, spi_dev_e device);
|
||||
~MPU6000();
|
||||
virtual ~MPU6000();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ class MS5611 : public device::I2C
|
||||
{
|
||||
public:
|
||||
MS5611(int bus);
|
||||
~MS5611();
|
||||
virtual ~MS5611();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
||||
@ -82,7 +82,7 @@ public:
|
||||
MODE_NONE
|
||||
};
|
||||
PX4FMU();
|
||||
~PX4FMU();
|
||||
virtual ~PX4FMU();
|
||||
|
||||
virtual int ioctl(file *filp, int cmd, unsigned long arg);
|
||||
virtual ssize_t write(file *filp, const char *buffer, size_t len);
|
||||
|
||||
@ -91,7 +91,7 @@ class PX4IO : public device::I2C
|
||||
{
|
||||
public:
|
||||
PX4IO();
|
||||
~PX4IO();
|
||||
virtual ~PX4IO();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ class PX4IO_Uploader
|
||||
{
|
||||
public:
|
||||
PX4IO_Uploader();
|
||||
~PX4IO_Uploader();
|
||||
virtual ~PX4IO_Uploader();
|
||||
|
||||
int upload(const char *filenames[]);
|
||||
|
||||
|
||||
@ -498,7 +498,7 @@ int mavlink_onboard_main(int argc, char *argv[])
|
||||
mavlink_task = task_spawn("mavlink_onboard",
|
||||
SCHED_DEFAULT,
|
||||
SCHED_PRIORITY_DEFAULT,
|
||||
6000 /* XXX probably excessive */,
|
||||
2048,
|
||||
mavlink_thread_main,
|
||||
(const char**)argv);
|
||||
exit(0);
|
||||
|
||||
@ -160,7 +160,7 @@ public:
|
||||
* @param control_cb Callback invoked when reading controls.
|
||||
*/
|
||||
Mixer(ControlCallback control_cb, uintptr_t cb_handle);
|
||||
~Mixer() {};
|
||||
virtual ~Mixer() {};
|
||||
|
||||
/**
|
||||
* Perform the mixing function.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user