okapi::ReadOnlyChassisModel class

A version of the ChassisModel that only supports read methods, such as querying sensor values.

This class does not let you write to motors, so it supports having multiple owners and as a result copying is enabled.

Derived classes

class ChassisModel
A version of the ReadOnlyChassisModel that also supports write methods, such as setting motor speed.

Constructors, destructors, conversion operators

~ReadOnlyChassisModel() defaulted virtual

Public functions

auto getSensorVals() const -> std::valarray<std::int32_t> pure virtual
Read the sensors.

Function documentation

std::valarray<std::int32_t> okapi::ReadOnlyChassisModel::getSensorVals() const pure virtual

Read the sensors.

Returns sensor readings (format is implementation dependent)