//helpers public string ServoMotor_Commands_To_String(ServoMotor_Commands x) { switch (x) { case (ServoMotor_Commands.rm): return("rm"); case (ServoMotor_Commands._float): return("float"); default: return("INVALID"); } }
//hands on for more advanced users public void SetCommand(ServoMotor_Commands x) { WriteVar("command", ServoMotor_Commands_To_String(x)); }