![](/media/cache/profiles/916954106a13204fa4909ae2d48e0602.jpg.50x50_q85.jpg)
motor controller
io.h@7:ed19a937daa0, 2016-11-06 (annotated)
- Committer:
- dicarloj
- Date:
- Sun Nov 06 03:09:28 2016 +0000
- Revision:
- 7:ed19a937daa0
- Parent:
- 2:7312ac02785d
works at 200V
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dicarloj | 0:f899a5183b5e | 1 | #ifndef _io |
dicarloj | 0:f899a5183b5e | 2 | #define _io |
dicarloj | 0:f899a5183b5e | 3 | #include "mbed.h" |
dicarloj | 0:f899a5183b5e | 4 | #include "foc.h" |
dicarloj | 0:f899a5183b5e | 5 | |
dicarloj | 0:f899a5183b5e | 6 | void setup(); |
dicarloj | 2:7312ac02785d | 7 | Serial *get_serial(int port); |
dicarloj | 0:f899a5183b5e | 8 | |
dicarloj | 0:f899a5183b5e | 9 | |
dicarloj | 2:7312ac02785d | 10 | void set_inverter(float v_a, float v_b, float v_c); |
dicarloj | 1:2acd7dfc4b1b | 11 | void ser_send(Serial *ser, const void* start, size_t size); |
dicarloj | 1:2acd7dfc4b1b | 12 | int ser_read(Serial *ser, void* start, size_t size); |
dicarloj | 2:7312ac02785d | 13 | float get_position(); |
dicarloj | 2:7312ac02785d | 14 | float get_throttle(); |
dicarloj | 2:7312ac02785d | 15 | float get_velocity(); |
dicarloj | 0:f899a5183b5e | 16 | #endif |