Nav6.lvlib:Open.vi

Open a reference to the Nav6 IMU. A reference to a serial port is required to be passed in.

Only YPR Mode is supported at this time. The Open VI should be placed in Begin in the FRC Framework.

Nav6.lvlib:Open.vi

cu8

UpdateRate (100Hz)

The update rate with which to configure the Nav6 in hz. Valid values are 4 - 100. 100 hz is the default. Values outside the valid range are coerced to the closest valid value.

cerrcodeclst

error in (no error)

error in (no error) describes error conditions that occur before this node runs. The default is no error. If an error occurred before this node runs, the node passes the error in (no error) value to error out. This node runs normally only if no error occurred before this node runs. If an error occurs while this node runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use exception control to treat what is normally an error as no error or to treat a warning as an error. Use error in (no error) and error out to check errors and to specify execution order by wiring error out from one node to error in (no error) of the next node.

ccclst

SerialPortRef

SerialPortRef specifies a reference to the serial port corresponding to the serial device you want to use. Use the Open VI to open this reference.

cenum

Nav6Mode (YPR)

The protocol mode to set the nav6 to.

YPR - Yaw, Pitch, Roll, Compass Heading

Gyro - The Gyro Data update message communicates the raw gyro, accelerometer, magnetometer and temperature data. This data bypasses the Digital Motion Processor, and allows the individual sensors to be used directly without any intervening processing.

Quaternion - The Quaternion Data update message communicates the Quaternions calculated by the Digital Motion Procssor, as well as some of the raw sensors readings

YPR mode is the only mode currently implemented

ierrcodeclst

error out

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.

iu32

Gyroscope Full Scale Range (deg/sec)

iu32

Accelerometer Full Scale Range (g)

iu32

Output Rate (hz)

ienum

CalibrationState

Wait - Waiting to start calibrating.

Accumulate - Calibrating

Complete - Calibration is complete

icclst

Nav6DevRef

Reference to the Nav6

ibool

Open Succesfull

True if a response to the stream command was received.