Mike Etek Controller

Dependencies:   mbed

Committer:
austinbrown124
Date:
Sat Apr 06 02:16:12 2019 +0000
Revision:
1:94193b31f0ee
Parent:
0:9edd6ec0f56a
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
austinbrown124 0:9edd6ec0f56a 1 #ifndef STRUCTS_H
austinbrown124 0:9edd6ec0f56a 2 #define STRUCTS_H
austinbrown124 0:9edd6ec0f56a 3
austinbrown124 0:9edd6ec0f56a 4 #include "mbed.h"
austinbrown124 0:9edd6ec0f56a 5
austinbrown124 0:9edd6ec0f56a 6
austinbrown124 0:9edd6ec0f56a 7 typedef struct{
austinbrown124 1:94193b31f0ee 8
austinbrown124 1:94193b31f0ee 9 float i_motor;
austinbrown124 0:9edd6ec0f56a 10 float v_bus;
austinbrown124 1:94193b31f0ee 11 float v_output;
austinbrown124 0:9edd6ec0f56a 12 int loop_count;
austinbrown124 0:9edd6ec0f56a 13 int mode;
austinbrown124 1:94193b31f0ee 14 } HardwareStruct;
austinbrown124 1:94193b31f0ee 15
austinbrown124 1:94193b31f0ee 16
austinbrown124 1:94193b31f0ee 17
austinbrown124 1:94193b31f0ee 18
austinbrown124 0:9edd6ec0f56a 19
austinbrown124 0:9edd6ec0f56a 20 typedef struct{
austinbrown124 1:94193b31f0ee 21 int can_dead_count;
austinbrown124 1:94193b31f0ee 22 float throttle_frac;
austinbrown124 1:94193b31f0ee 23 int status;
austinbrown124 1:94193b31f0ee 24 } CommandStruct;
austinbrown124 1:94193b31f0ee 25
austinbrown124 1:94193b31f0ee 26
austinbrown124 0:9edd6ec0f56a 27
austinbrown124 0:9edd6ec0f56a 28 #endif