Exemple #1
0
 private void sendWaveButton_Click(object sender, RoutedEventArgs e)
 {
     if (Data.ctr == null)
         return;
     Sequence s1 = Sequence.Pulse(40, 0, 15, 5, 0);
     Sequence s2 = Sequence.Pulse(40, 0, 15, -9, 0);
     Sequence s = new Sequence();
     s.Append(s1);
     s.Append(s2);
     s.Append(s1);
     s.Append(s2);
     s.Append(s1);
     s.Append(s2);
     InputSequence fis = new InputSequence(s, new Sequence(s.Length));
     Data.ctr.StartFixedInputSequence(ref fis);
 }
Exemple #2
0
 /// <summary>
 /// Starts a fixed input sequence
 /// </summary>
 /// <param name="FixedInputSequence">The sequence to be played back to the car.</param>
 public void StartFixedInputSequence(ref InputSequence FixedInputSequence)
 {
     _fixedInputSequence = FixedInputSequence;
     _fixedInputSequenceExecuting = true;
 }
Exemple #3
0
 private void sendPulseButton_Click(object sender, RoutedEventArgs e)
 {
     if (Data.ctr == null)
         return;
     InputSequence fis = new InputSequence(Sequence.Pulse(100, 0, 20, -10, 0), new Sequence(100));
     Data.ctr.StartFixedInputSequence(ref fis);
 }
Exemple #4
0
 public void StartFixedInputSequence(ref InputSequence fis)
 {
     _fixedInputSequence = fis;
     _fixedInputSequenceExecuting = true;
 }