changes to motor library
Fork of motor by
motor.h@6:b4346ef9fa04, 2016-10-24 (annotated)
- Committer:
- lh14g13
- Date:
- Mon Oct 24 14:44:12 2016 +0000
- Revision:
- 6:b4346ef9fa04
- Parent:
- 0:b0476dcfa14c
- Child:
- 7:9aaa4f73bb32
updated h file;
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); |
lh14g13 | 6:b4346ef9fa04 | 20 | |
lh14g13 | 6:b4346ef9fa04 | 21 | //advanced corner |
lh14g13 | 6:b4346ef9fa04 | 22 | |
lh14g13 | 6:b4346ef9fa04 | 23 | void deltaCornerRight(float speed,float deltaTheta); |
lh14g13 | 6:b4346ef9fa04 | 24 | void deltaCornerLeft(float speed,float deltaTheta); |