Paparazzi UAS  v4.0.4_stable-3-gf39211a
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  uint8_t vsupply; /* supply in decivolts */
9  int32_t current; /* current in milliamps */
10 
11 };
12 
13 extern struct Electrical electrical;
14 
15 extern void electrical_init(void);
16 extern void electrical_periodic(void);
17 
18 #endif /* SUBSYSTEMS_ELECTRICAL_H */
void electrical_periodic(void)
Definition: electrical.c:53
uint8_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
unsigned char uint8_t
Definition: types.h:14
void electrical_init(void)
Definition: electrical.c:39