Ejemplo n.º 1
0
 public static void PingAll()
 {
     HALAccelerometer.Ping();
     HALAnalogAccumulator.Ping();
     HALAnalogGyro.Ping();
     HALAnalogInput.Ping();
     HALAnalogOutput.Ping();
     HALAnalogTrigger.Ping();
     HALCompressor.Ping();
     HALConstants.Ping();
     HALDIO.Ping();
     HALDriverStation.Ping();
     HALEncoder.Ping();
     HALI2C.Ping();
     HALInterrupts.Ping();
     HALNotifier.Ping();
     HALPDP.Ping();
     HALPorts.Ping();
     HALPower.Ping();
     HALPWM.Ping();
     HALRelay.Ping();
     HALSerialPort.Ping();
     HALSolenoid.Ping();
     HALSPI.Ping();
     HALThreads.Ping();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Reads the battery voltage
        /// </summary>
        /// <returns>The battery voltage in Volts.</returns>
        public double GetBatteryVoltage()
        {
            int    status  = 0;
            double voltage = HALPower.HAL_GetVinVoltage(ref status);

            CheckStatus(status);
            return(voltage);
        }