Exemplo n.º 1
0
        /// <inheritdoc/>
        public void ValueChanged(ITable source, string key, NetworkTables.Value value, NotifyFlags flags)
        {
            string valString = value.GetString();

            if (valString.Equals("Reverse"))
            {
                Set(Value.Reverse);
            }
            else if (valString.Equals("Forward"))
            {
                Set(Value.Forward);
            }
            else
            {
                Set(Value.Off);
            }
        }