AP_Proximity: move connect-in-SITL instructions to header

This commit is contained in:
Peter Barker 2023-05-12 12:19:00 +10:00 committed by Randy Mackay
parent f722be9758
commit 8938508147
2 changed files with 13 additions and 11 deletions

View File

@ -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 <AP_HAL/AP_HAL.h>
#include "AP_Proximity_RPLidarA2.h"
#include <AP_InternalError/AP_InternalError.h>

View File

@ -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