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: Encoder MODSERIAL mbed-dsp mbed
Fork of motor1aansturing by
Diff: main.cpp
- Revision:
- 19:9ea206bb1b05
- Parent:
- 18:1188cdb7ccbe
- Child:
- 20:322499ae6dd1
diff -r 1188cdb7ccbe -r 9ea206bb1b05 main.cpp --- a/main.cpp Fri Oct 10 09:43:29 2014 +0000 +++ b/main.cpp Fri Oct 10 09:50:42 2014 +0000 @@ -20,7 +20,7 @@ AnalogIn potmeter(PTC2); volatile bool looptimerflag; float potsamples[POT_AVG]; -float EMG(float biceps, float triceps) // waarschijnlijk niet float omdat input functies zijn +float EMG(float biceps, float triceps) // waarschijnlijk niet float omdat input functies zijn, geeft problemen met de void functie hieronder... void setlooptimerflag(void) { @@ -29,8 +29,7 @@ int main() { - float v3=0.2,v2=0.1,v1=0.05, readbiceps=0, readtriceps=0 - int ANGLEMAX, ANGLEMIN + float v3=0.2,v2=0.1,v1=0.05, readbiceps=0, readtriceps=0; // zie schrift voor berekeningen ANGLEMAX. Is float ANGLEMAX nog nodig als ANGLEMAX = defined Encoder motor1(PTD0,PTC9); PwmOut pwm_motor(PTA5);