State machine

Dependencies:   mbed Adafruit_GFX BioroboticsMotorControl MODSERIAL BioroboticsEMGFilter

Changes

RevisionDateWhoCommit message
51:e0e4d7e3de93 2018-11-05 MAHCSnijders Fixed comments default tip
50:5d2176b93a65 2018-11-05 MAHCSnijders With new comments
49:b4fd52d244f9 2018-11-05 brass_phoenix + Now actually resists people moving the arm (it didn't before)
48:fbdae5ff1d24 2018-11-01 brass_phoenix Nu echt gemerged;
47:e973414a210d 2018-11-01 brass_phoenix Merge Wybe and louk changes
46:0be634ee10e8 2018-11-01 brass_phoenix + Reduced emg calibration time. This makes it easier to calibrate.
45:f0066593c174 2018-11-01 brass_phoenix + WORKS! (It was the jumpers on the emg board.)
44:0056118c01b2 2018-11-01 brass_phoenix + Now acutally reacts (jerkingly) to emg.
43:13b586f74be9 2018-11-01 hermanindeput 30 Hz
42:cafa56da9ed2 2018-11-01 brass_phoenix + Now displays in normal operation whether the arms are tensed.
41:8640b5782bc7 2018-11-01 brass_phoenix + EMG should controll robot, but doesnt correctly.
40:7e8d0632757c 2018-11-01 brass_phoenix + EMG threshold debug works.
39:f119ca6fc821 2018-11-01 brass_phoenix + EMG possibly calibratable.
38:fd89e1301734 2018-11-01 brass_phoenix + Broken emg calibration.
37:9a5da4463982 2018-11-01 hermanindeput EMG_calibration;
36:691ea4660f29 2018-11-01 hermanindeput Timeouts and everything (heeft nog errors);
35:38a5af0afee8 2018-11-01 hermanindeput EMG_calibration toevoegen;
34:ae62ebf4d494 2018-11-01 brass_phoenix + DEMO MODE WORKS (without screen arrows)
33:543debddb3a9 2018-11-01 brass_phoenix + Motor restriction angles are now correcter than before.
32:b63b5837bcb1 2018-11-01 brass_phoenix + Two directional demo works.
31:e5b3b01d128a 2018-11-01 brass_phoenix + Made end effector controll function.
30:a45bbfa6bd22 2018-11-01 brass_phoenix + Added a bit of breathing room for the motors while they wait for the other motor to be calibrated.
29:77fee8a01529 2018-11-01 brass_phoenix * Fixed max speed bug in motor calibration.;
28:25917b26022c 2018-11-01 brass_phoenix + Added debug for motor calibration.
27:b247e78a4380 2018-11-01 brass_phoenix + Added limitation to r angle in inverse kinematics.
26:a8f4a117cc0d 2018-11-01 brass_phoenix + Inverse and forward kinematics works.
25:cc81f2120eda 2018-11-01 brass_phoenix + Arrows now correct.; * Flipped code location of homing.;
24:e1092f95c82b 2018-11-01 brass_phoenix + Homing state is back to angles.; + Down arrows on screen should be correct now.
23:fb681b074a92 2018-11-01 brass_phoenix + Changed home state to use inverse kinematics.
22:720a410c4980 2018-11-01 brass_phoenix * Firxed math bug in forward kinematics.
21:d541303a2ea6 2018-10-31 brass_phoenix + Debugging forward and inverse kinematics.;
20:af1a6cd7469b 2018-10-31 brass_phoenix + Added forward kinematics.
19:53b9729fbab5 2018-10-31 brass_phoenix + Added maximum pwm fraction for the motors.
18:71a5cc9353af 2018-10-31 brass_phoenix * Set a better speed for the motor calibration.
17:1fe276ff17db 2018-10-31 brass_phoenix + Resets text cursor when clearing the display.
16:9c5ef6fe6780 2018-10-31 brass_phoenix + UNTESTED: Added motor calibration.
15:f65b4566193e 2018-10-31 brass_phoenix + Should be displaying arrows in normal operation.
14:b97e7a41ec23 2018-10-31 brass_phoenix * Motor reduction ratio test now actually works
13:88967c004446 2018-10-31 brass_phoenix + Added motor reduction ratio.
12:0c10396d0615 2018-10-31 brass_phoenix + Set motor to arm gear ratios.
11:d980e0e581db 2018-10-31 brass_phoenix * Made the stop state say STOP instead of error.
10:b165ccd11afd 2018-10-31 brass_phoenix * Halfed the button poll frequency.
9:27d00b64076e 2018-10-31 brass_phoenix + Added dummy button transitions between states.
8:9090ab7c19a8 2018-10-31 brass_phoenix + Added motor library and stop function in the failure state.
7:e7f808875bc4 2018-10-31 brass_phoenix * Changed to a button polling scheme. This because our buttons seem to generate more chatter than the rise and fall interrupts of the mbed can handle.
6:bfc6e68774f5 2018-10-30 brass_phoenix + Additional text on screen now works.
5:2632dfc8454c 2018-10-30 brass_phoenix + All states now print their titles.
4:5a44ab7e94b3 2018-10-30 brass_phoenix + States can now print their name to the screen.
3:4b19b6cf6cc7 2018-10-30 brass_phoenix + Added screen basics.
2:141cfcafe72b 2018-10-30 brass_phoenix + Functions for every state.
1:cfa5abca6d43 2018-10-30 brass_phoenix + Button inputs.
0:7d25c2ade6c5 2018-10-29 MAHCSnijders State machine so far (met Software milestone 3 uitgebreide voorbeeld gemaakt)