This guide explains how to configure the User FIR filter applied to accelerometer and gyroscope data to meet your application requirements in terms of bandwidth, latency, and relative timing between sensor measurements.
PULSE implements the sbgInsRestApi protocol over a serial interface. All available settings and commands are described on the Digital interfaces page. All examples use the sbgEComApi command-line tool.
In this guide, we consider a PULSE connected to a Windows computer on serial port COM12, using the default baud rate of 921600 bps.
You can read the current FIR filter coefficients using the following commands.
Use the following command to read the current accelerometer FIR filter coefficients:
By default, the device returns:
Info
An empty coefficient array indicates that no User FIR filter is applied to the accelerometer measurements.
Use the following command to read the current gyroscope FIR filter coefficients:
By default, the device returns the coefficients of its internal filter:
The following command sets new User FIR filter coefficients for the gyroscopes:
To configure the accelerometer User FIR filter, replace gyroscopes with accelerometers in the API path.
Important
Ensure that the FIR filter coefficients are normalized so that their sum equals 1. Otherwise, the filter will not have unity gain and will alter the scale of constant or low-frequency accelerometer and gyroscope measurements.
If the FIR filter coefficients are successfully updated, the device should return:
Alternative Configuration Method
FIR filter coefficients can also be configured by exporting, modifying, and importing the device settings as a JSON file. For more information, see Export and Import Settings .
To retain the new FIR filter coefficients after a power cycle, save the device configuration using the following command:
If the settings are successfully saved, the device should return: