![nanoradar SR-PA24R Скачать руководство пользователя страница 6](http://html.mh-extra.com/html/nanoradar/sr-pa24r/sr-pa24r_user-manual_705110006.webp)
For details, please refer to the serial data protocol description. The test tools or
software is shown in the following table:
Table 3 Product test tool
No
Device
Qty
1
SR-PA24R
1
2
PC
1
3
USB to TTL adapter
1
4
5V or12Vpower adapter
1
5
Serial port debugging
assistant software
1
Note:
The TX and RX pins of the USB to TTL adapter and the TX and RX pins of the SR-PA24R
Radar need to be cross-connected.
5Data Parsing
The 24G radar altimeter outputs data through the serial port, 115200bps, 8N1, no
data no output, the specific protocol format is as follows:
Table 4 Data parsing
Data type
Number of
bytes
Description
Header byte
1Btyes
static
,
0x48
Height data
2Btyes
The lower 8 bits are in the front, the higher 8 bits are in
the back; the unit is cm; the signed integer is used, and
the highest bit of each byte should be discarded when
acquiring data;
Radar altimeter 3-byte protocol: 0x48, DataL, DataH; In order to adapt to open source
flight control, the actual distance is calculated in the following formula:
actual distance
(
cm
)
= [(DataH&0x7F)*128 + (DataL&0x7F) ]*2.5
。
6 Open source platform
The SR-PA24R is compatible with the open source flight control altimeter protocol