DUNE: Uniform Navigational Environment
2.3.0
|
Data logger to Imagenex .837 format.
Public Member Functions | |
Frame (void) | |
uint8_t * | getData (void) |
uint8_t * | getMessageData (void) |
uint8_t * | getFooterData (void) |
unsigned | getSize (void) const |
uint32_t | getMessageSize (void) const |
uint32_t | getFooterSize (void) const |
void | setTotalBytes (void) |
void | setBytesToRead (void) |
void | setStartGain (uint8_t gain) |
void | setRange (uint8_t range) |
void | setProfileTiltAngle (float angle) |
void | setPulseLength (uint8_t length) |
void | setSoundVelocity (float speed) |
void | setSpeed (float speed) |
void | setCourse (float course) |
void | setRoll (float roll) |
void | setPitch (float pitch) |
void | setHeading (float heading) |
void | setRepRate (uint16_t rate) |
void | setDisplayGain (uint8_t gain) |
void | setDisplayMode (bool xdcr) |
void | setGpsData (double lat, double lon) |
void | setDateTime (uint64_t now) |
void | setExtendedDataPoints (bool mode) |
void | setSerialStatus (uint8_t status) |
void | setFirmwareVersion (uint8_t version) |
837 Header Indices.
|
inline |
Constructor.
|
inline |
Get frame start address.
Referenced by Sensors::Imagenex837B::Task::handleSonarData(), setCourse(), setHeading(), setPitch(), setProfileTiltAngle(), setRepRate(), setRoll(), and setSoundVelocity().
|
inline |
Get footer start address.
References getMessageSize().
Referenced by setHeading(), setPitch(), and setRoll().
|
inline |
|
inline |
Get data start address.
Referenced by Sensors::Imagenex837B::Task::ping().
|
inline |
|
inline |
Retrieve the size of the frame.
References getFooterSize(), and getMessageSize().
Referenced by Sensors::Imagenex837B::Task::handleSonarData().
|
inline |
Define number of bytes to read in header.
References HDR_IDX_BYTES_TO_READ_HI, and HDR_IDX_BYTES_TO_READ_LO.
Referenced by setExtendedDataPoints().
|
inline |
Set GNSS ships course.
[in] | course | course. |
References getData(), and HDR_IDX_COURSE.
Referenced by Sensors::Imagenex837B::Task::updateState().
|
inline |
Set frame date and time.
[in] | now | millisecond since epoch. |
References HDR_IDX_DATE, HDR_IDX_MILLI, HDR_IDX_TIME, and HDR_IDX_TIME_HSEC.
Referenced by Sensors::Imagenex837B::Task::handleSonarData().
|
inline |
|
inline |
Set display mode.
References HDR_IDX_DISPLAY_MODE.
Referenced by Sensors::Imagenex837B::Task::setNadirAngle().
|
inline |
Change mode according with data points.
References setBytesToRead(), and setTotalBytes().
Referenced by Sensors::Imagenex837B::Task::setDataPoints().
|
inline |
Set Firmware version.
References HDR_IDX_VERSION.
Referenced by Sensors::Imagenex837B::Task::handleSonarData().
|
inline |
Define frame GPS data.
[in] | lat | latitude. |
[in] | lon | longitude. |
References DUNE::Math::Angles::degrees(), HDR_IDX_LATITUDE, HDR_IDX_LONGITUDE, and DUNE::Math::min().
Referenced by Sensors::Imagenex837B::Task::updateState().
|
inline |
Set heading.
[in] | heading | heading angle. |
References FTR_IDX_HEADING, getData(), getFooterData(), and HDR_IDX_HEADING.
Referenced by Sensors::Imagenex837B::Task::updateState().
|
inline |
Set pitch.
[in] | pitch | pitch angle. |
References FTR_IDX_PITCH, getData(), getFooterData(), and HDR_IDX_PITCH.
Referenced by Sensors::Imagenex837B::Task::updateState().
|
inline |
Set profile tilt angle.
[in] | angle | profile tilt angle. |
References getData(), and HDR_IDX_PROFILE.
Referenced by Sensors::Imagenex837B::Task::onUpdateParameters().
|
inline |
Set pulse length.
[in] | length | pulse length. |
References HDR_IDX_PULSE_LENGTH.
Referenced by Sensors::Imagenex837B::Task::setRange().
|
inline |
Set sonar range.
[in] | range | range. |
References HDR_IDX_RANGE.
Referenced by Sensors::Imagenex837B::Task::setRange().
|
inline |
Set repetition rate.
[in] | rate | repetition rate. |
References getData(), and HDR_IDX_REP_RATE.
Referenced by Sensors::Imagenex837B::Task::setRange().
|
inline |
Set roll.
[in] | roll | roll angle. |
References FTR_IDX_ROLL, getData(), getFooterData(), and HDR_IDX_ROLL.
Referenced by Sensors::Imagenex837B::Task::updateState().
|
inline |
Set serial status.
References HDR_IDX_SERIAL_STATUS.
Referenced by Sensors::Imagenex837B::Task::handleSonarData().
|
inline |
Set sound velocity.
[in] | speed | sound velocity |
References getData(), and HDR_IDX_SOUND_SPEED.
Referenced by Sensors::Imagenex837B::Task::consume().
|
inline |
Set GNSS ships speed.
[in] | speed | speed. |
References HDR_IDX_SPEED.
Referenced by Sensors::Imagenex837B::Task::updateState().
|
inline |
Set start gain.
[in] | gain | start gain. |
References HDR_IDX_START_GAIN.
Referenced by Sensors::Imagenex837B::Task::setStartGain().
|
inline |
Define total bytes in header.
References HDR_IDX_TBYTES_HI, and HDR_IDX_TBYTES_LO.
Referenced by setExtendedDataPoints().