Common
common packages for kyubic
 
Loading...
Searching...
No Matches
driver::imu_driver::g366::G366 Class Reference

for 16bit attitude data [degree/LSB] More...

#include <g366.hpp>

Public Member Functions

 G366 (const char *_portname, const int _baudrate)
 Serial communication setting.
 
 ~G366 ()
 
uint16_t concat_8bit (uint8_t msb, uint8_t lsb)
 Concatenate 8bit to 16bit.
 
void set_baud_rate (int baudrate)
 Set baudrate.
 
void set_filter (uint8_t filter_type=8)
 Set filter.
 
void set_atti_motion_profile (uint8_t motion_type=32)
 Set attitude motion profile.
 
uint16_t self_test ()
 Run a self-test.
 
void software_reset ()
 Run a software reset.
 
bool is_ready ()
 Check ready.
 
std::shared_ptr< DATAget_data ()
 Get G366 data.
 
bool setup ()
 Setting G366 configuration.
 
bool update ()
 Update g366 data.
 

Detailed Description

for 16bit attitude data [degree/LSB]

G366 class

Constructor & Destructor Documentation

◆ G366()

driver::imu_driver::g366::G366::G366 ( const char *  _portname,
const int  _baudrate 
)
explicit

Serial communication setting.

Parameters
portnamePort name of serial device
baudrateBaudrate of serial communication

Setting such as port opening, and communication speed

◆ ~G366()

driver::imu_driver::g366::G366::~G366 ( )

Member Function Documentation

◆ 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 ( )

Get G366 data.

Returns
DATA structure of G366

◆ 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_typeValue 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 baudrate.

Parameters
baudrateserial baudrate

◆ set_filter()

void driver::imu_driver::g366::G366::set_filter ( uint8_t  filter_type = 8)

Set filter.

Parameters
filter_typeValue 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 ( )

Run a 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: