mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[glass] Split DataSource into type-specific variants (#7588)
This commit is contained in:
@@ -21,9 +21,7 @@ NTDigitalOutputModel::NTDigitalOutputModel(nt::NetworkTableInstance inst,
|
||||
m_name{inst.GetStringTopic(fmt::format("{}/.name", path)).Subscribe("")},
|
||||
m_controllable{inst.GetBooleanTopic(fmt::format("{}/.controllable", path))
|
||||
.Subscribe(false)},
|
||||
m_valueData{fmt::format("NT_DOut:{}", path)} {
|
||||
m_valueData.SetDigital(true);
|
||||
}
|
||||
m_valueData{fmt::format("NT_DOut:{}", path)} {}
|
||||
|
||||
void NTDigitalOutputModel::SetValue(bool val) {
|
||||
m_value.Set(val);
|
||||
|
||||
Reference in New Issue
Block a user