|
| 1 | +.. _common-lightware-grf250-lidar: |
| 2 | + |
| 3 | +========================== |
| 4 | +LightWare GRF250 / GRF500 |
| 5 | +========================== |
| 6 | + |
| 7 | +The `LightWare GRF250 <https://lightwarelidar.com/shop/grf-250/>`__ and `GRF500 <https://lightwarelidar.com/shop/grf-500/>`__ are long-range lidar-based rangefinders. |
| 8 | +Both models support serial (UART) communication and provide accurate distance and signal-strength data at configurable update rates. |
| 9 | + |
| 10 | +- GRF250: 0.2 m – 250 m range |
| 11 | +- GRF500: 0.2 m – 500 m range |
| 12 | + |
| 13 | +.. image:: ../../../images/lightware-grf250.png |
| 14 | + :width: 450px |
| 15 | + |
| 16 | +.. note:: |
| 17 | + |
| 18 | + Support for the LightWare GRF250 and GRF500 sensors was added in ArduPilot 4.7 and later. |
| 19 | + |
| 20 | +Serial Connection |
| 21 | +----------------- |
| 22 | + |
| 23 | +The GRF sensors communicate via UART using 3.3 V or 5 V logic levels. |
| 24 | +Connect the TX of the Lidar to the RX of the autopilot UART port, and the RX of the Lidar to the TX of the same port. |
| 25 | +Also connect GND and 5 V to power the sensor. |
| 26 | + |
| 27 | +.. image:: ../../../images/lightware-grf250-wiring.png |
| 28 | + :width: 600px |
| 29 | + |
| 30 | +Example (SERIAL4): |
| 31 | +~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 32 | + |
| 33 | +If the GRF is connected to the SERIAL4/5 port and it is the first rangefinder: |
| 34 | + |
| 35 | +- :ref:`SERIAL4_PROTOCOL <SERIAL4_PROTOCOL>` = 9 (Lidar) |
| 36 | +- :ref:`SERIAL4_BAUD <SERIAL4_BAUD>` = 115 (115200 baud) |
| 37 | +- :ref:`RNGFND1_TYPE <RNGFND1_TYPE>` = 45 (LightWareGRF) |
| 38 | +- :ref:`RNGFND1_SCALING <RNGFND1_SCALING>` = 1 |
| 39 | +- :ref:`RNGFND1_MIN <RNGFND1_MIN>` = 0.2 |
| 40 | +- :ref:`RNGFND1_MAX <RNGFND1_MAX>` = 250 *(for GRF250)* or 500 *(for GRF500)* |
| 41 | + |
| 42 | +If instead you are using the Telem2 port, set :ref:`SERIAL2_PROTOCOL <SERIAL2_PROTOCOL>` = 9 and :ref:`SERIAL2_BAUD <SERIAL2_BAUD>` = 115. |
| 43 | + |
| 44 | +Power note: |
| 45 | +The GRF sensors can draw higher current than typical serial peripherals. |
| 46 | +Check your flight controller’s 5 V peripheral rail limits — an external 5 V supply may be required. |
| 47 | + |
| 48 | +Additional GRF-specific Parameters |
| 49 | +---------------------------------- |
| 50 | + |
| 51 | +When :ref:`RNGFNDx_TYPE <RNGFND1_TYPE>` is set to 45 (LightWareGRF) and the autopilot is rebooted, the following additional parameters become available: |
| 52 | + |
| 53 | +- :ref:`RNGFNDx_GRF_RET <RNGFND1_GRF_RET>`: Selects which return type to use (0: FirstRaw, 1: FirstFiltered, 2: LastRaw, 3: LastFiltered). |
| 54 | +- :ref:`RNGFNDx_GRF_ST <RNGFND1_GRF_ST>`: Sets the minimum acceptable return signal strength in dB. Returns weaker than this value are ignored (0 disables filtering). |
| 55 | +- :ref:`RNGFNDx_GRF_RATE <RNGFND1_GRF_RATE>`: Sets the sensor update rate in Hz. GRF250 supports 1–50 readings per second, while GRF500 supports 0.5–10 readings per second. |
| 56 | + |
| 57 | +Testing the Sensor |
| 58 | +------------------ |
| 59 | + |
| 60 | +You can view the live distance readings in Mission Planner → Flight Data → Status tab, under the field named “rangefinder1” (or `rangefinder2` / 3 for additional sensors). |
| 61 | + |
| 62 | +.. image:: ../../../images/mp_rangefinder_lidarlite_testing.jpg |
| 63 | + :target: ../_images/mp_rangefinder_lidarlite_testing.jpg |
| 64 | + |
| 65 | +If values remain at zero, verify serial wiring, baud rate, and power supply. |
| 66 | + |
0 commit comments