mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Added C++ support for solenoids.
Change-Id: If82c05196d2f4c09d148da64f6bdb0564fe5b4cc
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
void Talon::InitTalon(int slot, int channel) {
|
||||
char buffer[50];
|
||||
int n = sprintf(buffer, "pwm/%d/%d", slot, channel);
|
||||
impl = new SimSpeedController(buffer);
|
||||
impl = new SimContinuousOutput(buffer);
|
||||
|
||||
// TODO: LiveWindow::GetInstance()->AddActuator("Talon", slot, channel, this);
|
||||
}
|
||||
@@ -84,7 +84,7 @@ float Talon::Get()
|
||||
*/
|
||||
void Talon::Disable()
|
||||
{
|
||||
impl->Disable();
|
||||
impl->Set(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user