30 #include "generated/airframe.h"
31 #if ROTORCRAFT_FIRMWARE && NPS_NO_MOTOR_MIXING
37 #error "HITL_DEVICE must be defined"
50 #if FIXEDWING_FIRMWARE
54 #if ROTORCRAFT_FIRMWARE
55 #if NPS_NO_MOTOR_MIXING
56 pprz_msg_send_ACTUATORS_RAW(&
actuators_hitl_tp.trans_tx, &(HITL_DEVICE).device, AC_ID,
57 ACTUATORS_NB, actuators_pprz);
59 int16_t motors[MOTOR_MIXING_NB_MOTOR];
60 for (
uint8_t i = 0; i < MOTOR_MIXING_NB_MOTOR; i++)
64 pprz_msg_send_MOTOR_MIXING(&
actuators_hitl_tp.trans_tx, &(HITL_DEVICE).device, AC_ID,
65 MOTOR_MIXING_NB_MOTOR, motors);
void actuators_hitl_periodic(void)
void actuators_hitl_init(void)
static struct pprz_transport actuators_hitl_tp
pprz_t commands[COMMANDS_NB]
Hardware independent code for commands handling.
Hardware independent API for actuators (servos, motor controllers).
struct MotorMixing motor_mixing
int32_t commands[MOTOR_MIXING_NB_MOTOR]
Periodic telemetry system header (includes downlink utility and generated code).
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.