public bool configureMCA(int trigger_threshold, int trigger_inibit, int pre_int_time, float int_time, int int_gain, float pileup_inib, float pileup_penality, float baseline_inib, BaselineLength baseline_len, RunMode target_run, int target_value) { string JSON_COMMAND = "{\"command\" : \"SET_CHANNEL_CONFIG\",\"mca_config\" :[{\"id\" : 0," + "\"trigger_thrs\" : " + trigger_threshold.ToString().Replace(",", ".") + "," + "\"trigger_inib\" : " + trigger_inibit.ToString().Replace(",", ".") + "," + "\"int_pre\" : " + pre_int_time.ToString().Replace(",", ".") + "," + "\"int_val\" : " + int_time.ToString().Replace(",", ".") + "," + "\"int_gain\" : " + int_gain.ToString().Replace(",", ".") + "," + "\"pileup_inib\" : " + pileup_inib.ToString().Replace(",", ".") + "," + "\"pileup_pen\" : " + pileup_penality.ToString().Replace(",", ".") + "," + "\"baseline_inib\" : " + baseline_inib.ToString().Replace(",", ".") + "," + "\"baseline_len\" : " + (int)baseline_len + "," + "\"taget_run\" : " + (int)target_run + "," + "\"taget_value\" : " + target_value.ToString().Replace(",", ".") + "," + "\"reset_on_apply\" : true}],\"store_flash\" : false}}"; return(HttpPostJson(ispector_URL + "/set_config.cgi", JSON_COMMAND)); }
public override int GetHashCode() { int hash = 1; if (header_ != null) { hash ^= Header.GetHashCode(); } if (MeasurementTime != 0D) { hash ^= MeasurementTime.GetHashCode(); } if (SolutionStatus != 0) { hash ^= SolutionStatus.GetHashCode(); } if (PositionType != 0) { hash ^= PositionType.GetHashCode(); } if (BaselineLength != 0F) { hash ^= BaselineLength.GetHashCode(); } if (Heading_ != 0F) { hash ^= Heading_.GetHashCode(); } if (Pitch != 0F) { hash ^= Pitch.GetHashCode(); } if (Reserved != 0F) { hash ^= Reserved.GetHashCode(); } if (HeadingStdDev != 0F) { hash ^= HeadingStdDev.GetHashCode(); } if (PitchStdDev != 0F) { hash ^= PitchStdDev.GetHashCode(); } if (StationId.Length != 0) { hash ^= StationId.GetHashCode(); } if (SatelliteTrackedNumber != 0) { hash ^= SatelliteTrackedNumber.GetHashCode(); } if (SatelliteSoulutionNumber != 0) { hash ^= SatelliteSoulutionNumber.GetHashCode(); } if (SatelliteNumberObs != 0) { hash ^= SatelliteNumberObs.GetHashCode(); } if (SatelliteNumberMulti != 0) { hash ^= SatelliteNumberMulti.GetHashCode(); } if (SolutionSource != 0) { hash ^= SolutionSource.GetHashCode(); } if (ExtendedSolutionStatus != 0) { hash ^= ExtendedSolutionStatus.GetHashCode(); } if (GalileoBeidouSigMask != 0) { hash ^= GalileoBeidouSigMask.GetHashCode(); } if (GpsGlonassSigMask != 0) { hash ^= GpsGlonassSigMask.GetHashCode(); } return(hash); }