Main repository for dump truck API development in Spring 2017
Dependencies: Tracker mbed MotorV2 SRF05 nRF24L01P
Fork of DUMP_TRUCK_TEST_V1 by
Activities
This Week
If needed, please contact Milo Pan at mpan9@gatech.edu for rights and access to this repository.
main.cpp
- Committer:
- simplyellow
- Date:
- 2017-02-28
- Revision:
- 10:cf77da9be0b8
- Parent:
- 5:dc4cf6cc24b3
- Child:
- 11:87f30625b213
File content as of revision 10:cf77da9be0b8:
#include "DumpTruck.h" DumpTruck dump(1); /* test code for driving and stopping when an object gets too close to the dump truck. */ int main() { while(1) { if(dump.detect()) { dump.stop(); } else { dump.drive(0.5f); } } }