001package edu.wpi.first.wpilibj.communication;
002
003/**
004 * A wrapper for the HALControlWord bitfield
005 */
006public class HALControlWord {
007        private boolean m_enabled;
008        private boolean m_autonomous;
009        private boolean m_test;
010        private boolean m_eStop;
011        private boolean m_fmsAttached;
012        private boolean m_dsAttached;
013
014        protected HALControlWord(boolean enabled, boolean autonomous, boolean test,
015                        boolean eStop, boolean fmsAttached, boolean dsAttached) {
016                m_enabled = enabled;
017                m_autonomous = autonomous;
018                m_test = test;
019                m_eStop = eStop;
020                m_fmsAttached = fmsAttached;
021                m_dsAttached = dsAttached;
022        }
023
024        public boolean getEnabled() {
025                return m_enabled;
026        }
027
028        public boolean getAutonomous() {
029                return m_autonomous;
030        }
031
032        public boolean getTest() {
033                return m_test;
034        }
035
036        public boolean getEStop() {
037                return m_eStop;
038        }
039
040        public boolean getFMSAttached() {
041                return m_fmsAttached;
042        }
043
044        public boolean getDSAttached() {
045                return m_dsAttached;
046        }
047
048
049}