Skip to main content

VehicleSpeedOutput Struct

Vehicle body speed measurement output with calibration and corrections applied (MessageType::VEHICLE_SPEED_OUTPUT, version 1). More...

Declaration

struct point_one::fusion_engine::messages::VehicleSpeedOutput { ... }

Included Headers

Base struct

structMessagePayload

The base class for all message payloads. More...

Public Member Attributes Index

SensorDataSourcedata_source = SensorDataSource::UNKNOWN

The source of the incoming data, if known. More...

uint8_tflags = 0x0

A bitmask of flags associated with the measurement data. More...

GearTypegear = GearType::UNKNOWN

The transmission gear currently in use, or direction of motion, if available. More...

Timestampp1_time

The time of the measurement, in P1 time (beginning at power-on). More...

floatvehicle_speed_mps = NAN

The current vehicle speed estimate (in m/s). More...

Public Static Attributes Index

static constexpr uint8_tFLAG_SIGNED = 0x1

Set this flag if the measured wheel speeds are signed (positive forward, negative reverse). More...

static constexpr MessageTypeMESSAGE_TYPE = MessageType::VEHICLE_SPEED_OUTPUT
static constexpr uint8_tMESSAGE_VERSION = 0

Description

Vehicle body speed measurement output with calibration and corrections applied (MessageType::VEHICLE_SPEED_OUTPUT, version 1).

This message is an output from the device that contains the along-track speed of the vehicle (forward/backward), after applying any estimated corrections for scale factor, etc.

Odometry data may be received via a software input from a host machine, a vehicle CAN bus, or a hardware voltage signal (wheel ticks). The data_source field will indicate which type of data source provided the measurements to the device.

info

When odometry is provided using hardware wheel ticks, the output rate of this message may differ from the wheel tick input rate. For high accuracy applications, FusionEngine may integrate tick counts over longer intervals to improve performance.

See also VehicleSpeedInput and RawVehicleSpeedOutput.

Definition at line 711 of file measurements.h.

Public Member Attributes

data_source

SensorDataSource point_one::fusion_engine::messages::VehicleSpeedOutput::data_source = SensorDataSource::UNKNOWN

The source of the incoming data, if known.

Definition at line 728 of file measurements.h.

728 SensorDataSource data_source = SensorDataSource::UNKNOWN;

flags

uint8_t point_one::fusion_engine::messages::VehicleSpeedOutput::flags = 0x0

A bitmask of flags associated with the measurement data.

Definition at line 740 of file measurements.h.

740 uint8_t flags = 0x0;

gear

GearType point_one::fusion_engine::messages::VehicleSpeedOutput::gear = GearType::UNKNOWN

The transmission gear currently in use, or direction of motion, if available.

Set to GearType::FORWARD or GearType::REVERSE where vehicle direction information is available externally.

Definition at line 737 of file measurements.h.

737 GearType gear = GearType::UNKNOWN;

p1_time

Timestamp point_one::fusion_engine::messages::VehicleSpeedOutput::p1_time

The time of the measurement, in P1 time (beginning at power-on).

Definition at line 723 of file measurements.h.

vehicle_speed_mps

float point_one::fusion_engine::messages::VehicleSpeedOutput::vehicle_speed_mps = NAN

The current vehicle speed estimate (in m/s).

Definition at line 745 of file measurements.h.

745 float vehicle_speed_mps = NAN;

Public Static Attributes

FLAG_SIGNED

constexpr uint8_t point_one::fusion_engine::messages::VehicleSpeedOutput::FLAG_SIGNED = 0x1
constexpr static

Set this flag if the measured wheel speeds are signed (positive forward, negative reverse).

Otherwise, if the values are assumed to be unsigned (positive in both directions).

Definition at line 720 of file measurements.h.

720 static constexpr uint8_t FLAG_SIGNED = 0x1;

MESSAGE_TYPE

constexpr MessageType point_one::fusion_engine::messages::VehicleSpeedOutput::MESSAGE_TYPE = MessageType::VEHICLE_SPEED_OUTPUT
constexpr static

Definition at line 712 of file measurements.h.

712 static constexpr MessageType MESSAGE_TYPE = MessageType::VEHICLE_SPEED_OUTPUT;

MESSAGE_VERSION

constexpr uint8_t point_one::fusion_engine::messages::VehicleSpeedOutput::MESSAGE_VERSION = 0
constexpr static

Definition at line 713 of file measurements.h.

713 static constexpr uint8_t MESSAGE_VERSION = 0;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.