GnssMeasurementBuilder
public
final
class
GnssMeasurementBuilder
extends Object
java.lang.Object | |
↳ | com.google.android.things.userdriver.location.GnssMeasurementBuilder |
Builder for GnssMeasurement, which represents measurement data for an individual satellite.
Summary
Public constructors | |
---|---|
GnssMeasurementBuilder()
|
Public methods | |
---|---|
GnssMeasurement
|
build()
|
GnssMeasurementBuilder
|
setAccumulatedDeltaRangeMeters(double input)
Sets the accumulated delta range since the last channel reset, in meters. |
GnssMeasurementBuilder
|
setAccumulatedDeltaRangeState(int input)
Sets 'Accumulated Delta Range' state. |
GnssMeasurementBuilder
|
setAccumulatedDeltaRangeUncertaintyMeters(double input)
Sets the accumulated delta range's 1-sigma uncertainty in meters. |
GnssMeasurementBuilder
|
setAutomaticGainControlLevelInDb(double input)
Sets the automatic gain control level in dB. |
GnssMeasurementBuilder
|
setCarrierFrequencyHz(float input)
Sets the carrier frequency of the tracked signal. |
GnssMeasurementBuilder
|
setCn0DbHz(double input)
Sets the carrier-to-noise density in dB-Hz. |
GnssMeasurementBuilder
|
setConstellationType(int input)
Sets the constellation type. |
GnssMeasurementBuilder
|
setMultipathIndicator(int input)
Sets the 'multipath' state of the event. |
GnssMeasurementBuilder
|
setPseudorangeRateMetersPerSecond(double input)
Sets the pseudorange rate at the timestamp in m/s. |
GnssMeasurementBuilder
|
setPseudorangeRateUncertaintyMetersPerSecond(double input)
Sets the pseudorange's 1-sigma rate uncertainty in m/s. |
GnssMeasurementBuilder
|
setReceivedSvTimeNanos(long input)
Sets the received GNSS satellite time, at the measurement time, in nanoseconds. |
GnssMeasurementBuilder
|
setReceivedSvTimeUncertaintyNanos(long input)
Sets the 1-sigma error estimate for the received GNSS time, in nanoseconds. |
GnssMeasurementBuilder
|
setSnrInDb(double input)
Sets the (post-correlation & integration) Signal-to-Noise ratio (SNR) in dB. |
GnssMeasurementBuilder
|
setState(int input)
Sets per-satellite sync state. |
GnssMeasurementBuilder
|
setSvid(int input)
Sets the satellite ID. |
GnssMeasurementBuilder
|
setTimeOffsetNanos(double input)
Sets the time offset at which the measurement was taken in nanoseconds. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
GnssMeasurementBuilder
GnssMeasurementBuilder ()
Public methods
setAccumulatedDeltaRangeMeters
GnssMeasurementBuilder setAccumulatedDeltaRangeMeters (double input)
Sets the accumulated delta range since the last channel reset, in meters.
See GnssMeasurement.getAccumulatedDeltaRangeMeters() to understand what is expected.
Parameters | |
---|---|
input |
double : the accumulated delta range for this satellite, in meters
|
Returns | |
---|---|
GnssMeasurementBuilder |
setAccumulatedDeltaRangeState
GnssMeasurementBuilder setAccumulatedDeltaRangeState (int input)
Sets 'Accumulated Delta Range' state.
See GnssMeasurement.getAccumulatedDeltaRangeState() to understand what is expected.
Parameters | |
---|---|
input |
int : the accumulated delta range state for this satellite
|
Returns | |
---|---|
GnssMeasurementBuilder |
setAccumulatedDeltaRangeUncertaintyMeters
GnssMeasurementBuilder setAccumulatedDeltaRangeUncertaintyMeters (double input)
Sets the accumulated delta range's 1-sigma uncertainty in meters.
See GnssMeasurement.getAccumulatedDeltaRangeUncertaintyMeters()) to understand what is expected.
Parameters | |
---|---|
input |
double : the accumulated delta range's 1-sigma uncertainty for this satellite, in meters
|
Returns | |
---|---|
GnssMeasurementBuilder |
setAutomaticGainControlLevelInDb
GnssMeasurementBuilder setAutomaticGainControlLevelInDb (double input)
Sets the automatic gain control level in dB.
See GnssMeasurement.getAutomaticGainControlLevelDb()) to understand what is expected.
Parameters | |
---|---|
input |
double : the automatic gain control for this satellite, in dB
|
Returns | |
---|---|
GnssMeasurementBuilder |
setCarrierFrequencyHz
GnssMeasurementBuilder setCarrierFrequencyHz (float input)
Sets the carrier frequency of the tracked signal.
See GnssMeasurement.getCarrierFrequencyHz()) to understand what is expected.
Parameters | |
---|---|
input |
float : the carrier frequency for this satellite, in Hz
|
Returns | |
---|---|
GnssMeasurementBuilder |
setCn0DbHz
GnssMeasurementBuilder setCn0DbHz (double input)
Sets the carrier-to-noise density in dB-Hz.
Typical range: 10-50 db-Hz.
Parameters | |
---|---|
input |
double : the measured C/N0 for the signal from this satellite at the antenna input
|
Returns | |
---|---|
GnssMeasurementBuilder |
setConstellationType
GnssMeasurementBuilder setConstellationType (int input)
Sets the constellation type.
The value must be one of the constants with CONSTELLATION_
prefix in
GnssStatus.
Parameters | |
---|---|
input |
int : the constellation type of this satellite
|
Returns | |
---|---|
GnssMeasurementBuilder |
setMultipathIndicator
GnssMeasurementBuilder setMultipathIndicator (int input)
Sets the 'multipath' state of the event.
Parameters | |
---|---|
input |
int : the multipath state for this satellite
|
Returns | |
---|---|
GnssMeasurementBuilder |
setPseudorangeRateMetersPerSecond
GnssMeasurementBuilder setPseudorangeRateMetersPerSecond (double input)
Sets the pseudorange rate at the timestamp in m/s.
See GnssMeasurement.getPseudorangeRateMetersPerSecond() to understand what is expected.
Parameters | |
---|---|
input |
double : the pseudorange rate for this satellite, in meters per second
|
Returns | |
---|---|
GnssMeasurementBuilder |
setPseudorangeRateUncertaintyMetersPerSecond
GnssMeasurementBuilder setPseudorangeRateUncertaintyMetersPerSecond (double input)
Sets the pseudorange's 1-sigma rate uncertainty in m/s.
Represent the uncertainty as an absolute (single sided) value.
Parameters | |
---|---|
input |
double : the pseudorange's 1-sigma rate of uncertainty for this satellite in meters per second
|
Returns | |
---|---|
GnssMeasurementBuilder |
setReceivedSvTimeNanos
GnssMeasurementBuilder setReceivedSvTimeNanos (long input)
Sets the received GNSS satellite time, at the measurement time, in nanoseconds.
See GnssMeasurement.getReceivedSvTimeNanos() to understand what is expected.
Parameters | |
---|---|
input |
long : the received GNSS time for this satellite, in nanoseconds
|
Returns | |
---|---|
GnssMeasurementBuilder |
setReceivedSvTimeUncertaintyNanos
GnssMeasurementBuilder setReceivedSvTimeUncertaintyNanos (long input)
Sets the 1-sigma error estimate for the received GNSS time, in nanoseconds.
Parameters | |
---|---|
input |
long : the 1-sigma error estimate for the received GNSS time for this satellite, in
nanoseconds
|
Returns | |
---|---|
GnssMeasurementBuilder |
setSnrInDb
GnssMeasurementBuilder setSnrInDb (double input)
Sets the (post-correlation & integration) Signal-to-Noise ratio (SNR) in dB.
Parameters | |
---|---|
input |
double : the SNR for this satellite, in dB
|
Returns | |
---|---|
GnssMeasurementBuilder |
setState
GnssMeasurementBuilder setState (int input)
Sets per-satellite sync state.
See GnssMeasurement.getState() to understand what is expected.
Parameters | |
---|---|
input |
int : the sync state of this satellite
|
Returns | |
---|---|
GnssMeasurementBuilder |
setSvid
GnssMeasurementBuilder setSvid (int input)
Sets the satellite ID.
See GnssMeasurement.getSvid() to understand what is expected.
Parameters | |
---|---|
input |
int : this satellite's ID
|
Returns | |
---|---|
GnssMeasurementBuilder |
setTimeOffsetNanos
GnssMeasurementBuilder setTimeOffsetNanos (double input)
Sets the time offset at which the measurement was taken in nanoseconds.
See GnssMeasurement.getTimeOffsetNanos() to understand what is expected.
Parameters | |
---|---|
input |
double : the time offset of the measurement for this satellite
|
Returns | |
---|---|
GnssMeasurementBuilder |