mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Switches relays to handles (#119)
This commit is contained in:
committed by
Peter Johnson
parent
e8e052712e
commit
9b2af0d090
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "HAL/Handles.h"
|
||||
#include "LiveWindow/LiveWindowSendable.h"
|
||||
#include "MotorSafety.h"
|
||||
#include "SensorBase.h"
|
||||
@@ -66,5 +67,8 @@ class Relay : public MotorSafety,
|
||||
uint32_t m_channel;
|
||||
Direction m_direction;
|
||||
|
||||
HalRelayHandle m_forwardHandle = HAL_INVALID_HANDLE;
|
||||
HalRelayHandle m_reverseHandle = HAL_INVALID_HANDLE;
|
||||
|
||||
std::unique_ptr<MotorSafetyHelper> m_safetyHelper;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user