mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Make DigitalOutput a DigitalSource (#2054)
It's perfectly safe to use as a DigitalSource, and can enable some cool tricks.
This commit is contained in:
committed by
Peter Johnson
parent
5ccad2e8a4
commit
ff39a96cee
@@ -70,6 +70,14 @@ bool DigitalOutput::Get() const {
|
||||
return val;
|
||||
}
|
||||
|
||||
HAL_Handle DigitalOutput::GetPortHandleForRouting() const { return m_handle; }
|
||||
|
||||
AnalogTriggerType DigitalOutput::GetAnalogTriggerTypeForRouting() const {
|
||||
return (AnalogTriggerType)0;
|
||||
}
|
||||
|
||||
bool DigitalOutput::IsAnalogTrigger() const { return false; }
|
||||
|
||||
int DigitalOutput::GetChannel() const { return m_channel; }
|
||||
|
||||
void DigitalOutput::Pulse(double length) {
|
||||
|
||||
Reference in New Issue
Block a user