LidarLitev2 Library for distance reading. Capable of both single distance reads and continuous distance read setup.
Dependents: Lidar_Distance Lidar_DistanceContinuous Lidar_2D_Mapping Motions_Secure_Server_IUPUI ... more
Diff: LidarLitev2.h
- Revision:
- 2:b0deebd36eb3
- Parent:
- 1:238f6a0108e7
diff -r 238f6a0108e7 -r b0deebd36eb3 LidarLitev2.h --- a/LidarLitev2.h Thu Oct 22 23:49:53 2015 +0000 +++ b/LidarLitev2.h Thu Oct 22 23:53:25 2015 +0000 @@ -42,17 +42,17 @@ /** Sets the Lidar to read continuously, indicating its ready to be read from by the modepin pulling down, a cerntain amount of times */ void beginContinuous(bool = true, char = 0x04, char = 0xff, int = 0xc4); //Enable if using continous setup with mode from Lidar and pulldown - - int distance(bool = true, bool = true, int = 0xc4); //Calclulates distance through I2C protocol of activating sensor with a write, then a write for the register, and a read. + /** Calclulates distance through I2C protocol of activating sensor with a write, then a write for the register, and a read. */ + int distance(bool = true, bool = true, int = 0xc4); // Returns distance as a integer in cm - + /** 1.) Set Lidar circuit for continuous mode + *2.) utilize the beginContinous function and configure as desired + * This function returns distance without any need to activate the lidar senore through a write command, + * instead the mode pin pulls down when the lidar is ready for a read + * Returns distance as a integer in cm */ int distanceContinuous(int = 0xc4); - // 1.) Set Lidar circuit for continuous mode - // 2.) utilize the beginContinous function and configure as desired - // This function returns distance without any need to activate the lidar senore through a write command, - // instead the mode pin pulls down when the lidar is ready for a read - // Returns distance as a integer in cm + private: // I2C Functions //