The final program for the #include AIR robot

Dependencies:   Biquad HIDScope QEI angleandposition controlandadjust mbed

Fork of includeair by BioRobotics

Changes

RevisionDateWhoCommit message
47:29ea2915b811 2015-11-02 Gerth ingeleverd default tip
46:c03f2c576630 2015-11-02 Gerth same as before only now prints errors to hidscope;
45:653370fa8b67 2015-11-02 Gerth made demo optional and running good;
44:fd7b3ace6c19 2015-11-02 Gerth maked going to demo mode optional
43:a5f47a1f11d2 2015-11-02 Gerth changed gotogoal to gotopos and used it for the demo;
42:386fc2fcfb22 2015-10-30 Gerth added a function to move slowly to the goal;
41:e9fd0670f70c 2015-10-29 Gerth Added demo mode;
40:8b25c0531340 2015-10-29 Gerth adjusted safetymargin;
39:ebcf0a60f58b 2015-10-29 Gerth converted floats to doubles
38:df0b0abea598 2015-10-29 Gerth added 1 : in a comment
37:7fb72473592e 2015-10-29 Gerth removed the radtodeg constant because we didnt need it
36:3856509519cf 2015-10-29 Gerth FINAL, WORKING
35:0141a1fe8138 2015-10-29 Gerth final version of code, increased button read frequency when calibrating and decreased the hidscope frequency removed the reset encoder from normal running mode. and added a lot of comments
34:bc2d64e86cb9 2015-10-29 Gerth pod returns to middle after shooting;
33:1c7b498ded25 2015-10-28 Gerth added emg calibration mode and separate filter gains per arm;
32:c940f6b6a6a0 2015-10-28 Gerth ander verplaatsingsprofiel, met cosinus dingen;
31:8646e853979f 2015-10-28 Gerth working! (with buttoncontrol) controllervalues quite good. next step is to use skew sine displacement function for shooting;
30:cd4d9754a357 2015-10-28 Gerth With these settings the system works pretty well via button control, only a bit slow.
29:cd47a5a772db 2015-10-27 Gerth Now using the calculated x position when shooting
28:71a90073e482 2015-10-27 Gerth adjusted shoot loop so filter resets and the filterded value does not stay high;
27:31cb8fbd976d 2015-10-26 Gerth working with pid;
26:c935e39cce8a 2015-10-26 Gerth adjusted calling the controller to the new library ( so error_prev error_int and Ts is moved to within the library;
25:21dcd3f9eac2 2015-10-23 Gerth checked if loops do not take too much time and added timer
24:dd75c961ae88 2015-10-20 Gerth increased controller frequency and decreased hidscope frequency
23:1c4a18799464 2015-10-20 Gerth working;
22:b29ba919d93e 2015-10-20 Gerth added error to hidscope;
21:6954cc25f2a7 2015-10-20 Gerth adjusted controller values, now go back after shooting with steps instead of ginormous fault;
20:c5fb2ff5d457 2015-10-20 Gerth changed desired_angle from vector to two variables and added comments
19:6f22b5687587 2015-10-20 Gerth shooting working;
18:1c3254a32fd1 2015-10-19 Gerth works now with calculated angles. only the shooting has to be calculated;
17:72d3522165ac 2015-10-19 Gerth buttoncontrol mode now working at rigth speed;
16:63320b8f79c2 2015-10-19 Gerth added buttoncontrolmode, but desiredpositoin moves too much per second;
15:17de575b7385 2015-10-19 Gerth added buttoncontrolmode and ledinfo green for normal running mode, blinking green for buttoncontrol mode, blinking blue for shooting, red with corresponding leds on top for calibration mode
14:4c4f45a1dd23 2015-10-19 Gerth added led info green led is normal mode, blinking blue led is shooting, red led and corresponding blinking led on top is calibration mode
13:47b065aadae9 2015-10-19 Gerth x movement in stead of y movement;
12:b9f0b92bd659 2015-10-19 Gerth added filtered signal to HIDScope;
11:c10651055871 2015-10-19 Gerth controllable with emg signals
10:9e96d14d7034 2015-10-14 Gerth Added stop when switching modes;
9:4ee354663560 2015-10-14 Gerth calibration now working!;
8:54a7da09ccad 2015-10-14 Gerth added calibration for left arm, now right arm and emg control
7:7fbb2c028778 2015-10-14 Gerth added control for calibration, now read out buttons;
6:37c94a5e205f 2015-10-14 Gerth Added switch 3 to change to calibration mode (using the buttons to set arms to 0 degrees;
5:8ac5d0651e4d 2015-10-14 Gerth valuechange working make sure you specify the format correct when using scanf (floats and doubles are different);
4:bf7765b0f612 2015-10-13 Gerth now led blinks on both emg signals; ;
3:48438eea184e 2015-10-13 Gerth now with threshold working. when threshold is crossed, led lights up;
2:c7707856d137 2015-10-13 Gerth Added option to adjust the gain of the filtered signal via Serial, called with sw2
1:917c07a4f3ec 2015-10-12 Gerth Added the biquad filter;
0:dd66fff537d7 2015-10-09 Gerth start of the final program;