Documentation ¶
Overview ¶
Package aqpb ...
Index ¶
- Variables
- type Sample
- func (*Sample) Descriptor() ([]byte, []int)deprecated
- func (x *Sample) GetAfe3TempRaw() uint32
- func (x *Sample) GetAlt() float32
- func (x *Sample) GetBoardRelHumidity() float32
- func (x *Sample) GetBoardTemp() float32
- func (x *Sample) GetFirmwareVersion() uint64
- func (x *Sample) GetGpsTimestamp() float32
- func (x *Sample) GetLat() float32
- func (x *Sample) GetLon() float32
- func (x *Sample) GetOpcBin_0() uint32
- func (x *Sample) GetOpcBin_1() uint32
- func (x *Sample) GetOpcBin_10() uint32
- func (x *Sample) GetOpcBin_11() uint32
- func (x *Sample) GetOpcBin_12() uint32
- func (x *Sample) GetOpcBin_13() uint32
- func (x *Sample) GetOpcBin_14() uint32
- func (x *Sample) GetOpcBin_15() uint32
- func (x *Sample) GetOpcBin_16() uint32
- func (x *Sample) GetOpcBin_17() uint32
- func (x *Sample) GetOpcBin_18() uint32
- func (x *Sample) GetOpcBin_19() uint32
- func (x *Sample) GetOpcBin_2() uint32
- func (x *Sample) GetOpcBin_20() uint32
- func (x *Sample) GetOpcBin_21() uint32
- func (x *Sample) GetOpcBin_22() uint32
- func (x *Sample) GetOpcBin_23() uint32
- func (x *Sample) GetOpcBin_3() uint32
- func (x *Sample) GetOpcBin_4() uint32
- func (x *Sample) GetOpcBin_5() uint32
- func (x *Sample) GetOpcBin_6() uint32
- func (x *Sample) GetOpcBin_7() uint32
- func (x *Sample) GetOpcBin_8() uint32
- func (x *Sample) GetOpcBin_9() uint32
- func (x *Sample) GetOpcFanRevcount() uint32
- func (x *Sample) GetOpcHum() uint32
- func (x *Sample) GetOpcLaserStatus() uint32
- func (x *Sample) GetOpcPmA() uint32
- func (x *Sample) GetOpcPmB() uint32
- func (x *Sample) GetOpcPmC() uint32
- func (x *Sample) GetOpcSampleFlowRate() uint32
- func (x *Sample) GetOpcSamplePeriod() uint32
- func (x *Sample) GetOpcSampleValid() uint32
- func (x *Sample) GetOpcTemp() uint32
- func (x *Sample) GetPm1() float32
- func (x *Sample) GetPm10() float32
- func (x *Sample) GetPm25() float32
- func (x *Sample) GetSensor_1Aux() uint32
- func (x *Sample) GetSensor_1Work() uint32
- func (x *Sample) GetSensor_2Aux() uint32
- func (x *Sample) GetSensor_2Work() uint32
- func (x *Sample) GetSensor_3Aux() uint32
- func (x *Sample) GetSensor_3Work() uint32
- func (x *Sample) GetStatus() uint64
- func (x *Sample) GetSysid() uint64
- func (x *Sample) GetUptime() int64
- func (*Sample) ProtoMessage()
- func (x *Sample) ProtoReflect() protoreflect.Message
- func (x *Sample) Reset()
- func (x *Sample) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_aq_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Sample ¶
type Sample struct { // ---------- Board fields ---------- Sysid uint64 `protobuf:"varint,1,opt,name=sysid,proto3" json:"sysid,omitempty"` // Hardware id FirmwareVersion uint64 `protobuf:"varint,2,opt,name=firmware_version,json=firmwareVersion,proto3" json:"firmware_version,omitempty"` // Versioning info Uptime int64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` // Uptime of the system - number of milliseconds since reboot. BoardTemp float32 `protobuf:"fixed32,4,opt,name=board_temp,json=boardTemp,proto3" json:"board_temp,omitempty"` // Board temperature in celsius BoardRelHumidity float32 `protobuf:"fixed32,5,opt,name=board_rel_humidity,json=boardRelHumidity,proto3" json:"board_rel_humidity,omitempty"` // Board relative humidity in percent Status uint64 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // Generic status bit field (for future use) // ---------- GPS fields ---------- // If the GPS cannot get a fix these fields will all be zeroed. GpsTimestamp float32 `protobuf:"fixed32,7,opt,name=gps_timestamp,json=gpsTimestamp,proto3" json:"gps_timestamp,omitempty"` // Timestamp from the GPS Lat float32 `protobuf:"fixed32,8,opt,name=lat,proto3" json:"lat,omitempty"` // Latitude in radians Lon float32 `protobuf:"fixed32,9,opt,name=lon,proto3" json:"lon,omitempty"` // Longitude in radians Alt float32 `protobuf:"fixed32,10,opt,name=alt,proto3" json:"alt,omitempty"` // Altitude in meters // ---------- AFE3 fields ---------- // In order to obtain the measurement in mV the sensor readinggs // below have to be multiplied by 0.000000596046. On the // calibration datasheet for each sensor there will be an offset // value for each sensor (given in mV). // Sensor_1Work uint32 `protobuf:"varint,20,opt,name=sensor_1_work,json=sensor1Work,proto3" json:"sensor_1_work,omitempty"` // OP1 ADC reading - NO2 working electrode Sensor_1Aux uint32 `protobuf:"varint,21,opt,name=sensor_1_aux,json=sensor1Aux,proto3" json:"sensor_1_aux,omitempty"` // OP2 ADC reading - NO2 auxillary electrode Sensor_2Work uint32 `protobuf:"varint,22,opt,name=sensor_2_work,json=sensor2Work,proto3" json:"sensor_2_work,omitempty"` // OP3 ADC reading - O3+NO2 working electrode Sensor_2Aux uint32 `protobuf:"varint,23,opt,name=sensor_2_aux,json=sensor2Aux,proto3" json:"sensor_2_aux,omitempty"` // OP4 ADC reading - O3+NO2 auxillary electrode Sensor_3Work uint32 `protobuf:"varint,24,opt,name=sensor_3_work,json=sensor3Work,proto3" json:"sensor_3_work,omitempty"` // OP5 ADC reading - NO working electrode Sensor_3Aux uint32 `protobuf:"varint,25,opt,name=sensor_3_aux,json=sensor3Aux,proto3" json:"sensor_3_aux,omitempty"` // OP6 ADC reading - NO aux electrode Afe3TempRaw uint32 `protobuf:"varint,26,opt,name=afe3_temp_raw,json=afe3TempRaw,proto3" json:"afe3_temp_raw,omitempty"` // Pt1000 ADC reading - AFE-3 ambient temperature OpcPmA uint32 `protobuf:"varint,30,opt,name=opc_pm_a,json=opcPmA,proto3" json:"opc_pm_a,omitempty"` // OPC PM A (default PM1) OpcPmB uint32 `protobuf:"varint,31,opt,name=opc_pm_b,json=opcPmB,proto3" json:"opc_pm_b,omitempty"` // OPC PM B (default PM2.5) OpcPmC uint32 `protobuf:"varint,32,opt,name=opc_pm_c,json=opcPmC,proto3" json:"opc_pm_c,omitempty"` // OPC PM C (default PM10) OpcSamplePeriod uint32 `protobuf:"varint,33,opt,name=opc_sample_period,json=opcSamplePeriod,proto3" json:"opc_sample_period,omitempty"` // OPC sample period, in ms OpcSampleFlowRate uint32 `protobuf:"varint,34,opt,name=opc_sample_flow_rate,json=opcSampleFlowRate,proto3" json:"opc_sample_flow_rate,omitempty"` // OPC sample flow rate, in <UNIT???> OpcTemp uint32 `protobuf:"varint,35,opt,name=opc_temp,json=opcTemp,proto3" json:"opc_temp,omitempty"` // OPC temperature, in <UNIT???> OpcHum uint32 `protobuf:"varint,36,opt,name=opc_hum,json=opcHum,proto3" json:"opc_hum,omitempty"` // OPC temperature, in <UNIT???> OpcFanRevcount uint32 `protobuf:"varint,37,opt,name=opc_fan_revcount,json=opcFanRevcount,proto3" json:"opc_fan_revcount,omitempty"` // OPC fan rev count OpcLaserStatus uint32 `protobuf:"varint,38,opt,name=opc_laser_status,json=opcLaserStatus,proto3" json:"opc_laser_status,omitempty"` // OPC laser status, <DOC???> OpcSampleValid uint32 `protobuf:"varint,39,opt,name=opc_sample_valid,json=opcSampleValid,proto3" json:"opc_sample_valid,omitempty"` // OPC Sample valid // OPC PM bin 0 to 23 OpcBin_0 uint32 `protobuf:"varint,40,opt,name=opc_bin_0,json=opcBin0,proto3" json:"opc_bin_0,omitempty"` // OPC PM bin 0 OpcBin_1 uint32 `protobuf:"varint,41,opt,name=opc_bin_1,json=opcBin1,proto3" json:"opc_bin_1,omitempty"` // OPC PM bin 1 OpcBin_2 uint32 `protobuf:"varint,42,opt,name=opc_bin_2,json=opcBin2,proto3" json:"opc_bin_2,omitempty"` // OPC PM bin 2 OpcBin_3 uint32 `protobuf:"varint,43,opt,name=opc_bin_3,json=opcBin3,proto3" json:"opc_bin_3,omitempty"` // OPC PM bin 3 OpcBin_4 uint32 `protobuf:"varint,44,opt,name=opc_bin_4,json=opcBin4,proto3" json:"opc_bin_4,omitempty"` // OPC PM bin 4 OpcBin_5 uint32 `protobuf:"varint,45,opt,name=opc_bin_5,json=opcBin5,proto3" json:"opc_bin_5,omitempty"` // OPC PM bin 5 OpcBin_6 uint32 `protobuf:"varint,46,opt,name=opc_bin_6,json=opcBin6,proto3" json:"opc_bin_6,omitempty"` // OPC PM bin 6 OpcBin_7 uint32 `protobuf:"varint,47,opt,name=opc_bin_7,json=opcBin7,proto3" json:"opc_bin_7,omitempty"` // OPC PM bin 7 OpcBin_8 uint32 `protobuf:"varint,48,opt,name=opc_bin_8,json=opcBin8,proto3" json:"opc_bin_8,omitempty"` // OPC PM bin 8 OpcBin_9 uint32 `protobuf:"varint,49,opt,name=opc_bin_9,json=opcBin9,proto3" json:"opc_bin_9,omitempty"` // OPC PM bin 9 OpcBin_10 uint32 `protobuf:"varint,50,opt,name=opc_bin_10,json=opcBin10,proto3" json:"opc_bin_10,omitempty"` // OPC PM bin 10 OpcBin_11 uint32 `protobuf:"varint,51,opt,name=opc_bin_11,json=opcBin11,proto3" json:"opc_bin_11,omitempty"` // OPC PM bin 11 OpcBin_12 uint32 `protobuf:"varint,52,opt,name=opc_bin_12,json=opcBin12,proto3" json:"opc_bin_12,omitempty"` // OPC PM bin 12 OpcBin_13 uint32 `protobuf:"varint,53,opt,name=opc_bin_13,json=opcBin13,proto3" json:"opc_bin_13,omitempty"` // OPC PM bin 13 OpcBin_14 uint32 `protobuf:"varint,54,opt,name=opc_bin_14,json=opcBin14,proto3" json:"opc_bin_14,omitempty"` // OPC PM bin 14 OpcBin_15 uint32 `protobuf:"varint,55,opt,name=opc_bin_15,json=opcBin15,proto3" json:"opc_bin_15,omitempty"` // OPC PM bin 15 OpcBin_16 uint32 `protobuf:"varint,56,opt,name=opc_bin_16,json=opcBin16,proto3" json:"opc_bin_16,omitempty"` // OPC PM bin 16 OpcBin_17 uint32 `protobuf:"varint,57,opt,name=opc_bin_17,json=opcBin17,proto3" json:"opc_bin_17,omitempty"` // OPC PM bin 17 OpcBin_18 uint32 `protobuf:"varint,58,opt,name=opc_bin_18,json=opcBin18,proto3" json:"opc_bin_18,omitempty"` // OPC PM bin 18 OpcBin_19 uint32 `protobuf:"varint,59,opt,name=opc_bin_19,json=opcBin19,proto3" json:"opc_bin_19,omitempty"` // OPC PM bin 19 OpcBin_20 uint32 `protobuf:"varint,60,opt,name=opc_bin_20,json=opcBin20,proto3" json:"opc_bin_20,omitempty"` // OPC PM bin 20 OpcBin_21 uint32 `protobuf:"varint,61,opt,name=opc_bin_21,json=opcBin21,proto3" json:"opc_bin_21,omitempty"` // OPC PM bin 21 OpcBin_22 uint32 `protobuf:"varint,62,opt,name=opc_bin_22,json=opcBin22,proto3" json:"opc_bin_22,omitempty"` // OPC PM bin 22 OpcBin_23 uint32 `protobuf:"varint,63,opt,name=opc_bin_23,json=opcBin23,proto3" json:"opc_bin_23,omitempty"` // OPC PM bin 23 Pm1 float32 `protobuf:"fixed32,64,opt,name=pm1,proto3" json:"pm1,omitempty"` // OPC PM A (default PM1) Pm25 float32 `protobuf:"fixed32,65,opt,name=pm25,proto3" json:"pm25,omitempty"` // OPC PM B (default PM2.5) Pm10 float32 `protobuf:"fixed32,66,opt,name=pm10,proto3" json:"pm10,omitempty"` // OPC PM C (default PM10) // contains filtered or unexported fields }
Sample -- represents one packet of data from the air quality unit. When extending this keep in mind that dealing with protobuffers on constrained platforms dealing with nested structures can be a bit of a pain, so we try to keep this message as simple as possible.
func (*Sample) Descriptor
deprecated
func (*Sample) GetAfe3TempRaw ¶
func (*Sample) GetBoardRelHumidity ¶
func (*Sample) GetBoardTemp ¶
func (*Sample) GetFirmwareVersion ¶
func (*Sample) GetGpsTimestamp ¶
func (*Sample) GetOpcBin_0 ¶
func (*Sample) GetOpcBin_1 ¶
func (*Sample) GetOpcBin_10 ¶
func (*Sample) GetOpcBin_11 ¶
func (*Sample) GetOpcBin_12 ¶
func (*Sample) GetOpcBin_13 ¶
func (*Sample) GetOpcBin_14 ¶
func (*Sample) GetOpcBin_15 ¶
func (*Sample) GetOpcBin_16 ¶
func (*Sample) GetOpcBin_17 ¶
func (*Sample) GetOpcBin_18 ¶
func (*Sample) GetOpcBin_19 ¶
func (*Sample) GetOpcBin_2 ¶
func (*Sample) GetOpcBin_20 ¶
func (*Sample) GetOpcBin_21 ¶
func (*Sample) GetOpcBin_22 ¶
func (*Sample) GetOpcBin_23 ¶
func (*Sample) GetOpcBin_3 ¶
func (*Sample) GetOpcBin_4 ¶
func (*Sample) GetOpcBin_5 ¶
func (*Sample) GetOpcBin_6 ¶
func (*Sample) GetOpcBin_7 ¶
func (*Sample) GetOpcBin_8 ¶
func (*Sample) GetOpcBin_9 ¶
func (*Sample) GetOpcFanRevcount ¶
func (*Sample) GetOpcLaserStatus ¶
func (*Sample) GetOpcSampleFlowRate ¶
func (*Sample) GetOpcSamplePeriod ¶
func (*Sample) GetOpcSampleValid ¶
func (*Sample) GetOpcTemp ¶
func (*Sample) GetSensor_1Aux ¶
func (*Sample) GetSensor_1Work ¶
func (*Sample) GetSensor_2Aux ¶
func (*Sample) GetSensor_2Work ¶
func (*Sample) GetSensor_3Aux ¶
func (*Sample) GetSensor_3Work ¶
func (*Sample) ProtoMessage ¶
func (*Sample) ProtoMessage()
func (*Sample) ProtoReflect ¶
func (x *Sample) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.