Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
move_unjam_comprised_command.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_MOVE_UNJAM_COMPRISED_COMMAND_HPP_
25#define TAPROOT_MOVE_UNJAM_COMPRISED_COMMAND_HPP_
26
28
29#include "move_command.hpp"
30#include "unjam_command.hpp"
31
32namespace tap
33{
34namespace control
35{
36namespace setpoint
37{
38// Forward declarations
39class SetpointSubsystem;
40
52{
53public:
78 float moveDisplacement,
79 uint32_t moveTime,
80 uint32_t pauseAfterMoveTime,
81 bool setToTargetOnEnd,
82 float setpointTolerance,
83 float unjamDisplacement,
84 float unjamThreshold,
85 uint32_t maxUnjamWaitTime,
86 uint_fast16_t unjamCycleCount);
87
88 void initialize() override;
89
90 void execute() override;
91
92 void end(bool interrupted) override;
93
94 bool isFinished() const override;
95
96 const char* getName() const override { return "agitator shoot"; }
97
98protected:
100
102
104
106
108}; // class MoveUnjamComprisedCommand
109
110} // namespace setpoint
111
112} // namespace control
113
114} // namespace tap
115
116#endif // TAPROOT_MOVE_UNJAM_COMPRISED_COMMAND_HPP_
Definition drivers.hpp:70
Definition comprised_command.hpp:58
Definition move_command.hpp:49
Definition move_unjam_comprised_command.hpp:52
bool agitatorDisconnectFault
Definition move_unjam_comprised_command.hpp:107
bool isFinished() const override
Definition move_unjam_comprised_command.cpp:117
void initialize() override
Definition move_unjam_comprised_command.cpp:75
bool unjamSequenceCommencing
Definition move_unjam_comprised_command.hpp:105
MoveCommand agitatorRotateCommand
Definition move_unjam_comprised_command.hpp:101
const char * getName() const override
Definition move_unjam_comprised_command.hpp:96
void execute() override
Definition move_unjam_comprised_command.cpp:81
UnjamCommand agitatorUnjamCommand
Definition move_unjam_comprised_command.hpp:103
void end(bool interrupted) override
Definition move_unjam_comprised_command.cpp:104
SetpointSubsystem * setpointSubsystem
Definition move_unjam_comprised_command.hpp:99
Definition setpoint_subsystem.hpp:48
Definition unjam_command.hpp:66
Definition ballistics.cpp:29
fang::Drivers & drivers
Definition robot_singleton.cpp:45