Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
sharp_ir_GP2Y0A41.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_SHARP_IR_GP2Y0A41_HPP_
25#define TAPROOT_SHARP_IR_GP2Y0A41_HPP_
26
28
29namespace tap
30{
31class Drivers;
32namespace sensors
33{
40{
41public:
48
52 void init() override {}
53
54private:
56 static constexpr float SHARP_IR_MIN = 4.0f;
58 static constexpr float SHARP_IR_MAX = 30.0f;
59
60 // Subject to change.
62 static constexpr float SHARP_IR_M = 0.072f;
64 static constexpr float SHARP_IR_B = -0.008f;
66 static constexpr float SHARP_IR_OFFSET = -0.42f;
67}; // class SharpIrGP2Y0A41
68
69} // namespace sensors
70
71} // namespace tap
72
73#endif // TAPROOT_SHARP_IR_GP2Y0A41_HPP_
Definition drivers.hpp:70
Pin
Definition analog.hpp:52
Definition analog_distance_sensor.hpp:49
Definition sharp_ir_GP2Y0A41.hpp:40
void init() override
Definition sharp_ir_GP2Y0A41.hpp:52
Definition ballistics.cpp:29
tap::Drivers Drivers
Definition drivers.hpp:11
fang::Drivers & drivers
Definition robot_singleton.cpp:45