Added C++ support for solenoids.

Change-Id: If82c05196d2f4c09d148da64f6bdb0564fe5b4cc
This commit is contained in:
Alex Henning
2014-06-23 11:51:34 -07:00
parent 31ab66ba20
commit 0d62d0985a
16 changed files with 429 additions and 126 deletions

View File

@@ -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);
}
/**