// Set chute rotation private void btnRotation_Click(object sender, EventArgs e) { string tx = RXWINDOW.Text; I_comPort.Write("sd_" + tx); Reset(); }
private void goForward() { string tx = txtVel.Text; if (tx == string.Empty) { tx = "100"; } I_comPort.Write("mf_" + tx); }
private void goLeft() { string tx = txtVel.Text; if (tx == string.Empty) { tx = "100"; } I_comPort.Write("ml_" + tx); }
private void RunSnowBlower() { string tx = RXWINDOW.Text; if (tx == string.Empty) { tx = "100"; } I_comPort.Write("sr_" + tx); Reset(); }
private void StopSnowBlower() { I_comPort.Write("ss_"); Reset(); }
private void btnStopBrush_Click(object sender, EventArgs e) { I_comPort.Write("bs_"); Reset(); }
// Reset snowblower private void btnReset_Click(object sender, EventArgs e) { Reset(); I_comPort.Write("sR_"); }
private void FullStop() { I_comPort.Write("ms_"); Reset(); }