public bool Equals(DroneData other) { return(State == other.State && MotorValues.Equals(other.MotorValues) && Gyro.Equals(other.Gyro) && BatteryVoltage == other.BatteryVoltage); }
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); } }
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); } }