37#include "pprzlink/messages.h"
45#define PWM_HEAT_CHAN PWM_HEAT_CHAN_BEBOP2
47#define PWM_HEAT_CHAN PWM_HEAT_CHAN_DISCO
49#error temp control only implemented in Parrot Bebop2 and Disco
80 printf(
"[temp-ctrl] could not set duty cycle\n");
84#ifdef IMU_TEMP_CTRL_DEBUG
99 printf(
"[temp-ctrl] could not create pwm path\n");
106 printf(
"[temp-ctrl] could not open pwm run device\n");
112 printf(
"[temp-ctrl] could not create pwm duty path\n");
120 printf(
"[temp-ctrl] could not open pwm duty path\n");
127 printf(
"[temp-ctrl] could not set duty cycle\n");
133 printf(
"[temp-ctrl] could not disable pwm\n");
139 printf(
"[temp-ctrl] could not enable pwm\n");
Common code for AP and FBW telemetry.
struct ImuBebop imu_bebop
Basic Navstik IMU data.
struct Mpu60x0_I2c mpu
The MPU gyro/accel device.
void imu_temp_ctrl_periodic(void)
void imu_temp_ctrl_init(void)
#define IMU_TEMP_CTRL_DUTY_MAX
float temp
temperature in degrees Celcius
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.