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: Movement mbed tunes motor pwm_tone clickers Ultra
Diff: main.cpp
- Revision:
- 15:f64e77f45a3d
- Parent:
- 13:13f14a8a902b
diff -r 3270b0c86c4c -r f64e77f45a3d main.cpp --- a/main.cpp Wed May 13 16:25:24 2020 +0000 +++ b/main.cpp Wed May 20 13:50:52 2020 +0000 @@ -1,19 +1,3 @@ -/* -Simple Routine for Nucleo Board for ROCO104 Buggy Motor Control and Microswitches -Heavy edit from previous ROCO103PP code -Motor Class can now be instansiated with all four pins needed to control the H Bridge -with a member functions as follows - -Motor::Speed(float A, Float B) range -0.1 to +1.0 to give full reverse to full forward for A/B motors -Motor::Stop() STOP -Motor::Fwd(float) Forward but floating point number (range 0.0 to 1.0) -Motor::Rev(float) Reverse but floating point number (range 0.0 to 1.0) - -Plymouth University -M.Simpson 31st October 2016 -Edited 03/02/2017 -Edited 06/12/2018 -*/ #include "mbed.h" #include "motor.h" #include "UltraSonic.h"