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: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: motorAndSensorControl.cpp
- Revision:
- 28:4a5671b3d88d
- Parent:
- 27:71be6e074d0f
- Child:
- 30:161f748a1cce
diff -r 71be6e074d0f -r 4a5671b3d88d motorAndSensorControl.cpp --- a/motorAndSensorControl.cpp Wed Oct 09 12:56:35 2019 +0000 +++ b/motorAndSensorControl.cpp Wed Oct 09 13:20:19 2019 +0000 @@ -1,6 +1,7 @@ //voltage in PWM (between -1 and 1) //period in seconds -//dt the time between measurements, i.o.w. Ticker timing +//dt the time between measurements, i.o.w. Ticker timing +/* #include "mbed.h" #include "FastPWM.h" #include "QEI.h" @@ -90,6 +91,7 @@ velocityMotor1Return = velocityMotor1; velocityMotor2Return = velocityMotor2; */ + /* motorReturn.motor1.counts = countsMotor1[1]; motorReturn.motor2.counts = countsMotor2[1]; @@ -100,4 +102,5 @@ motorReturn.motor2.velocity = velocityMotor2; return motorReturn -} \ No newline at end of file +} +*/ \ No newline at end of file