Q
Dependencies: SRF05 ros_lib_kinetic TinyGPSPlus
Diff: PROJ515.cpp
- Revision:
- 0:215bdd87b602
- Child:
- 1:ea2ee36038e7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PROJ515.cpp Mon Apr 22 18:28:24 2019 +0000 @@ -0,0 +1,18 @@ +#include "PROJ515.hpp" // Contains all Libraries, Definitions & Function Prototypes + +unsigned int cmDistance1; +float sPeriod = 0.05; + + +void setupRosMsg() +{/*CODE*/} + +int main() +{ + while(true) { + usensor1.start(); + cmDistance1 = usensor1.get_dist_cm(); + usbSer.printf("Distance (cm) = %d\n", cmDistance1); + wait(sPeriod); + } +} \ No newline at end of file