-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHardware.h
More file actions
58 lines (47 loc) · 1.29 KB
/
Hardware.h
File metadata and controls
58 lines (47 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once
#include <frc/motorcontrol/MotorControllerGroup.h>
#include "hardware/Actuators.h"
#include "hardware/Sensors.h"
#include "Utils.h"
#include "io/SwerveDriveIO.h"
#include "io/ArmIO.h"
// Subsystem I/O
typedef struct hardware_t {
// Actuators
std::unique_ptr<Actuators> actuators;
// Sensors
std::unique_ptr<Sensors> sensors;
} Hardware;
// Subsystem hardware setup functions
/**
* @brief Link the Swerve drive to the hardware interfaces.
*
* @param interface
* @return true
* @return false
*/
bool SetupSwerveDriveInterface(
std::unique_ptr<Hardware> &hardware,
std::shared_ptr<SwerveDriveHardwareInterface> &interface);
/**
* @brief Link the Intake to the hardware interfaces.
*
* @param interface
* @return true
* @return false
*/
bool SetupArmInterface(std::unique_ptr<Hardware> &hardware,
std::shared_ptr<ArmHardwareInterface> &interface);
/**
* @brief Link the Shooter to the hardware interfaces.
*
* @param interface
* @return true
* @return false
*/
//bool SetupClawInterface(
// std::unique_ptr<HardwareInterface> &hardware,
// std::shared_ptr<ClawHardware> *interface);
// bool SetupVisionTrackingInterface(
// std::unique_ptr<HardwareInterface> &hardware,
// std::shared_ptr<VisionTrackingHardware> *interface);