Main Content

flush

Flush the host buffer

Description

flush(imu) clears the buffers and resets the start time.

Note

This function is available only with the Sensor Fusion and Tracking Toolbox™ and Navigation Toolbox™.

Input Arguments

collapse all

The IMU sensor object with the default or specified properties.

More About

collapse all

Code Generation Using MATLAB Function Block

  • Use flush in a MATLAB® Function block with the Simulink® Support Package for Arduino® Hardware to generate code that can be deployed on Arduino Hardware.

  • flush does not reset the start time.

Introduced in R2019a