RNGFND1_ parameters¶
24 parameters in the RNGFND1_ family. ArduCopter 4.7 only — other vehicles share many of these names but not always the same ranges or meanings.
RNGFND1_ADDR¶
Bus address of sensor
This sets the bus address of the sensor, where applicable. Used for the I2C and DroneCAN sensors to allow for multiple sensors on different addresses.
Range |
|
Increment |
|
User level |
Standard |
RNGFND1_FUNCTION¶
Rangefinder function
Control over what function is used to calculate distance. For a linear function, the distance is (voltage-offset)*scaling. For a inverted function the distance is (offset-voltage)*scaling. For a hyperbolic function the distance is scaling/(voltage-offset). The functions return the distance in meters.
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
Linear |
|
Inverted |
|
Hyperbolic |
RNGFND1_GNDCLR¶
Distance from the range finder to the ground
This parameter sets the expected range measurement that the range finder should return when the vehicle is on the ground.
Units |
|
Range |
|
Increment |
|
User level |
Standard |
RNGFND1_MAX¶
Rangefinder maximum distance
Maximum distance in metres that rangefinder can reliably read
Units |
|
Increment |
|
User level |
Standard |
RNGFND1_MIN¶
Rangefinder minimum distance
Minimum distance in metres that rangefinder can reliably read
Units |
|
Increment |
|
User level |
Standard |
RNGFND1_OFFSET¶
rangefinder offset
Offset in volts for zero distance for analog rangefinders. Offset added to distance in centimeters for PWM lidars
Units |
|
Increment |
|
User level |
Standard |
RNGFND1_ORIENT¶
Rangefinder orientation
Orientation of rangefinder
User level |
Advanced |
Values¶
Value |
Meaning |
|---|---|
|
Forward |
|
Forward-Right |
|
Right |
|
Back-Right |
|
Back |
|
Back-Left |
|
Left |
|
Forward-Left |
|
Up |
|
Down |
RNGFND1_PIN¶
Rangefinder pin
Analog or PWM input pin that rangefinder is connected to. Analog RSSI or Airspeed ports can be used for Analog inputs (some autopilots provide others also), Non-IOMCU Servo/MotorOutputs can be used for PWM input when configured as “GPIOs”. Values for some autopilots are given as examples. Search wiki for “Analog pins” for analog pin or “GPIOs”, if PWM input type, to determine pin number.
Range |
|
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
Not Used |
|
Pixracer |
|
Pixhawk ADC4 |
|
Pixhawk ADC3 |
|
Pixhawk ADC6/Pixhawk2 ADC |
|
AUX1 |
|
AUX2 |
|
AUX3 |
|
AUX4 |
|
AUX5 |
|
AUX6 |
|
Pixhawk SBUS |
RNGFND1_POS_X¶
X position offset
X position of the rangefinder in body frame. Positive X is forward of the origin. Use the zero range datum point if supplied.
Units |
|
Range |
|
Increment |
|
User level |
Advanced |
RNGFND1_POS_Y¶
Y position offset
Y position of the rangefinder in body frame. Positive Y is to the right of the origin. Use the zero range datum point if supplied.
Units |
|
Range |
|
Increment |
|
User level |
Advanced |
RNGFND1_POS_Z¶
Z position offset
Z position of the rangefinder in body frame. Positive Z is down from the origin. Use the zero range datum point if supplied.
Units |
|
Range |
|
Increment |
|
User level |
Advanced |
RNGFND1_PWRRNG¶
Powersave range
This parameter sets the estimated terrain distance in meters above which the sensor will be put into a power saving mode (if available). A value of zero means power saving is not enabled
Units |
|
Range |
|
User level |
Standard |
RNGFND1_RECV_ID¶
RangeFinder CAN receive ID
The receive ID of the CAN frames. A value of zero means all IDs are accepted.
Range |
|
User level |
Advanced |
RNGFND1_RMETRIC¶
Ratiometric
This parameter sets whether an analog rangefinder is ratiometric. Most analog rangefinders are ratiometric, meaning that their output voltage is influenced by the supply voltage. Some analog rangefinders (such as the SF/02) have their own internal voltage regulators so they are not ratiometric.
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
No |
|
Yes |
RNGFND1_SCALING¶
Rangefinder scaling
Scaling factor between rangefinder reading and distance. For the linear and inverted functions this is in meters per volt. For the hyperbolic function the units are meterVolts. For Maxbotix serial sonar this is unit conversion to meters.
Units |
|
Increment |
|
User level |
Standard |
RNGFND1_SNR_MIN¶
RangeFinder Minimum signal strength
RangeFinder Minimum signal strength (SNR) to accept distance
Range |
|
User level |
Advanced |
RNGFND1_STOP_PIN¶
Rangefinder stop pin
Digital pin that enables/disables rangefinder measurement for the pwm rangefinder. A value of -1 means no pin. If this is set, then the pin is set to 1 to enable the rangefinder and set to 0 to disable it. This is used to enable powersaving when out of range. Some common values are given, but see the Wiki’s “GPIOs” page for how to determine the pin number for a given autopilot.
Range |
|
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
Not Used |
|
AUX1 |
|
AUX2 |
|
AUX3 |
|
AUX4 |
|
AUX5 |
|
AUX6 |
|
PX4 FMU Relay1 |
|
PX4 FMU Relay2 |
|
PX4IO Relay1 |
|
PX4IO Relay2 |
|
PX4IO ACC1 |
|
PX4IO ACC2 |
RNGFND1_TYPE¶
Rangefinder type
Type of connected rangefinder
User level |
Standard |
Values¶
Value |
Meaning |
|---|---|
|
None |
|
Analog |
|
MaxbotixI2C |
|
LidarLite-I2C |
|
PWM |
|
BBB-PRU |
|
LightWareI2C |
|
LightWareSerial |
|
Bebop |
|
MAVLink |
|
USD1_Serial |
|
LeddarOne |
|
MaxbotixSerial |
|
TeraRangerI2C |
|
LidarLiteV3-I2C |
|
VL53L0X or VL53L1X |
|
NMEA |
|
WASP-LRF |
|
BenewakeTF02 |
|
BenewakeTFmini-Serial |
|
LidarLightV3HP |
|
PWM |
|
BlueRoboticsPing |
|
DroneCAN |
|
BenewakeTFmini-I2C |
|
LanbaoPSK-CM8JL65-CC5 |
|
BenewakeTF03 |
|
VL53L1X-ShortRange |
|
LeddarVu8-Serial |
|
HC-SR04 |
|
GYUS42v2 |
|
MSP |
|
USD1_CAN |
|
Benewake_CAN |
|
TeraRangerSerial |
|
Lua_Scripting |
|
NoopLoop_TOFSense |
|
NoopLoop_TOFSense_CAN |
|
NRA24_CAN |
|
NoopLoop_TOFSenseF_I2C |
|
JRE_Serial |
|
Ainstein_LR_D1 |
|
RDS02UF |
|
HexsoonRadar |
|
LightWare-GRF |
|
BenewakeTFS20L |
|
DTS6012M |
|
LightWare-GRF-I2C |
|
SITL |
RNGFND1_WSP_AVG¶
Multi-pulse averages
Sets the number of pulses to be used in multi-pulse averaging mode. In this mode, a sequence of rapid fire ranges are taken and then averaged to improve the accuracy of the measurement
Range |
|
User level |
Advanced |
RNGFND1_WSP_BAUD¶
Baud rate
Desired baud rate
User level |
Advanced |
Values¶
Value |
Meaning |
|---|---|
|
Low Speed |
|
High Speed |
RNGFND1_WSP_FRQ¶
Frequency
Sets the repetition frequency of the ranging operation in Hertz. Upon entering the desired frequency the system will calculate the nearest frequency that it can handle according to the resolution of internal timers.
Range |
|
User level |
Advanced |
RNGFND1_WSP_MAVG¶
Moving Average Range
Sets the number of historic range results to use for calculating the current range result. When MAVG is greater than 1, the current range result will be the current measured value averaged with the N-1 previous results
Range |
|
User level |
Advanced |
RNGFND1_WSP_MEDF¶
Moving Median Filter
Sets the window size for the real-time median filter. When MEDF is greater than 0 the median filter is active
Range |
|
User level |
Advanced |
RNGFND1_WSP_THR¶
Sensitivity threshold
Sets the system sensitivity. Larger values of THR represent higher sensitivity. The system may limit the maximum value of THR to prevent excessive false alarm rates based on settings made at the factory. Set to -1 for automatic threshold adjustments
Range |
|
User level |
Advanced |