for 16bit attitude data [degree/LSB]
More...
#include <g366.hpp>
for 16bit attitude data [degree/LSB]
G366 class
◆ G366()
| driver::imu_driver::g366::G366::G366 |
( |
const char * |
_portname, |
|
|
const int |
_baudrate |
|
) |
| |
|
explicit |
Serial communication setting.
- Parameters
-
| portname | Port name of serial device |
| baudrate | Baudrate of serial communication |
Setting such as port opening, and communication speed
◆ ~G366()
| driver::imu_driver::g366::G366::~G366 |
( |
| ) |
|
◆ concat_8bit()
| uint16_t driver::imu_driver::g366::G366::concat_8bit |
( |
uint8_t |
msb, |
|
|
uint8_t |
lsb |
|
) |
| |
Concatenate 8bit to 16bit.
◆ get_data()
| std::shared_ptr< DATA > driver::imu_driver::g366::G366::get_data |
( |
| ) |
|
◆ is_ready()
| bool driver::imu_driver::g366::G366::is_ready |
( |
| ) |
|
Check ready.
- Returns
- true if ready, Otherwise is false.
◆ self_test()
| uint16_t driver::imu_driver::g366::G366::self_test |
( |
| ) |
|
Run a self-test.
- Returns
- diagnostic_status()
◆ set_atti_motion_profile()
| void driver::imu_driver::g366::G366::set_atti_motion_profile |
( |
uint8_t |
motion_type = 32 | ) |
|
Set attitude motion profile.
- Parameters
-
| motion_type | Value corresponding to the motion type. Default is 0b00100000. |
0b00100000 is modeC, which Assumed operating speed is 1 [m/s], Application examples are construction machinery.
◆ set_baud_rate()
| void driver::imu_driver::g366::G366::set_baud_rate |
( |
int |
baudrate | ) |
|
◆ set_filter()
| void driver::imu_driver::g366::G366::set_filter |
( |
uint8_t |
filter_type = 8 | ) |
|
Set filter.
- Parameters
-
| filter_type | Value corresponding to the filter type. Default is 0b00001000. |
0b00001000 is
◆ setup()
| bool driver::imu_driver::g366::G366::setup |
( |
| ) |
|
Setting G366 configuration.
◆ software_reset()
| void driver::imu_driver::g366::G366::software_reset |
( |
| ) |
|
◆ update()
| bool driver::imu_driver::g366::G366::update |
( |
| ) |
|
Update g366 data.
Aquitision of G366 data
The documentation for this class was generated from the following files:
- src/driver/imu_driver/include/imu_driver/g366.hpp
- src/driver/imu_driver/src/g366.cpp