[commands] Add setRumble and isConnected to CommandGenericHID (#6768)

This commit is contained in:
Jade
2024-07-06 08:47:31 +08:00
committed by GitHub
parent b4645a30f6
commit f0f4bac680
3 changed files with 46 additions and 0 deletions

View File

@@ -74,3 +74,12 @@ Trigger CommandGenericHID::AxisGreaterThan(int axis, double threshold,
return m_hid.GetRawAxis(axis) > threshold;
});
}
void CommandGenericHID::SetRumble(frc::GenericHID::RumbleType type,
double value) {
m_hid.SetRumble(type, value);
}
bool CommandGenericHID::IsConnected() const {
return m_hid.IsConnected();
}