From 8938508147a35a1d9588d7c3d44929b6b040702d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 12 May 2023 12:19:00 +1000 Subject: [PATCH] AP_Proximity: move connect-in-SITL instructions to header --- libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp | 11 ----------- libraries/AP_Proximity/AP_Proximity_RPLidarA2.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp b/libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp index c773109632..a0af09c4b9 100644 --- a/libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp +++ b/libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp @@ -32,17 +32,6 @@ #include "AP_Proximity_RPLidarA2.h" -/* - - DEVICE=/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0 - ./Tools/autotest/sim_vehicle.py --gdb --debug -v ArduCopter -A --uartF=uart:$DEVICE:115200 --speedup=1 - -param set SERIAL5_PROTOCOL 11 -param set PRX_TYPE 5 -reboot - - */ - #include #include "AP_Proximity_RPLidarA2.h" #include diff --git a/libraries/AP_Proximity/AP_Proximity_RPLidarA2.h b/libraries/AP_Proximity/AP_Proximity_RPLidarA2.h index 2b5bfcfc9e..5f44ba0e33 100644 --- a/libraries/AP_Proximity/AP_Proximity_RPLidarA2.h +++ b/libraries/AP_Proximity/AP_Proximity_RPLidarA2.h @@ -26,6 +26,19 @@ * */ +/* + +# to connect device to SITL: +./Tools/autotest/sim_vehicle.py -v Rover --gdb --debug -A --serial5=uart:/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:115200 +param set SERIAL5_PROTOCOL 11 +param set SERIAL5_BAUD 115200 +param set PRX1_TYPE 5 +reboot + +# short outer-two wires on JST plug to get it to spin + +*/ + #pragma once