LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
point.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
10
11namespace okapi {
12struct Point {
13 QLength x{0_m};
14 QLength y{0_m};
15
22 Point inFT(const StateMode &imode) const {
24 return *this;
25 } else {
26 return {y, x};
27 }
28 }
29};
30} // namespace okapi
StateMode
The mode for the OdomState calculated by Odometry.
Definition stateMode.hpp:12
@ FRAME_TRANSFORMATION
+x is forward, +y is right, 0 degrees is along +x
QLength x
Definition point.hpp:13
QLength y
Definition point.hpp:14
Point inFT(const StateMode &imode) const
Computes the value of this point in StateMode::FRAME_TRANSFORMATION.
Definition point.hpp:22