Just got two Lidar Lite’s and two microcontrollers. I’ve got a geology degree so I’m wanting to do this into Lidar, which is in a LAS format. http://www.asprs.org/Committee-General/LASer-LAS-File-Format-Exchange-Activities.html
Curious how people would suggest going about programming the microcontroller to read “print and save” what the Lidar Lite sees onto my computer. I’ll than use another program to manipulate the LAS.
Kevin S. Chambers
The LAS file format is binary, which presents a challenge for beginning programmers, but is no problem in the long run. The Arduino is programmed in standard C/C++ with some minor modifications (*such as no double precision floating point), so with that in mind, I would be looking around for C/C++ programs that create such files, but are intended for larger processors, to use as a starting point.
You will need to be aware of issues such as different default integer sizes and byte order (“endianess”) on different machines and the small memory available on the Arduino. If you will be storing the data on an SD card, this will further limit the amount of RAM memory you have available for program data.
- Edit: this is a significant problem, as the header record expects several double precision floats.
Which micro-controllers do you have? Writing such a file format takes quite a "big" library implying much RAM
An option might be to write your measurements in a more simple file format and do postprocessing on the PC e.g. in Python.
You could write your measurements in a commas separated format,
or in XML e.g. using my XML write library - http://forum.arduino.cc/index.php?topic=197823.0 -