Esempio n. 1
0
        private void btnPwmForward_Click2(object sender, RoutedEventArgs e)
        {
            if (gpioController == null || pwmControllers == null)
            {
                return;
            }
            var desiredFrequency2 = double.Parse(tbPWMFrequency2.Text);
            var desiredDutyCycle2 = double.Parse(tbPWMDutyCycle2.Text);

            RightMotor.Forward(desiredFrequency2, desiredDutyCycle2);
        }
Esempio n. 2
0
 private void turn_forward()
 {
     if (gpioController == null || pwmControllers == null)
     {
         return;
     }
     LeftMotor.Forward(1000, 0.3);
     RightMotor.Forward(1000, 0.3);
 }