changes to motor library
Fork of motor by
motor.h@17:28216063e33e, 2016-11-29 (annotated)
- Committer:
- FatCookies
- Date:
- Tue Nov 29 13:11:06 2016 +0000
- Revision:
- 17:28216063e33e
- Parent:
- 6:b4346ef9fa04
i must have changed something
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" |
FatCookies | 17:28216063e33e | 3 | #include <math.h> |
FatCookies | 17:28216063e33e | 4 | #include "angular_speed.h" |
lh14g13 | 0:b0476dcfa14c | 5 | |
lh14g13 | 0:b0476dcfa14c | 6 | int motor_setup(); |
lh14g13 | 0:b0476dcfa14c | 7 | void TurnOn(); |
FatCookies | 17:28216063e33e | 8 | void runMotor(); |
lh14g13 | 0:b0476dcfa14c | 9 | void DefaultMode(); |
FatCookies | 17:28216063e33e | 10 | void centerWheels(); |
FatCookies | 17:28216063e33e | 11 | |
FatCookies | 17:28216063e33e | 12 | //Speed control |
lh14g13 | 0:b0476dcfa14c | 13 | |
lh14g13 | 0:b0476dcfa14c | 14 | |
FatCookies | 17:28216063e33e | 15 | float setDutyCycle(float dutyC, int w,int targetW); |
lh14g13 | 0:b0476dcfa14c | 16 | |
lh14g13 | 0:b0476dcfa14c | 17 | //Corner Control |
lh14g13 | 0:b0476dcfa14c | 18 | |
FatCookies | 17:28216063e33e | 19 | |
lh14g13 | 0:b0476dcfa14c | 20 | void cornerLeft(float speed); |
lh14g13 | 0:b0476dcfa14c | 21 | void cornerRight(float speed); |
lh14g13 | 6:b4346ef9fa04 | 22 | |
lh14g13 | 6:b4346ef9fa04 | 23 | //advanced corner |
FatCookies | 17:28216063e33e | 24 | void dutyCycleCorner( float speed, float angle); |
FatCookies | 17:28216063e33e | 25 | void corner(float &w1,float &w2,float deltaTheta,int maxspeed); |
lh14g13 | 6:b4346ef9fa04 | 26 | |
FatCookies | 17:28216063e33e | 27 | void steering(float center, float theta, int maxspeed); |