LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
asyncPositionController.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/control/async/asyncController.hpp
"
9
#include <memory>
10
11
namespace
okapi
{
12
template
<
typename
Input,
typename
Output>
13
class
AsyncPositionController
:
virtual
public
AsyncController
<Input, Output> {
14
public
:
18
virtual
void
tarePosition
() = 0;
19
26
virtual
void
setMaxVelocity
(std::int32_t imaxVelocity) = 0;
27
};
28
}
// namespace okapi
asyncController.hpp
okapi::AsyncController
Closed-loop controller that steps on its own in another thread and automatically writes to the output...
Definition
asyncController.hpp:16
okapi::AsyncPositionController
Definition
asyncPositionController.hpp:13
okapi::AsyncPositionController::tarePosition
virtual void tarePosition()=0
Sets the "absolute" zero position of the controller to its current position.
okapi::AsyncPositionController::setMaxVelocity
virtual void setMaxVelocity(std::int32_t imaxVelocity)=0
Sets a new maximum velocity (typically motor RPM [0-600]).
okapi
Definition
chassisController.hpp:16
include
okapi
api
control
async
asyncPositionController.hpp
Generated by
1.9.8