Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
scheduler_terminal_handler.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_SCHEDULER_TERMINAL_HANDLER_HPP_
25#define TAPROOT_SCHEDULER_TERMINAL_HANDLER_HPP_
26
28#include "tap/util_macros.hpp"
29
30namespace tap
31{
32class Drivers;
33namespace control
34{
36{
37public:
38 static constexpr char HEADER[] = "scheduler";
39
43
44 mockable void init();
45
47 char* inputLine,
48 modm::IOStream& outputStream,
49 bool streamingEnabled) override;
50
51 void terminalSerialStreamCallback(modm::IOStream& outputStream) override;
52
53private:
54 Drivers* drivers;
55
56 static constexpr char USAGE[] =
57 "Usage: scheduler <target>\n"
58 " Where \"<target>\" is one of:\n"
59 " - \"-H\": displays possible commands.\n"
60 " - \"allsubcmd\" prints all running subsystems and.\n";
61
62 void printInfo(modm::IOStream& outputStream);
63};
64
65} // namespace control
66
67} // namespace tap
68
69#endif // TAPROOT_SCHEDULER_TERMINAL_HANDLER_HPP_
Definition drivers.hpp:70
Definition scheduler_terminal_handler.hpp:36
mockable void init()
Definition scheduler_terminal_handler.cpp:43
DISALLOW_COPY_AND_ASSIGN(SchedulerTerminalHandler)
bool terminalSerialCallback(char *inputLine, modm::IOStream &outputStream, bool streamingEnabled) override
Definition scheduler_terminal_handler.cpp:50
static constexpr char HEADER[]
Definition scheduler_terminal_handler.hpp:38
mockable ~SchedulerTerminalHandler()=default
void terminalSerialStreamCallback(modm::IOStream &outputStream) override
Definition scheduler_terminal_handler.cpp:45
Definition ballistics.cpp:29
tap::Drivers Drivers
Definition drivers.hpp:11
#define mockable
Wrap class functions that are not already virtual in this function if you wish to mock them.
Definition util_macros.hpp:38