mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
This commit is contained in:
@@ -40219,6 +40219,62 @@ The mode will switch from long to short range when the distance is less than the
|
||||
| ------ | -------- | -------- | --------- | ------- | ---- | --------- |
|
||||
| | 1 | 50 | | 4 | m | |
|
||||
|
||||
### SENS_ASDT1_CFG (`INT32`) {#SENS_ASDT1_CFG}
|
||||
|
||||
Serial Configuration for Sony AS-DT1 Rangefinder.
|
||||
|
||||
Configure on which serial port to run Sony AS-DT1 Rangefinder.
|
||||
|
||||
**Values:**
|
||||
|
||||
- `0`: Disabled
|
||||
- `6`: UART 6
|
||||
- `101`: TELEM 1
|
||||
- `102`: TELEM 2
|
||||
- `103`: TELEM 3
|
||||
- `104`: TELEM/SERIAL 4
|
||||
- `201`: GPS 1
|
||||
- `202`: GPS 2
|
||||
- `203`: GPS 3
|
||||
- `300`: Radio Controller
|
||||
- `301`: Wifi Port
|
||||
- `401`: EXT2
|
||||
|
||||
| Reboot | minValue | maxValue | increment | default | unit | Read-Only |
|
||||
| ------- | -------- | -------- | --------- | ------- | ---- | --------- |
|
||||
| ✓ | | | | 0 | | |
|
||||
|
||||
### SENS_ASDT1_MODE (`INT32`) {#SENS_ASDT1_MODE}
|
||||
|
||||
Distance measurement range.
|
||||
|
||||
Sony AS-DT1 distance measurement range mode. The driver uses
|
||||
this mode to configure the sensor and publish matching
|
||||
obstacle_distance metadata.
|
||||
|
||||
**Values:**
|
||||
|
||||
- `0`: 30MSTD
|
||||
- `1`: 30M15F
|
||||
- `2`: 30M30F
|
||||
- `3`: 20M
|
||||
- `4`: 40M
|
||||
|
||||
| Reboot | minValue | maxValue | increment | default | unit | Read-Only |
|
||||
| ------- | -------- | -------- | --------- | ------- | ---- | --------- |
|
||||
| ✓ | 0 | 4 | | 0 | | |
|
||||
|
||||
### SENS_ASDT1_ROT (`FLOAT`) {#SENS_ASDT1_ROT}
|
||||
|
||||
Sensor yaw offset.
|
||||
|
||||
Yaw angle offset of the Sony AS-DT1 sensor relative to the
|
||||
vehicle forward direction. Positive values are clockwise.
|
||||
|
||||
| Reboot | minValue | maxValue | increment | default | unit | Read-Only |
|
||||
| ------- | -------- | -------- | --------- | ------- | ---- | --------- |
|
||||
| ✓ | -360 | 360 | | 0 | deg | |
|
||||
|
||||
### SENS_BAHRS_CFG (`INT32`) {#SENS_BAHRS_CFG}
|
||||
|
||||
Serial Configuration for EULER-NAV BAHRS.
|
||||
@@ -40332,62 +40388,6 @@ This parameter defines the rotation of the FMU board relative to the platform.
|
||||
| ------- | -------- | -------- | --------- | ------- | ---- | --------- |
|
||||
| ✓ | -1 | 40 | | 0 | | |
|
||||
|
||||
### SENS_ASDT1_CFG (`INT32`) {#SENS_ASDT1_CFG}
|
||||
|
||||
Serial Configuration for Sony AS-DT1 Rangefinder.
|
||||
|
||||
Configure on which serial port to run Sony AS-DT1 Rangefinder.
|
||||
|
||||
**Values:**
|
||||
|
||||
- `0`: Disabled
|
||||
- `6`: UART 6
|
||||
- `101`: TELEM 1
|
||||
- `102`: TELEM 2
|
||||
- `103`: TELEM 3
|
||||
- `104`: TELEM/SERIAL 4
|
||||
- `201`: GPS 1
|
||||
- `202`: GPS 2
|
||||
- `203`: GPS 3
|
||||
- `300`: Radio Controller
|
||||
- `301`: Wifi Port
|
||||
- `401`: EXT2
|
||||
|
||||
| Reboot | minValue | maxValue | increment | default | unit | Read-Only |
|
||||
| ------- | -------- | -------- | --------- | ------- | ---- | --------- |
|
||||
| ✓ | | | | 0 | | |
|
||||
|
||||
### SENS_ASDT1_MODE (`INT32`) {#SENS_ASDT1_MODE}
|
||||
|
||||
Distance measurement range.
|
||||
|
||||
Sony AS-DT1 distance measurement range mode. The driver uses
|
||||
this mode to configure the sensor and publish matching
|
||||
obstacle_distance metadata.
|
||||
|
||||
**Values:**
|
||||
|
||||
- `0`: 30MSTD
|
||||
- `1`: 30M15F
|
||||
- `2`: 30M30F
|
||||
- `3`: 20M
|
||||
- `4`: 40M
|
||||
|
||||
| Reboot | minValue | maxValue | increment | default | unit | Read-Only |
|
||||
| ------- | -------- | -------- | --------- | ------- | ---- | --------- |
|
||||
| ✓ | 0 | 4 | | 0 | | |
|
||||
|
||||
### SENS_ASDT1_ROT (`FLOAT`) {#SENS_ASDT1_ROT}
|
||||
|
||||
Sensor yaw offset.
|
||||
|
||||
Yaw angle offset of the Sony AS-DT1 sensor relative to the
|
||||
vehicle forward direction. Positive values are clockwise.
|
||||
|
||||
| Reboot | minValue | maxValue | increment | default | unit | Read-Only |
|
||||
| ------- | -------- | -------- | --------- | ------- | ---- | --------- |
|
||||
| ✓ | -360 | 360 | | 0 | deg | |
|
||||
|
||||
### SENS_BOARD_X_OFF (`FLOAT`) {#SENS_BOARD_X_OFF}
|
||||
|
||||
Board rotation X (roll) offset.
|
||||
|
||||
@@ -114,7 +114,7 @@ This flight controller supports up to 8 FMU PWM outputs (`MAIN`).
|
||||
|
||||
The 8 outputs are in 3 groups:
|
||||
|
||||
- Outputs 1-4 in group1 (Timer1)
|
||||
- Outputs 1-4 in group1 (Timer1)
|
||||
- Outputs 5-6 in group2 (Timer4)
|
||||
- Outputs 7-8 in group3 (Timer12)
|
||||
|
||||
|
||||
@@ -391,25 +391,12 @@ Source: [drivers/distance_sensor/sony](https://github.com/PX4/PX4-Autopilot/tree
|
||||
Sony AS-DT1 serial driver. The driver probes 921600 and 115200 baud, configures
|
||||
the sensor for binary streaming, and publishes multipoint distance measurements.
|
||||
|
||||
Setup/usage information: https://docs.px4.io/main/en/sensor/sony_asdt1.html
|
||||
|
||||
### Examples
|
||||
|
||||
Attempt to start driver on a specified serial device.
|
||||
|
||||
```
|
||||
sony_asdt1 start -d /dev/ttyS4
|
||||
```
|
||||
|
||||
Print the sensor's saved configuration without starting measurements.
|
||||
|
||||
```
|
||||
sony_asdt1 start -d /dev/ttyS4 -s
|
||||
```
|
||||
|
||||
Stop driver.
|
||||
|
||||
```
|
||||
sony_asdt1 status
|
||||
sony_asdt1 stop
|
||||
```
|
||||
|
||||
@@ -420,8 +407,7 @@ sony_asdt1 <command> [arguments...]
|
||||
Commands:
|
||||
start Start driver
|
||||
-d <val> Serial device
|
||||
[-s] Send flshow and print response instead of starting
|
||||
measurements
|
||||
[-s] Send flshow and print response instead of starting measurements
|
||||
|
||||
stop Stop driver
|
||||
|
||||
|
||||
@@ -36,12 +36,12 @@ Connect the sensor TX/RX pins to the flight controller UART and share ground bet
|
||||
|
||||

|
||||
|
||||
| AS-DT1 8-pin Connector | Function | Connect To |
|
||||
| ---------------------- | -------------------- | ---------------------------------- |
|
||||
| Pin 1 | GND | External power ground and flight controller serial GND |
|
||||
| Pin 2 | VCC | External 12 V to 24 V power supply |
|
||||
| Pin 5 | UART TX | Flight controller serial RX |
|
||||
| Pin 6 | UART RX | Flight controller serial TX |
|
||||
| AS-DT1 8-pin Connector | Function | Connect To |
|
||||
| ---------------------- | -------- | ------------------------------------------------------ |
|
||||
| Pin 1 | GND | External power ground and flight controller serial GND |
|
||||
| Pin 2 | VCC | External 12 V to 24 V power supply |
|
||||
| Pin 5 | UART TX | Flight controller serial RX |
|
||||
| Pin 6 | UART RX | Flight controller serial TX |
|
||||
|
||||
The ground from AS-DT1 pin 1 must be common to both the external power supply and the flight controller serial port.
|
||||
For example, splice or split the AS-DT1 ground wire so it connects to the power supply negative terminal and to the flight controller UART `GND` pin.
|
||||
@@ -66,11 +66,11 @@ Use the Sony application to set the sensor to **Measurement (UART)** mode before
|
||||
|
||||
The driver uses the following parameters:
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | ----------- |
|
||||
| [SENS_ASDT1_CFG](../advanced_config/parameter_reference.md#SENS_ASDT1_CFG) | Selects the serial port and enables driver autostart on boot. |
|
||||
| [SENS_ASDT1_MODE](../advanced_config/parameter_reference.md#SENS_ASDT1_MODE) | Selects the AS-DT1 measurement range mode. The driver configures the sensor mode and publishes matching `obstacle_distance` metadata. |
|
||||
| [SENS_ASDT1_ROT](../advanced_config/parameter_reference.md#SENS_ASDT1_ROT) | Sets the sensor yaw offset, in degrees, relative to vehicle forward. This is published as `obstacle_distance.angle_offset`; positive values are clockwise. |
|
||||
| Parameter | Description |
|
||||
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [SENS_ASDT1_CFG](../advanced_config/parameter_reference.md#SENS_ASDT1_CFG) | Selects the serial port and enables driver autostart on boot. |
|
||||
| [SENS_ASDT1_MODE](../advanced_config/parameter_reference.md#SENS_ASDT1_MODE) | Selects the AS-DT1 measurement range mode. The driver configures the sensor mode and publishes matching `obstacle_distance` metadata. |
|
||||
| [SENS_ASDT1_ROT](../advanced_config/parameter_reference.md#SENS_ASDT1_ROT) | Sets the sensor yaw offset, in degrees, relative to vehicle forward. This is published as `obstacle_distance.angle_offset`; positive values are clockwise. |
|
||||
|
||||
`SENS_ASDT1_MODE` and `SENS_ASDT1_ROT` may not appear until `SENS_ASDT1_CFG` is enabled and the flight controller has rebooted once.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user