diff --git a/docs/en/releases/main.md b/docs/en/releases/main.md index db65a6ed5f9..600d29fe6dd 100644 --- a/docs/en/releases/main.md +++ b/docs/en/releases/main.md @@ -31,7 +31,7 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ## Upgrade Guide - `COM_ARM_TRAFF` has been replaced by `COM_TRAFF_AVOID`. The old value 3 ("enforce for mission modes only") is migrated to `COM_TRAFF_AVOID=2`, which blocks arming in all modes, not just mission modes. If you relied on being able to arm manually with traffic detected, set `COM_TRAFF_AVOID=1` (warning only) instead. -- `PCA9685_SCHD_HZ` has been removed. `PCA9685_PWM_FREQ` now sets both the PWM frequency of the PCA9685 and the rate at which values are pushed to it; if you had `PCA9685_SCHD_HZ` set to a non-default value, set `PCA9685_PWM_FREQ` to it after upgrading. Frequencies above 400 Hz (previously only usable in duty-cycle mode) are no longer supported. +- `PCA9685_SCHD_HZ` has been removed. `PCA9685_PWM_FREQ` now sets both the PWM frequency of the PCA9685 and the rate at which values are pushed to it; if you had `PCA9685_SCHD_HZ` set to a non-default value, set `PCA9685_PWM_FREQ` to it after upgrading. Frequencies above 400Hz (previously only usable in duty-cycle mode) are no longer supported. - **Flight controller firmware no longer embeds CAN node firmware.** The `px4_fmu-v5_uavcanv0periph` build, which carried CUAV CAN GPS v1 firmware in its ROMFS so the flight controller could update the GPS over DroneCAN, and the `CONFIG_BOARD_UAVCAN_PERIPHERALS` board option behind it have been removed. Use the standard `px4_fmu-v5_default` firmware and update the GPS from the SD card with `cuav_can-gps-v1_default.uavcan.bin` from the release instead; see [DroneCAN Firmware Update](../dronecan/index.md#firmware-update). ([PX4-Autopilot#28870](https://github.com/PX4/PX4-Autopilot/pull/28870)) - **jMAVSim has been removed.** `make px4_sitl jmavsim` and the `10017_jmavsim_iris` airframe (`SYS_AUTOSTART=10017`) no longer exist, and the setup scripts no longer install Java or `ant`. Use [SIH](../sim_sih/index.md) with the [Hawkeye](../sim_hawkeye/index.md) visualizer instead (`make px4_sitl_sih sihsim_quadx`), or [Gazebo](../sim_gazebo_gz/index.md). - **Re-check motor failure handling on hexarotors.** [CA_FAILURE_MODE](../advanced_config/parameter_reference.md#CA_FAILURE_MODE) = `1` now also stops the motor opposite the failed one on a hexarotor (previously only the failed motor was removed from the allocation). Other airframes are unaffected, and `CA_FAILURE_MODE=0` (the default) is unchanged. See [Motor Failure Recovery](../config/motor_failure_recovery.md). ([PX4-Autopilot#28078](https://github.com/PX4/PX4-Autopilot/pull/28078)) @@ -85,7 +85,7 @@ Please continue reading for [upgrade instructions](#upgrade-guide). - **The primary GNSS receiver defaults to Auto.** [SENS_GNSS_PRIME](../advanced_config/parameter_reference.md#SENS_GNSS_PRIME) now defaults to `-1` (Auto) instead of `0`, and saved values are not changed: with Auto the moving base of a moving base pair is the primary receiver, and without one, a receiver that passes the strict checks ([GNSS_REQ_EPH](../advanced_config/parameter_reference.md#GNSS_REQ_EPH) and the other `GNSS_REQ_*` parameters) is used, then one with an RTK fixed solution. To keep preferring the receiver on the main serial port, set `SENS_GNSS_PRIME` to `0`. - In flight the primary receiver is now also left when it has failed the strict checks for 10 s while the other receiver passed them. ([PX4-Autopilot#28798](https://github.com/PX4/PX4-Autopilot/pull/28798)) + In flight the primary receiver is now also left when it has failed the strict checks for 10s while the other receiver passed them. ([PX4-Autopilot#28798](https://github.com/PX4/PX4-Autopilot/pull/28798)) - **Re-check the motor failure trigger thresholds.** `MOTFAIL_OFF` and `MOTFAIL_TIME` are replaced by a separate band and trigger time per direction ([MOTFAIL_OVER](../advanced_config/parameter_reference.md#MOTFAIL_OVER)/[MOTFAIL_OVR_TIME](../advanced_config/parameter_reference.md#MOTFAIL_OVR_TIME) and [MOTFAIL_UNDER](../advanced_config/parameter_reference.md#MOTFAIL_UNDER)/[MOTFAIL_UND_TIME](../advanced_config/parameter_reference.md#MOTFAIL_UND_TIME)), and are not migrated: the new parameters start at their defaults. The check now compares a low-pass filtered current residual instead of the instantaneous value, so the thresholds are worth re-deriving: see [Motor Failure Detection > Upgrading from PX4 v1.18](../config/motor_failure_detection.md#upgrading-from-px4-v1-18). ([PX4-Autopilot#27917](https://github.com/PX4/PX4-Autopilot/pull/27917)) - **The failure detector attitude trigger checks the tilt error instead of roll and pitch separately.** @@ -166,6 +166,7 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ### Sensors - Enable [u-blox Diagnostics with u-center](../gps_compass/u-center.md) while the vehicle's GPS runs as usual. ([PX4-Autopilot#28280](https://github.com/PX4/PX4-Autopilot/pull/28280)). +- [Benewake TFmini Plus](../sensor/tfmini.md) rangefinder support: select it with [SENS_TFMINI_HW](../advanced_config/parameter_reference.md#SENS_TFMINI_HW) = `4` (0.1–12m, 3.6° field of view). For `TFMINI / TFMINI-S` (`1`) the driver now reports a 2° field of view (was 2.3°). ([PX4-Autopilot#29575](https://github.com/PX4/PX4-Autopilot/pull/29575)) ### Simulation @@ -214,7 +215,7 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ### Fixed-wing - TECS underspeed protection now starts at the minimum airspeed ([FW_AIRSPD_MIN](../advanced_config/parameter_reference.md#FW_AIRSPD_MIN)) and is fully active at 90% of it, or halfway to [FW_AIRSPD_STALL](../advanced_config/parameter_reference.md#FW_AIRSPD_STALL) if that is higher. Previously it only started 15% of trim airspeed below the minimum airspeed. The roll angle is limited towards 20° (or [FW_R_LIM](../advanced_config/parameter_reference.md#FW_R_LIM) if lower) while undersped, and the altitude reference is reset to avoid a pitch-up on recovery. ([PX4-Autopilot#26859](https://github.com/PX4/PX4-Autopilot/pull/26859)) -- Fixed-wing course control now maps the course setpoint to a heading using the [true airspeed](../config_fw/airspeed_scale_handling.md#airspeed-in-px4) setpoint, so the wind triangle against the estimated wind is also correct at altitude. Previously it used the equivalent airspeed setpoint, which at 3000 m and 15 m/s airspeed pointed the heading about 7° too far into a 10 m/s crosswind and left the vehicle a few metres upwind of its track. ([PX4-Autopilot#29567](https://github.com/PX4/PX4-Autopilot/pull/29567)) +- Fixed-wing course control now maps the course setpoint to a heading using the [true airspeed](../config_fw/airspeed_scale_handling.md#airspeed-in-px4) setpoint, so the wind triangle against the estimated wind is also correct at altitude. Previously it used the equivalent airspeed setpoint, which at 3000m and 15m/s airspeed pointed the heading about 7° too far into a 10m/s crosswind and left the vehicle a few metres upwind of its track. ([PX4-Autopilot#29567](https://github.com/PX4/PX4-Autopilot/pull/29567)) ### Rover diff --git a/docs/en/sensor/rangefinders.md b/docs/en/sensor/rangefinders.md index 71c46e23c66..4f31ea92052 100644 --- a/docs/en/sensor/rangefinders.md +++ b/docs/en/sensor/rangefinders.md @@ -22,6 +22,7 @@ There may also be other DroneCAN rangefinders than those listed here. | [ARK DIST MR] | ToF (IR) | 8 cm to ~50 m | DroneCAN, UART | ✔️ | | | [Benewake TFmini Plus] | ToF (IR LED) | 0.1 m – 12 m | UART | ~ | PX4 minimum 0.1 m | | [Benewake TFmini-S] | ToF (IR laser) | 0.1 m – 12 m | UART | ~ | PX4 minimum 0.4 m | +| [Benewake TFmini] _(disc.)_ | ToF (IR) | 0.3 m – 12 m | UART | ~ | Discontinued | | [Garmin LIDAR-Lite v3] | ToF (IR laser) | up to 40 m | I2C, PWM | ~ | PX4 caps range to 35 m or less | | [Holybro ST VL53L1X Lidar] | ToF (IR) | up to ~4 m | I2C | ~ | | | [LeddarOne] | ToF (IR) | 1 cm – 40 m | UART | ~ | | @@ -47,6 +48,7 @@ There may also be other DroneCAN rangefinders than those listed here. [ARK DIST MR]: ../dronecan/ark_dist_mr.md [Benewake TFmini Plus]: ../sensor/tfmini.md [Benewake TFmini-S]: ../sensor/tfmini.md +[Benewake TFmini]: ../sensor/tfmini.md [Garmin LIDAR-Lite v3]: ../sensor/lidar_lite.md [Holybro ST VL53L1X Lidar]: #holybro-st-vl53l1x-lidar [Lanbao PSK-CM8JL65-CC5]: ../sensor/cm8jl65_ir_distance_sensor.md diff --git a/docs/en/sensor/tfmini.md b/docs/en/sensor/tfmini.md index 27518b700e9..253bd226128 100644 --- a/docs/en/sensor/tfmini.md +++ b/docs/en/sensor/tfmini.md @@ -2,36 +2,48 @@ -The Benewake [TFmini-S](https://en.benewake.com/TFminiS/index_proid_325.html) and [TFmini Plus](https://en.benewake.com/TFminiPlus/index_proid_323.html) are small, low-power time-of-flight LiDAR [rangefinders](../sensor/rangefinders.md) with a range of 0.1–12 m and a 100 Hz default update rate. +The Benewake [TFmini-S](https://en.benewake.com/TFminiS/index_proid_325.html) and [TFmini Plus](https://en.benewake.com/TFminiPlus/index_proid_323.html) are small, low-power time-of-flight LiDAR [rangefinders](../sensor/rangefinders.md) with a range of 0.1–12m and a 100Hz default update rate. They connect to the flight controller using a serial port (UART). ![TFmini LiDAR](../../assets/hardware/sensors/tfmini/tfmini_hero.jpg) ## Supported Models {#supported_models} -| Model | Range | Connection | `SENS_TFMINI_HW` value | -| ---------------------------------------------------------------------- | -------- | ---------- | ---------------------- | -| [TFmini-S](https://en.benewake.com/TFminiS/index_proid_325.html) | 0.1–12 m | UART | `1` (default) | -| [TFmini Plus](https://en.benewake.com/TFminiPlus/index_proid_323.html) | 0.1–12 m | UART | `4` | +| Model | Range | Connection | `SENS_TFMINI_HW` value | +| ---------------------------------------------------------------------- | ------- | ---------- | ---------------------- | +| [TFmini-S](https://en.benewake.com/TFminiS/index_proid_325.html) | 0.1–12m | UART | `1` (default) | +| [TFmini Plus](https://en.benewake.com/TFminiPlus/index_proid_323.html) | 0.1–12m | UART | `4` | -PX4 reports distances from 0.4 m to 12 m for the TFmini-S and from 0.1 m to 12 m for the TFmini Plus. +::: details Discontinued + +The following model is supported by PX4 but is no longer in Benewake's product line-up. + +| Model | Range | Connection | `SENS_TFMINI_HW` value | +| ------ | ------- | ---------- | ---------------------- | +| TFmini | 0.3–12m | UART | `1` | + +::: + +PX4 reports distances from 0.4m to 12m for the TFmini-S and from 0.1m to 12m for the TFmini Plus. + +The [TFmini-i](https://en.benewake.com/TFminii/index_proid_324.html) is not supported by PX4: it connects via RS-485 or CAN (separate hardware versions) and is powered from 7–30V. ## Specifications {#specifications} -- **Technology:** Time-of-flight, 850 nm infrared (VCSEL on the TFmini-S, LED on the TFmini Plus) -- **Range:** 0.1–12 m at 90% reflectivity; 0.1–7 m (TFmini-S) or 0.1–4 m (TFmini Plus) at 10% reflectivity -- **Update rate:** 100 Hz by default, adjustable 1–1000 Hz +- **Technology:** Time-of-flight, 850nm infrared (VCSEL on the TFmini-S, LED on the TFmini Plus) +- **Range:** 0.1–12m at 90% reflectivity; 0.1–7m (TFmini-S) or 0.1–4m (TFmini Plus) at 10% reflectivity +- **Update rate:** 100Hz by default, adjustable 1–1000Hz - **Field of view:** 2° (TFmini-S), 3.6° (TFmini Plus) -- **Accuracy:** ±6 cm below 6 m and ±1% from 6–12 m (TFmini-S); ±5 cm below 5 m and ±1% from 5–12 m (TFmini Plus) -- **Resolution:** 1 cm -- **Interface:** UART at 115200 baud, 8N1, 3.3 V (LVTTL); the sensors also support I2C, which the PX4 driver does not use -- **Input voltage:** 5 V ±0.1 V (TFmini-S), 5 V ±0.5 V (TFmini Plus) -- **Current draw:** ≤140 mA average, 200 mA peak (TFmini-S); ≤110 mA average, 140 mA peak (TFmini Plus) -- **Dimensions:** 42 x 15 x 16 mm (TFmini-S), 35 x 18.5 x 21 mm (TFmini Plus) -- **Weight:** 5 g (TFmini-S), 12 g (TFmini Plus) -- **Operating temperature:** 0–60 °C (TFmini-S), -20 °C to 60 °C (TFmini Plus) +- **Accuracy:** ±6cm below 6m and ±1% from 6–12m (TFmini-S); ±5cm below 5m and ±1% from 5–12m (TFmini Plus) +- **Resolution:** 1cm +- **Interface:** UART at 115200 baud, 8N1, 3.3V (LVTTL); the sensors also support I2C, which the PX4 driver does not use +- **Input voltage:** 5V ±0.1V (TFmini-S), 5V ±0.5V (TFmini Plus) +- **Current draw:** ≤140mA average, 200mA peak (TFmini-S); ≤110mA average, 140mA peak (TFmini Plus) +- **Dimensions:** 42 x 15 x 16mm (TFmini-S), 35 x 18.5 x 21mm (TFmini Plus) +- **Weight:** 5g (TFmini-S), 12g (TFmini Plus) +- **Operating temperature:** 0–60°C (TFmini-S), -20°C to 60°C (TFmini Plus) - **Ingress protection:** IP65 (TFmini Plus) -- **Laser class:** Class 1 (TFmini-S) +- **Laser class:** Class 1, EN 60825 (TFmini-S); no laser class, exemption level EN 62471 (TFmini Plus) ## Where to Buy {#store} @@ -44,33 +56,33 @@ PX4 reports distances from 0.4 m to 12 m for the TFmini-S and from 0.1 m to 12 m Mount the sensor facing down: PX4 assumes a downward-facing sensor, and the orientation cannot be configured. -Readings below the minimum range of the selected model (0.4 m for the TFmini-S, 0.1 m for the TFmini Plus) are reported as out of range. +Readings below the minimum range of the selected model (0.4m for the TFmini-S, 0.1m for the TFmini Plus) are reported as out of range. ### Pinouts {#pinouts} -The TFmini-S and TFmini Plus have a cable ending in a JST 1.25 mm 4-pin connector (Molex 51021-0400). +The TFmini-S and TFmini Plus have a cable ending in a JST 1.25mm 4-pin connector (Molex 51021-0400). This is not the JST-GH connector used by flight controllers that follow the [Pixhawk Connector Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-009%20Pixhawk%20Connector%20Standard.pdf), so you will need an adapter cable to connect to those ports. -The cable can be extended, but Benewake recommends keeping it shorter than 1 m. +The cable can be extended, but Benewake recommends keeping it shorter than 1m. The wire colours are the same on both models, but the pin numbering differs. TFmini-S: -| Pin | Wire colour | Signal | -| --- | ----------- | ------------------------- | -| 1 | Black | GND | -| 2 | Red | +5 V | -| 3 | White | RX (UART receive, 3.3 V) | -| 4 | Green | TX (UART transmit, 3.3 V) | +| Pin | Wire colour | Signal | +| --- | ----------- | ------------------------ | +| 1 | Black | GND | +| 2 | Red | +5V | +| 3 | White | RX (UART receive, 3.3V) | +| 4 | Green | TX (UART transmit, 3.3V) | TFmini Plus: -| Pin | Wire colour | Signal | -| --- | ----------- | ------------------------- | -| 1 | Red | +5 V | -| 2 | White | RX (UART receive, 3.3 V) | -| 3 | Green | TX (UART transmit, 3.3 V) | -| 4 | Black | GND | +| Pin | Wire colour | Signal | +| --- | ----------- | ------------------------ | +| 1 | Red | +5V | +| 2 | White | RX (UART receive, 3.3V) | +| 3 | Green | TX (UART transmit, 3.3V) | +| 4 | Black | GND | ### Wiring {#wiring} @@ -80,12 +92,12 @@ The TFmini can be connected to any unused serial port (UART), such as `TELEM2`, | ----------- | ------------------------------------ | | Green (TX) | Flight controller UART RX | | White (RX) | Flight controller UART TX (optional) | -| Red (+5 V) | 5 V supply | +| Red (+5V) | 5V supply | | Black (GND) | Flight controller GND | The driver only reads from the sensor, so the sensor's RX wire does not need to be connected. -The TFmini-S needs 5 V ±0.1 V and up to 140 mA (200 mA peak); the TFmini Plus needs 5 V ±0.5 V and up to 110 mA (140 mA peak). +The TFmini-S needs 5V ±0.1V and up to 140mA (200mA peak); the TFmini Plus needs 5V ±0.5V and up to 110mA (140mA peak). Neither has over-voltage or reverse-polarity protection. ## Firmware Support {#firmware_support} @@ -132,7 +144,7 @@ You can observe the published measurements with: listener distance_sensor ``` -The sensor type is reported as laser, with minimum and maximum distances of 0.4 m and 12 m for the TFmini-S, and 0.1 m and 12 m for the TFmini Plus. +The sensor type is reported as laser, with minimum and maximum distances of 0.4m and 12m for the TFmini-S, and 0.1m and 12m for the TFmini Plus. The measurements can also be viewed in the `DISTANCE_SENSOR` message in the _QGroundControl MAVLink Inspector_. For more information see [Rangefinders > Testing](../sensor/rangefinders.md#testing).