This guide explains how to change the PULSE imuShort
output message period. The imuShort
message is used to output PULSE gyroscopes, accelerometers, temperature and status data.
Before we start
The PULSE implements the sbgInsRestApi protocol over a serial interface. All available configurations and commands are detailed in the Digital interfaces page. All the examples use the sbgEComApi command line tool.
In this guide, we consider a PULSE connected to a Windows computer on the serial COM12 and using the default 921600 bps baud rate.
Read imuShort output period
You can query the imuShort
output message configuration on the only available comA
interface by using the following command:
The device should answer the default configuration ie 200Hz:
You can also query the whole device configuration using the path /api/v1/settings
Changing imuShort output period
You can change the PULSE output date rate by selecting the output period on the imuShort
message. The following settings are available:
Frequency | Period Option |
---|
2 Khz | 500us |
1 kHz | 1 ms |
500 Hz | 2 ms |
250 Hz | 4 ms |
200 Hz | 5 ms |
100 Hz | 10 ms |
50 Hz | 20 ms |
20 Hz | 50 ms |
10 Hz | 100 ms |
The command below changes the output period for the imuShort
message to 1khz on the serial interface comA
:
The device should return the following answer:
You don't have to reboot the device for the new output period to be effective.
Tx Saturation
It is user's responsibility to check the coherence between the baud rate and the data output frequency to avoid serial interface saturation.
Save New Settings
Don't forget to save your new settings if you would like to keep them for the next power cycle. Simply send the command below:
The device answer should be: