Ejemplo n.º 1
0
 public bool Equals(DroneData other)
 {
     return(State == other.State &&
            MotorValues.Equals(other.MotorValues) &&
            Gyro.Equals(other.Gyro) &&
            BatteryVoltage == other.BatteryVoltage);
 }
Ejemplo n.º 2
0
 private void Out(MotorValues outputValue)
 {
     _ulStatErrorInfo = _board.AOut(_channelNum, Range.UniPt05Volts, (short)outputValue);
     if (_ulStatErrorInfo.Value != ErrorInfo.ErrorCode.BadBoard)
     {
         _log.Warn("DAQ Input error: {0}", _ulStatErrorInfo.Message);
     }
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked {
         int hash = 13;
         hash = hash * 7 + State.GetHashCode();
         hash = hash * 7 + MotorValues.GetHashCode();
         hash = hash * 7 + Gyro.GetHashCode();
         hash = hash * 7 + (int)BatteryVoltage;
         return(hash);
     }
 }