mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 13:30:34 +08:00
Fix support for Cube Black Heater
This commit is contained in:
@@ -27,7 +27,7 @@ px4_add_board(
|
||||
distance_sensor # all available distance sensor drivers
|
||||
dshot
|
||||
gps
|
||||
#heater
|
||||
heater
|
||||
#imu # all available imu drivers
|
||||
imu/analog_devices/adis16448
|
||||
imu/l3gd20
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_io_heater.h>
|
||||
|
||||
#if defined(BOARD_USES_PX4IO) and defined(PX4IO_HEATER_ENABLED)
|
||||
#if defined(BOARD_USES_PX4IO_VERSION) and defined(PX4IO_HEATER_ENABLED)
|
||||
// Heater on some boards is on IO MCU
|
||||
// Use ioctl calls to IO driver to turn heater on/off
|
||||
# define HEATER_PX4IO
|
||||
|
||||
@@ -129,8 +129,8 @@ private:
|
||||
static struct work_s _work;
|
||||
|
||||
/** File descriptor for PX4IO for heater ioctl's */
|
||||
#if defined(HEATER_PX4IO)
|
||||
int _io_fd_ {-1};
|
||||
#if defined(PX4IO_HEATER_ENABLED)
|
||||
int _io_fd {-1};
|
||||
#endif
|
||||
|
||||
bool _heater_on = false;
|
||||
|
||||
Reference in New Issue
Block a user