Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
drivers.hpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020-2021 Fang-Robotics
3 *
4 * This file is part of fang-mcb.
5 *
6 * fang-mcb is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * fang-mcb is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with fang-mcb. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef DRIVERS_HPP_
21#define DRIVERS_HPP_
22#include "tap/drivers.hpp"
25
26#include <unordered_map>
27
28namespace fang
29{
30 class Drivers : public tap::Drivers
31 {
32 friend class DriversSingleton;
33
34 public:
35
37 //communication::CoolSerialUart coolSerialUart
38 //{
39 // *this,
40 // communication::CoolSerialUart::HandlerMap
41 // {
42 // {255, std::ref(jankyFloatHandler)}
43 // }
44 //};
45
47
48 //prevent copying
49 Drivers(const Drivers&) = delete;
51
52 public:
53 void initializeIo();
54 void update();
55 void updateIo();
61 void motorTimeoutUpdate();
62
66 void kill();
67 }; // class Drivers
68}
69
70#endif // DRIVERS_HPP_
Definition drivers_singleton.hpp:30
Definition drivers.hpp:31
void updateIo()
Definition drivers.cpp:31
void update()
Definition drivers.cpp:25
Drivers & operator=(Drivers &)=delete
void kill()
Definition drivers.cpp:47
Drivers(const Drivers &)=delete
Drivers()
Definition drivers.hpp:46
communication::JankyFloatHandler jankyFloatHandler
Definition drivers.hpp:36
void initializeIo()
Definition drivers.cpp:8
void motorTimeoutUpdate()
Definition drivers.cpp:39
Definition janky_float_handler.hpp:13
Definition drivers.hpp:70
Definition basic_target_handler.cpp:6
Definition ballistics.cpp:29