Pierre-Yves Malengre / Mbed OS Lidar
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers print.h Source File

print.h

00001 
00002 #pragma once
00003 #include "PinNames.h"
00004 #include "Timer.h"
00005 #include "mbed.h"
00006 #include "rplidar.h"
00007 //#include <cstdio>
00008 
00009 //Serial PC(SERIAL_TX,SERIAL_RX); //Rx Tx pins of the USB (used to write in the serial monitor);
00010 
00011 class Print
00012 {
00013 public:
00014     Serial& _PC;
00015     Print(Serial& PC) : _PC(PC) {} ;
00016     ~Print();
00017 
00018 void printData(int angle, int sizeOfPrint, float* data);
00019 void printData(int startAngle, int angle, int sizeOfPrint, float* data);
00020 void getPrintData(int angle, int sizeOfPrint, RPLidar lidar, int readTime);
00021 
00022 
00023 };