public string SendValue(string command, string value, tMotorType moteur, bool abs) { string m = (moteur == tMotorType.DC)?"A=":"B="; if ((command == "PR") && (abs)) // seulement si PR --> PA { command = command.Substring(0, 1) + "A"; } command += m + value; return(DMC1425.command(command, "\r", ":", true)); }
public Motor(tMotorType type) { motorType = type; }