Q

Dependencies:   SRF05 ros_lib_kinetic TinyGPSPlus

PROJ515.cpp

Committer:
Luka_Danilovic
Date:
2019-04-22
Revision:
0:215bdd87b602
Child:
1:ea2ee36038e7

File content as of revision 0:215bdd87b602:

#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);
    }
}