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.
Dependents: ROCO104_Buggy BuggyDesign
Movement.cpp
- Committer:
- jakesmart
- Date:
- 2020-03-06
- Revision:
- 0:0285394cacfa
- Child:
- 1:401bcbb58715
File content as of revision 0:0285394cacfa:
#include "mbed.h"
#include "motor.h"
#include "UltraSonic.h"
#include "clickers.h"
void Direction (){
while(fStopped == false){
Wheel.Speed(1.0,1.0);//forward 100%
FwdStop();
}
while(fStopped == true && rStopped == false){
Wheel.Speed(-1.0,-1.0);//forward 100%
RevStop();
}
}