Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of motor by
motor.h@0:b0476dcfa14c, 2016-10-18 (annotated)
- Committer:
- lh14g13
- Date:
- Tue Oct 18 14:57:55 2016 +0000
- Revision:
- 0:b0476dcfa14c
- Child:
- 6:b4346ef9fa04
added library
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); |