#include <Stim300Base.hpp>
◆ Stim300Base()
| Stim300Base::Stim300Base |
( |
int |
max_packet_size | ) |
|
◆ ~Stim300Base()
| Stim300Base::~Stim300Base |
( |
| ) |
|
◆ __attribute__() [1/2]
◆ __attribute__() [2/2]
◆ convertAcc2Acceleration()
| virtual double imu_stim300::Stim300Base::convertAcc2Acceleration |
( |
uint8_t const * |
buffer | ) |
|
|
protectedpure virtual |
◆ convertAcc2IncreVel()
| double Stim300Base::convertAcc2IncreVel |
( |
uint8_t const * |
buffer | ) |
|
|
protected |
◆ convertGyro2AngularRate()
| double Stim300Base::convertGyro2AngularRate |
( |
uint8_t const * |
buffer | ) |
|
|
protected |
◆ convertIncl2Acceleration()
| double Stim300Base::convertIncl2Acceleration |
( |
uint8_t const * |
buffer | ) |
|
|
protected |
◆ convertLatency2Microseconds()
| double Stim300Base::convertLatency2Microseconds |
( |
uint8_t const * |
buffer | ) |
|
|
protected |
◆ convertTemp2Celsius()
| double Stim300Base::convertTemp2Celsius |
( |
uint8_t const * |
buffer | ) |
|
|
protected |
◆ enterServiceMode()
| bool Stim300Base::enterServiceMode |
( |
| ) |
|
Enter in Service mode (not transferring data, configuration only)
◆ extractPacket()
| virtual int imu_stim300::Stim300Base::extractPacket |
( |
uint8_t const * |
buffer, |
|
|
size_t |
buffer_size |
|
) |
| const |
|
pure virtual |
◆ fullReset()
| bool Stim300Base::fullReset |
( |
| ) |
|
Performs a full reset of the device. Sending a RESET command
◆ getAccData()
| Eigen::Vector3d Stim300Base::getAccData |
( |
| ) |
|
Return the Accelerometers values.
◆ getAccOutputType()
Get Accelerometer Output Mode.
◆ getChecksumStatus()
| bool Stim300Base::getChecksumStatus |
( |
| ) |
|
Return Checksum verification from the last computation.
◆ getFileDescriptor()
| int Stim300Base::getFileDescriptor |
( |
| ) |
|
It gets the file descriptor (fd)
- Returns
- int fd
◆ getGyroData()
| Eigen::Vector3d Stim300Base::getGyroData |
( |
| ) |
|
Return the Gyroscopes values.
◆ getInclData()
| Eigen::Vector3d Stim300Base::getInclData |
( |
| ) |
|
Return the Inclinometers values.
◆ getPacketCounter()
| int Stim300Base::getPacketCounter |
( |
| ) |
|
Return the Incremental counter Return the value of the value of the counter in inertial_values.
◆ getPacketLatency()
| uint64_t Stim300Base::getPacketLatency |
( |
| ) |
|
Return the datagram latency in microseconds (us) Return the latency calculated by the device. Latency is the time between the moment at which the sample has been digitized + low pass-filtered and the transmitted time.
◆ getStatus()
| bool Stim300Base::getStatus |
( |
| ) |
|
Return the STIM300 internal status Return the negation value of the internal_error variable.
◆ getTempData()
| std::vector< double > Stim300Base::getTempData |
( |
| ) |
|
Return the Temperature values from Gyros.
◆ open()
| bool Stim300Base::open |
( |
std::string const & |
filename | ) |
|
Open the device, reset it and read device information. the baud rate is 921600
◆ printInfo()
| virtual void imu_stim300::Stim300Base::printInfo |
( |
| ) |
|
|
pure virtual |
◆ processPacket()
| virtual int imu_stim300::Stim300Base::processPacket |
( |
| ) |
|
|
pure virtual |
◆ setAcctoIncrementalVelocity()
| bool Stim300Base::setAcctoIncrementalVelocity |
( |
| ) |
|
Set Accelerometers output to Incremental velocity Internally enters in SERVICEMODE and It always returns to a NORMAL mode after changing the Accelerometers output.
◆ setBaudrate()
| bool Stim300Base::setBaudrate |
( |
int |
brate | ) |
|
Sets the device baudrate (only possible for serial devices). +brate+ is the baud rate in bps, can be one of 19200, 57600 and 115200
If the device is not open yet, this baud rate will be set on startup (i.e. in open())
◆ setFrequency()
| void Stim300Base::setFrequency |
( |
int |
sampling_frequency | ) |
|
Ste the driver sampling frequency.
Expected frequency (normally connected to timeout)
◆ setPackageTimeout()
| void Stim300Base::setPackageTimeout |
( |
double |
timeoutSeconds | ) |
|
Ste the package Timeout.
Expected time to have a whole package
◆ welcome()
| void Stim300Base::welcome |
( |
| ) |
|
Print a welcome to stdout
- Returns
- nothing
◆ __attribute__
| typedef imu_stim300::Stim300Base::__attribute__ |
|
protected |
◆ acc_output
Content of the datagram (package) configuration NOTE: So far only RATE_ACC_INCLI_TEMP is implemented
◆ baudrate
| int imu_stim300::Stim300Base::baudrate |
|
protected |
◆ calculatedCRC
| boost::uint32_t imu_stim300::Stim300Base::calculatedCRC |
|
protected |
◆ content
If Acc, Gyros or Incl report error it would be true (false by default)
◆ counter_ratio
| int imu_stim300::Stim300Base::counter_ratio |
|
protected |
◆ expectedCRC
| boost::uint32_t imu_stim300::Stim300Base::expectedCRC |
|
protected |
Type of values returned by the STIM300. By defaults it is Acceleration in m/s^2
◆ inertial_values
Counter is incremented by 9 units; Here the previous to the current packge is saved
◆ internal_error
| bool imu_stim300::Stim300Base::internal_error |
|
protected |
The three states of the automata of the STIM300
◆ modes
Struct with the processes STIM300 values
◆ pckgTimeout
| base::Time imu_stim300::Stim300Base::pckgTimeout |
|
protected |
◆ prev_counter
| uint8_t imu_stim300::Stim300Base::prev_counter |
|
protected |
Estimate time to have a whole package
◆ sampling_frequency
| int imu_stim300::Stim300Base::sampling_frequency |
|
protected |
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-drivers-imu-stim300-0.20150320/src/Stim300Base.hpp
- /build/rock-master-18.09-drivers-imu-stim300-0.20150320/src/Stim300Base.cpp