Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
setpoint_subsystem.hpp
Go to the documentation of this file.
1/*****************************************************************************/
2/********** !!! WARNING: CODE GENERATED BY TAPROOT. DO NOT EDIT !!! **********/
3/*****************************************************************************/
4
5/*
6 * Copyright (c) 2020-2021 Advanced Robotics at the University of Washington <robomstr@uw.edu>
7 *
8 * This file is part of Taproot.
9 *
10 * Taproot is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * Taproot is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Taproot. If not, see <https://www.gnu.org/licenses/>.
22 */
23
24#ifndef TAPROOT_SETPOINT_SUBSYSTEM_HPP_
25#define TAPROOT_SETPOINT_SUBSYSTEM_HPP_
26
28
29namespace tap
30{
31// Forward declaration
32class Drivers;
33
34namespace control
35{
36namespace setpoint
37{
48{
49public:
54 virtual inline float getSetpoint() const = 0;
55
63 virtual inline void setSetpoint(float newAngle) = 0;
64
68 virtual float getCurrentValue() const = 0;
69
75 virtual float getJamSetpointTolerance() const = 0;
76
84 virtual bool calibrateHere() = 0;
85
90 virtual bool isJammed() = 0;
91
96 virtual void clearJam() = 0;
97
101 virtual inline bool isCalibrated() = 0;
102
106 virtual inline bool isOnline() = 0;
107
112 virtual inline float getVelocity() = 0;
113
114}; // class SetpointSubsystem
115
116} // namespace setpoint
117
118} // namespace control
119
120} // namespace tap
121
122#endif // TAPROOT_SETPOINT_SUBSYSTEM_HPP_
Definition subsystem.hpp:54
Definition setpoint_subsystem.hpp:48
virtual float getCurrentValue() const =0
virtual float getJamSetpointTolerance() const =0
virtual void setSetpoint(float newAngle)=0
virtual float getSetpoint() const =0
Definition ballistics.cpp:29
tap::Drivers Drivers
Definition drivers.hpp:11