Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
actuators_hitl.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2023 Gautier Hattenberger <gautier.hattenberger@enac.fr>
3 *
4 * This file is part of paparazzi
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 */
20
30#include "generated/airframe.h"
31#if ROTORCRAFT_FIRMWARE && NPS_NO_MOTOR_MIXING
33#endif
34
35
36#ifndef HITL_DEVICE
37#error "HITL_DEVICE must be defined"
38#endif
39
40// for sending only
42
47
49{
50#if FIXEDWING_FIRMWARE
53#endif
54#if ROTORCRAFT_FIRMWARE
55#if NPS_NO_MOTOR_MIXING
58#else // use motor mixing
60 for (uint8_t i = 0; i < MOTOR_MIXING_NB_MOTOR; i++)
61 {
63 }
66#endif
67#endif
68}
69
70
void actuators_hitl_periodic(void)
void actuators_hitl_init(void)
static struct pprz_transport actuators_hitl_tp
Hardware independent code for commands handling.
uint16_t foo
Definition main_demo5.c:58
Hardware independent API for actuators (servos, motor controllers).
struct MotorMixing motor_mixing
Motor Mixing.
int32_t commands[MOTOR_MIXING_NB_MOTOR]
#define MOTOR_MIXING_NB_MOTOR
static const ShellCommand commands[]
Definition shell_arch.c:78
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.