hello ,
I have problem setting the parameter for lidar lite v4 in pixhawk .
Has anyone figured out what to set for the following parameter for lidar lite v4 ?
in the documentation is only wriiten about version 2 and 3 but not version 4.
Hello,
Being a relatively new version, there is no driver written yet for the Lidar Lite V4.
If you really want to use it now, you can interface to an Arduino that works at 3.5 volts (ProMini 328) and use Garmin Library to read I2C data and output to Tx at 115200 bps. This way it emulates a standard serial Lidar :
// ----------------------------------------------------------------------
// Optionally configure the LidarLite parameters to lend itself to
// various modes of operation by altering ‘configure’ input integer.
// See LIDARLite_v4LED.cpp for details.
// ----------------------------------------------------------------------
myLidarLite.configure(0);
}
void loop()
{
if (myLidarLite.getBusyFlag() == 0)
{
// Trigger the next range measurement
myLidarLite.takeRange();
// Read new distance data from device registers
Serial.println(myLidarLite.readDistance());
}
Garmin library is on Garmin github
As for config = look at my previous post.
Please note, this is advanced stuff and I am assuming that You know how hardware works and how to program an Arduino.
I have now the sensor working with arduino, How can I connect the arduino with the pixhawk? the wiring I know through telemetry,
I need the library and the code for arduino to enable communicating with pixhawk , .ino file ?
can you help me with that? @ppoirier
You dont need cts-rts for this.
Please refer to my existing thread on how to capture I2C and retransmit on Serial to th Flight Controller. You need to know how to program an Arduino for this.
Otherwise , it is easier to get a LidarLite V3 … if you want to stick to Garmin