-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distance Sensor : Driver for Lanbao CM8JL65 #11136
Conversation
Build failure in CI. Please also change from TELEM1 - that is not a great default because it is commonly used. |
@dagar I get build failures on things not related to this driver. Could you check please? |
This should be using the new serial port allocation interface. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cmic0, I reviewed and provided some feedback.
Most importantly we need to change to non-blocking reads since it's running on the work queue.
@bkueng thanks for the review! Applied your suggestions, now should be ok.. let me know :-)! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now.
I restared CI, let's see if it passes.
You'd need to rebase to get the Jenkins hardware test to pass, but it isn't relevant for this PR. |
Is this a standard CRC? I can't seem to find the datasheet for this device. |
TODO: Parsing the data Signed-off-by: Claudio Micheli <claudio@auterion.com>
TODO: - Clean up the code - Add uORB publishing messages Signed-off-by: Claudio Micheli <claudio@auterion.com>
TODO: Need to fix driver cycling. Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
Serial is now cycled with work_queue rescheduling if some bytes are missing. TODO: - Fix occasional sensor spikes (can be identified with crc) - Clean up the code - disable debug printf Signed-off-by: Claudio Micheli <claudio@auterion.com>
TODO : Adjust work_queue rescheduling (to always have a 10Hz cycle) Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
First "stable" version of the driver. TODO: - Cleanup the code - Bench test (compare data with IMU) - Flight Test Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
Disabled by default. Signed-off-by: Claudio Micheli <claudio@auterion.com>
Device port can be set via SENS_EN_CM8JL65 parameter: SENS_EN_CM8JL65 = 0 -> Disabled SENS_EN_CM8JL65 = 1 -> Enabled on TELEM2 SENS_EN_CM8JL65 = 2 -> Enabled on TELEM1 Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
- Removed blocking serial. - Added passing variables by reference to parser. - Removed commented code. Signed-off-by: Claudio Micheli <claudio@auterion.com>
@dagar rebased on upstream, CI passed! |
Driver for a new distance sensor (Lanbao PSK-CM8JL65-CC5).
Additional context
If using TELEM1 port, disable MAVLINK messages there (MAV_0_CONFIG PARAMETER).
Data is published on distance_sensor topic at 10Hz rate.
Test data / coverage
