![Vectornav VN-100 Скачать руководство пользователя страница 34](http://html2.mh-extra.com/html/vectornav/vn-100/vn-100_user-manual_3752294034.webp)
34
UM001
4.2.4
Example Case 1 – Selecting outputs from only the Common Group
For many applications you might be able to get by with only the output types available in the common
group. For these situations the configuration of the output message is simple. Suppose only the following
information shown below is desired.
Bit
Offset
Group 1
Common
0
TimeStartup
3
YawPitchRoll
5
AngularRate
For this example we will assume that the data will be polled using serial port 2 at 50 Hz.
To configure this output message you would send the following command to the VN-100.
$VNWRG,75,2,16,01,0029*XX
Now let’s dissect this command to see what is actually being set:
Field
Value
Description
Header
$VN
ASCII message header
Command
WRG
Write register command
Register ID
75
Register 75 (Config register for first output message)
AsyncMode
2
Message set to output on serial port 2.
RateDivisor
16
Divisor = 16. If the ImuRate = 800Hz then, the message output rate
will be (800 / 16 = 50 Hz).
OutputGroup
01
Groups = 0x01. (Binary group 1 enabled)
GroupField 1
0029
Group 1 Field = 0x0029. In binary 0x0029 = 0b00101001.
The active bits correspond to the following active output fields:
Bit 0 – TimeStartup
Bit 3 – YawPitchRoll
Bit 5 - AngularRate
Checksum
XX
Payload terminator and checksum. XX instructs the VN-100 to
bypass the checksum evaluation. This allows us to manually type
messages in a serial terminal without needing to calculate a valid
checksum.
End Line
\r\n
Carriage return and line feed. Terminates the ASCII message.
4.2.5
Example Case 2 – Outputs from multiple Output Groups without
extention bits
This example case demonstrates how to select multiple output fields from more than one output group.
Assume that the following bold output types are desired:
Bit
Offset
Group 1
Common
Group 3
IMU
Group 5
Attitude
0
TimeStartup
1
2
UncompAccel
Quaternion
3
UncompAngularRate
Содержание VN-100
Страница 1: ...UM001 1 Firmware v2 1 0 0 Document Revision 2 22 VN 100 User Manual Embedded Navigation Solutions...
Страница 9: ...UM001 9 2 Specifications 2 1 VN 100 Surface Mount Sensor SMD Electrical Pin assignments top down view...
Страница 14: ...14 UM001 2 3 VN 100 Surface Mount Sensor SMD Dimensions Measurements are in inches 2 4 VN 100 Rugged Dimensions...
Страница 102: ...102 UM001 8 3 Factory Defaults Settings Name Default Factory Value Magnetometer Calibration Control 1 3 5...
Страница 113: ...UM001 113 9 5 Factory Defaults Settings Name Default Factory Value Velocity Compensation Control 1 0 1 0 01...