Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
electrical.h
Go to the documentation of this file.
1 #ifndef SUBSYSTEMS_ELECTRICAL_H
2 #define SUBSYSTEMS_ELECTRICAL_H
3 
4 #include "std.h"
5 
6 struct Electrical {
7 
8  uint16_t vsupply; /* supply in decivolts */
9  int32_t current; /* current in milliamps */
10  int32_t consumed; /* consumption in mAh */
11 
12 };
13 
14 extern struct Electrical electrical;
15 
16 extern void electrical_init(void);
17 extern void electrical_periodic(void);
18 
19 #endif /* SUBSYSTEMS_ELECTRICAL_H */
unsigned short uint16_t
Definition: types.h:16
void electrical_periodic(void)
Definition: electrical.c:53
uint16_t vsupply
Definition: electrical.h:8
struct Electrical electrical
Definition: electrical.c:16
signed long int32_t
Definition: types.h:19
int32_t current
Definition: electrical.h:9
void electrical_init(void)
Definition: electrical.c:39
int32_t consumed
Definition: electrical.h:10