// Start is called before the first frame update
 void Start()
 {
     if (ws != null)
     {
         ws.RegisterPort("dPWM", $"{PortNumber}", ProcessData);
     }
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     if (ws != null)
     {
         ws.RegisterPort("Relay", $"{RelayNumber}", ProcessData);
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     if (ws != null)
     {
         ws.RegisterPort("Solenoid", $"{PCMNumber},{ChannelNumber}", ProcessData);
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     if (ws != null)
     {
         ws.RegisterPort("RoboRIO", "", ProcessData);
     }
 }
示例#5
0
 // Start is called before the first frame update
 void Start()
 {
     if (ws != null)
     {
         ws.RegisterPort("Encoder", $"{EncoderNumber}", ProcessData);
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     if (ws != null)
     {
         ws.RegisterPort("Joystick", $"{JoystickNumber}", ProcessData);
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     if (ws != null)
     {
         ws.RegisterPort("DriverStation", "", ProcessData);
     }
 }
    // Start is called before the first frame update
    void Start()
    {
        deviceName = $"ADXRS450[{PortNumber}]";

        if (WebSocketInterface != null)
        {
            WebSocketInterface.RegisterPort(DeviceType, deviceName, ProcessMain);
        }
        else
        {
            string name = this.name;
            Debug.Log($"WebSocket interface is null in TalonSRXInterface in {name}");
        }
        this.lastAngle = this.transform.rotation.eulerAngles.y;
    }
示例#9
0
    // Start is called before the first frame update
    void Start()
    {
        deviceName = $"navX-Sensor[{PortNumber}]";

        // wpk - test to see if this is needed or can be removed.
        if (WebSocketInterface != null)
        {
            WebSocketInterface.RegisterPort(DeviceType, deviceName, ProcessMain);
        }
        else
        {
            string name = this.name;
            Debug.Log($"WebSocket interface is null in {this.GetType().Name} in game object {name}");
        }
        lastYaw      = this.transform.rotation.eulerAngles.y;
        lastVelocity = Body.velocity;
    }
示例#10
0
 // Start is called before the first frame update
 void Start()
 {
     if (WebSocketInterface != null)
     {
         WebSocketInterface.RegisterPort("CANMotor", $"Talon SRX[{Id}]", ProcessMain);
         // WebSocketInterface.RegisterPort("CANDutyCycle", $"Talon SRX[{Id}]/Pulse Width Input", ProcessDutyCycleInput);
         // WebSocketInterface.RegisterPort("CANAIn", $"Talon SRX[{Id}]/Analog In", ProcessAnalogIn);
         // WebSocketInterface.RegisterPort("CANEncoder", $"Talon SRX[{Id}]/Quad Encoder", ProcessEncoder);
         // WebSocketInterface.RegisterPort("CANDIO", $"Talon SRX[{Id}]/Rev Limit", ProcessRevLimit);
         // WebSocketInterface.RegisterPort("CANDIO", $"Talon SRX[{Id}]/Fwd Limit", ProcessFwdLimit);
     }
     else
     {
         string name = this.name;
         Debug.Log($"WebSocket interface is null in TalonSRXInterface in {name}");
     }
 }