Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
actuators_t4_uart.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024 The Paparazzi Team
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 */
28#ifndef ACTUATORS_T4_UART_H
29#define ACTUATORS_T4_UART_H
30
31#define START_BYTE_ACTUATORS_T4 0x9A //1st start block identifier byte
32
33#include "std.h"
34#include <stdbool.h>
35#include <stdlib.h>
36#include "generated/airframe.h"
37#include "pprzlink/pprz_transport.h"
38
40 /* ESCs telemetry & error code */
41
42 /* RPM output from ESC's to flightcontroller */
47
48 /* Error code from ESC's to flightcontroller */
53
54 /* Current (mA) output from ESC's to flightcontroller */
59
60 /* Voltage (mV) output from ESC's to flightcontroller */
65
66 /* Temperature (Celcius) not implemented, since it will take away bus bandwidth, feel free to add if really nned it, preferably with low message rate */
67 //int16_t esc_1_temperature; // FIXME Kelvin as SI it is might be better?
68 //int16_t esc_2_temperature;
69 //int16_t esc_3_temperature;
70 //int16_t esc_4_temperature;
71
72 /* SERVOS telemetry where angle is in Degrees times 100 */
83 /* Note that PWM servos nor PWM ESC's give feedback in real life. Servos have estimated angles */
86
87 /* Servo load in UNDEFINED Units */
98 /* Note that PWM servos or ESC (11 and 12) give no real feedback on load */
99 //int16_t servo_11_load;
100 //int16_t servo_12_load;
101
102 uint16_t bitmask_servo_health; //Bitmask of servo health status
103
104 /* Rolling message in */
107
108 /* CHECKSUM for the data packages */
110};
111
143
144extern void actuators_t4_uart_init(void);
145extern void actuators_t4_uart_parse_msg_in(void);
146extern void actuators_t4_uart_event(void);
147
148#endif /* ACTUATORS_T4_UART_H */
149
void actuators_t4_uart_init(void)
void actuators_t4_uart_event(void)
void actuators_t4_uart_parse_msg_in(void)
uint16_t bitmask_servo_health
uint16_t foo
Definition main_demo5.c:58
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.