private void btnPwmBackward_Click2(object sender, RoutedEventArgs e) { if (gpioController == null || pwmControllers == null) { return; } var desiredFrequency2 = double.Parse(tbPWMFrequency2.Text); var desiredDutyCycle2 = double.Parse(tbPWMDutyCycle2.Text); RightMotor.Backward(desiredFrequency2, desiredDutyCycle2); }
private void turn_back() { if (gpioController == null || pwmControllers == null) { return; } LeftMotor.Backward(1000, 0.4); RightMotor.Backward(1000, 0.4); }