motor library?????
THIS needs to be deleted
motor.h@4:e15ec9052a78, 2016-10-21 (annotated)
- Committer:
- lh14g13
- Date:
- Fri Oct 21 13:44:19 2016 +0000
- Revision:
- 4:e15ec9052a78
- Parent:
- 0:b0476dcfa14c
stuff;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lh14g13 | 0:b0476dcfa14c | 1 | #include "mbed.h" |
lh14g13 | 0:b0476dcfa14c | 2 | #include "TFC.h" |
lh14g13 | 0:b0476dcfa14c | 3 | |
lh14g13 | 0:b0476dcfa14c | 4 | int motor_setup(); |
lh14g13 | 0:b0476dcfa14c | 5 | void TurnOn(); |
lh14g13 | 0:b0476dcfa14c | 6 | void RunMotor(); |
lh14g13 | 0:b0476dcfa14c | 7 | void DefaultMode(); |
lh14g13 | 0:b0476dcfa14c | 8 | |
lh14g13 | 0:b0476dcfa14c | 9 | |
lh14g13 | 0:b0476dcfa14c | 10 | //Speed control |
lh14g13 | 0:b0476dcfa14c | 11 | void Acc(float& motorA, float& motorB); |
lh14g13 | 0:b0476dcfa14c | 12 | void Decc(float& motorA, float& motorB); |
lh14g13 | 0:b0476dcfa14c | 13 | void StartLine(); |
lh14g13 | 0:b0476dcfa14c | 14 | |
lh14g13 | 0:b0476dcfa14c | 15 | //Corner Control |
lh14g13 | 0:b0476dcfa14c | 16 | |
lh14g13 | 0:b0476dcfa14c | 17 | void PWM_cornerCntrl(bool a,float pwmRatio); |
lh14g13 | 0:b0476dcfa14c | 18 | void cornerLeft(float speed); |
lh14g13 | 0:b0476dcfa14c | 19 | void cornerRight(float speed); |