Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
turret_subsystem_interface.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_TURRET_SUBSYSTEM_INTERFACE_HPP_
25#define TAPROOT_TURRET_SUBSYSTEM_INTERFACE_HPP_
26
28
29#include "subsystem.hpp"
30
32{
37{
38public:
40
44 virtual inline float getYawSetpoint() const = 0;
48 virtual inline float getPitchSetpoint() const = 0;
49
55 virtual void setYawSetpoint(float newAngle) = 0;
59 virtual void setPitchSetpoint(float newAngle) = 0;
60
65
70
74 virtual inline bool isOnline() const = 0;
75
79 virtual inline float getYawVelocity() const = 0;
83 virtual inline float getPitchVelocity() const = 0;
84
88 virtual float getYawAngleFromCenter() const = 0;
89
94 virtual float getPitchAngleFromCenter() const = 0;
95
100 virtual void setYawMotorOutput(float out) = 0;
101
105 virtual void setPitchMotorOutput(float out) = 0;
106
110 virtual bool yawLimited() const = 0;
111};
112} // namespace tap::control::turret
113
114#endif // TAPROOT_TURRET_SUBSYSTEM_INTERFACE_HPP_
Definition drivers.hpp:70
Definition wrapped_float.hpp:51
Definition subsystem.hpp:54
Drivers * drivers
Definition subsystem.hpp:138
Definition turret_subsystem_interface.hpp:37
virtual void setYawSetpoint(float newAngle)=0
virtual void setPitchMotorOutput(float out)=0
virtual float getPitchAngleFromCenter() const =0
virtual float getYawAngleFromCenter() const =0
virtual const tap::algorithms::WrappedFloat & getCurrentPitchValue() const =0
virtual const tap::algorithms::WrappedFloat & getCurrentYawValue() const =0
virtual void setPitchSetpoint(float newAngle)=0
TurretSubsystemInterface(Drivers *drivers)
Definition turret_subsystem_interface.hpp:39
Definition turret_subsystem_interface.hpp:32