File demo_usb_stream_imu_3DM_GX3_25.cpp¶
Testing imu connection directly via the drivers. See test_interface in the same package for an example of the API.
- Author
Vincent Berenz (vincent.brenz@tuebingen.mpg.de)
- Version
0.1
- Date
2019-05-09
- Copyright
Copyright (c) 2019
Functions
-
void
continuous_mode_on
(real_time_tools::UsbStream &usb_stream, bool stream_mode)¶ Send the message that set the imu into stream mode or not.
- Parameters
usb_stream
: is the usb interface.stream_mode
: start or stop the stream mode.
-
bool
is_continuous_mode_on
(real_time_tools::UsbStream &usb_stream, bool stream_mode)¶ Check the mode of the imu.
- Return
true imu is in stream mode
- Return
false imu is in idle mode
- Parameters
usb_stream
: usb communication interface.stream_mode
: read the socket in stream mode or not.
-
void
continuous_mode_off
(real_time_tools::UsbStream &usb_stream, bool stream_mode)¶ Set the imu into idle mode.
- Parameters
usb_stream
:stream_mode
:
-
void
reset
(real_time_tools::UsbStream &usb_stream, bool stream_mode)¶ Reset the imu.
- Parameters
usb_stream
:stream_mode
:
-
int
main
(int argc, char **argv) Example on how to use the usb interface using an imu.
- Return
int
- Parameters
argc
:argv
: