LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
readOnlyChassisModel.hpp
Go to the documentation of this file.
1
/*
2
* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
*/
6
#pragma once
7
8
#include "
okapi/api/coreProsAPI.hpp
"
9
#include <valarray>
10
11
namespace
okapi
{
17
class
ReadOnlyChassisModel
{
18
public
:
19
virtual
~ReadOnlyChassisModel
() =
default
;
20
26
virtual
std::valarray<std::int32_t>
getSensorVals
()
const
= 0;
27
};
28
}
// namespace okapi
okapi::ReadOnlyChassisModel
A version of the ChassisModel that only supports read methods, such as querying sensor values.
Definition
readOnlyChassisModel.hpp:17
okapi::ReadOnlyChassisModel::getSensorVals
virtual std::valarray< std::int32_t > getSensorVals() const =0
Read the sensors.
okapi::ReadOnlyChassisModel::~ReadOnlyChassisModel
virtual ~ReadOnlyChassisModel()=default
coreProsAPI.hpp
okapi
Definition
chassisController.hpp:16
include
okapi
api
chassis
model
readOnlyChassisModel.hpp
Generated by
1.9.8