Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnalogData ¶
type SiloMeasureResponse ¶
type SiloMeasureResponse struct { SiloCapacityM3 float64 `json:"silo_capacity_m3"` SiloCapacityKg float64 `json:"silo_capacity_kg"` ContentDistanceFromSensor float64 `json:"content_distance_from_sensor"` ContentLevelCm float64 `json:"content_level_cm"` ContentVolumeM3 float64 `json:"content_volume_m3"` ContentPerc float64 `json:"content_perc"` ContentWeightKg float64 `json:"content_weight_kg"` }
type SiloMeasureSimpleRequest ¶
type SiloMeasureSimpleRequest struct { Distancia float64 `json:"distancia"` SiloHeightCm int `json:"silo_height_cm"` SiloDiameterCm int `json:"silo_diameter_cm"` SiloHeightConeCm int `json:"silo_height_cone_cm"` SiloOffsetDistanceCm int `json:"silo_offset_distance_cm"` // Distance from sensor to cylinder ContentDensityKgm3 float64 `json:"content_density_kgm3"` }
User represents the structure of our resource
func (*SiloMeasureSimpleRequest) EvalDistance ¶
func (req *SiloMeasureSimpleRequest) EvalDistance() (response SiloMeasureResponse)
type WebsocketData ¶
type WebsocketData struct { Timestamp int64 `json:"timestamp"` Analog AnalogData `json:"analog"` }
Click to show internal directories.
Click to hide internal directories.