mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Added C++ support for solenoids.
Change-Id: If82c05196d2f4c09d148da64f6bdb0564fe5b4cc
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
void Victor::InitVictor(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("Victor", slot, channel, this);
|
||||
}
|
||||
@@ -85,7 +85,7 @@ float Victor::Get()
|
||||
*/
|
||||
void Victor::Disable()
|
||||
{
|
||||
impl->Disable();
|
||||
impl->Set(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user