changes to motor library
Fork of motor by
motor.h@48:2e39f9fca850, 2017-04-28 (annotated)
- Committer:
- lh14g13
- Date:
- Fri Apr 28 07:54:55 2017 +0000
- Branch:
- motorupdate
- Revision:
- 48:2e39f9fca850
- Parent:
- 47:bafec50148b6
- Child:
- 49:98fb0d816007
fixed corner limiter error
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 | 11:4a6f97cc1f1e | 3 | #include <math.h> |
lh14g13 | 14:bc77edc4adb0 | 4 | #include "angular_speed.h" |
lh14g13 | 0:b0476dcfa14c | 5 | |
lh14g13 | 7:9aaa4f73bb32 | 6 | void runMotor(); |
lh14g13 | 0:b0476dcfa14c | 7 | void DefaultMode(); |
lh14g13 | 0:b0476dcfa14c | 8 | |
lh14g13 | 0:b0476dcfa14c | 9 | //Speed control |
lh14g13 | 15:f40e834d063b | 10 | |
lh14g13 | 15:f40e834d063b | 11 | float setDutyCycle(float dutyC, int w,int targetW); |
lh14g13 | 0:b0476dcfa14c | 12 | |
lh14g13 | 0:b0476dcfa14c | 13 | //Corner Control |
lh14g13 | 0:b0476dcfa14c | 14 | |
lh14g13 | 47:bafec50148b6 | 15 | void dutyCycleCorner( float speed, float angle,float tuner); |
lh14g13 | 33:734ce4c36c3f | 16 | void sensorCorner(float &w1,float &w2,float theta,float speed, float tune); |
lh14g13 | 48:2e39f9fca850 | 17 | //int cornerlimiter = 10; |