public void SendDriveCommand(long xJoystickValue, long yJoystickValue, long zJoystickValue, Component parentComponent)
        {
            SetVelocityCommand setVelocityCommand = new SetVelocityCommand();
            setVelocityCommand.SetSource(badgerControlSubsystem.LocalAddress);
            setVelocityCommand.SetDestination(parentComponent.JausAddress);

            setVelocityCommand.VelocityX = xJoystickValue;
            setVelocityCommand.VelocityY = yJoystickValue;
            setVelocityCommand.VelocityZ = zJoystickValue;

            Transport.SendMessage(setVelocityCommand);
        }
Пример #2
0
        public void SendDriveCommand(long xJoystickValue, long yJoystickValue, long zJoystickValue, Component parentComponent)
        {
            SetVelocityCommand setVelocityCommand = new SetVelocityCommand();

            setVelocityCommand.SetSource(badgerControlSubsystem.LocalAddress);
            setVelocityCommand.SetDestination(parentComponent.JausAddress);

            setVelocityCommand.VelocityX = xJoystickValue;
            setVelocityCommand.VelocityY = yJoystickValue;
            setVelocityCommand.VelocityZ = zJoystickValue;

            Transport.SendMessage(setVelocityCommand);
        }