Beispiel #1
0
 public void SendValues()
 {
     _jcn.SendCommand(new JcRobotNetworking.Command(_motorTime, BitConverter.GetBytes(_time)));
     for (byte i = 0; i < _percents.Length; i++)
     {
         _jcn.SendCommand(new JcRobotNetworking.Command(i, BitConverter.GetBytes(_percents[i])));
     }
 }
Beispiel #2
0
 public void Loop()
 {
     jcnet.SendCommand(new JcRobotNetworking.Command(1, BitConverter.GetBytes(-js.GetThumbstickLeft().Y)));
     jcnet.SendCommand(new JcRobotNetworking.Command(2, BitConverter.GetBytes(js.GetThumbstickRight().X)));
 }