Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
esc32.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Murat Bronz <murat.bronz@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  */
26 #ifndef ESC32_H
27 #define ESC32_H
28 
29 #include "std.h"
30 
31 extern void esc32_init(void);
32 extern void esc32_periodic(void);
33 extern void esc32_event(void);
34 
36  float amps;
37  float volts_bat;
38  float volts_motor;
39  float rpm;
40  float duty;
41 };
42 
43 struct esc32 {
45  float energy;
46  float power;
48 };
49 
50 extern struct esc32 esc32;
51 
71 };
72 
91 };
92 
145 };
146 
147 #endif
148 
Definition: esc32.h:100
configParameters
Definition: esc32.h:93
float energy
accumulated energy
Definition: esc32.h:45
Definition: esc32.h:105
float volts_bat
input battery voltage
Definition: esc32.h:37
Definition: esc32.h:138
binaryValues
Definition: esc32.h:73
Definition: esc32.h:110
float amps
current consumption
Definition: esc32.h:36
Definition: esc32.h:99
Definition: esc32.h:101
Definition: esc32.h:43
void esc32_periodic(void)
Definition: esc32.c:255
struct esc32_parameter params
filtered data from the esc
Definition: esc32.h:44
binaryCommands
Definition: esc32.h:52
Definition: esc32.h:127
Definition: esc32.h:102
Definition: esc32.h:103
float volts_motor
motor voltage (bat voltage * throttle in % in fact)
Definition: esc32.h:38
void esc32_init(void)
Definition: esc32.c:235
Definition: esc32.h:98
Definition: esc32.h:97
float power
computed battery power
Definition: esc32.h:46
float rpm
motor rotation speed
Definition: esc32.h:39
Definition: esc32.h:126
float duty
motor duty cycle (more or less throttle in %)
Definition: esc32.h:40
Definition: esc32.h:139
Definition: esc32.h:104
void esc32_event(void)
Definition: esc32.c:345
bool data_available
data updated
Definition: esc32.h:47
Definition: esc32.h:142