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.
Dependencies: MODSERIAL USBDevice compensation_tables mbed-dsp mbed
Fork of haptic_hid by
Diff: main.cpp
- Revision:
- 2:bf29d24b69dd
- Parent:
- 1:24b7ab90081a
- Child:
- 3:10863117020c
diff -r 24b7ab90081a -r bf29d24b69dd main.cpp --- a/main.cpp Sat Jan 17 21:42:46 2015 +0000 +++ b/main.cpp Mon Jan 11 12:03:23 2016 +0000 @@ -30,20 +30,20 @@ { case Z_ZERO: { - localstate = Z_B; - SetImpedance(0,0.01,0,position); + localstate = Z_B; //mass + SetImpedance(0,0.03,0,position); break; } case Z_B: { - localstate = Z_I; - SetImpedance(0.01,0,0,position); + localstate = Z_I; //fluid + SetImpedance(0.0009,0.01,0.001,position); break; } case Z_I: { - localstate = Z_K; - SetImpedance(0,0,0.01,position); + localstate = Z_K;//spring + SetImpedance(0,0,0.05,position); break; } case Z_K: