Documentation
¶
Overview ¶
Package middle coordinates the response to user requests that require the use of the rfswitch and calibration services
Index ¶
- func Cal2Meas(f []float64, s *pb.SParams) []pocket.SParam
- func Meas2Cal(s []pocket.SParam) *pb.SParams
- func Meas2Freq(s []pocket.SParam) []float64
- type Middle
- func (m *Middle) CalibrateConfirm(request *pocket.RangeQuery) error
- func (m *Middle) CalibrateMeasure(request *pocket.RangeQuery) error
- func (m *Middle) CalibrateRange(request *pocket.RangeQuery) error
- func (m *Middle) CalibrateSetup(request *pocket.RangeQuery) error
- func (m *Middle) CalibrationOK() bool
- func (m *Middle) Handle(ctx context.Context, request interface{}) (response interface{}, err error)
- func (m *Middle) MeasureRangeCalibrated(request *pocket.CalibratedRangeQuery) error
- func (m *Middle) Run()
- type Ready
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middle ¶
type Middle struct {
// contains filtered or unexported fields
}
Middle holds config and service pointers
func (*Middle) CalibrateConfirm ¶ added in v0.2.0
func (m *Middle) CalibrateConfirm(request *pocket.RangeQuery) error
func (*Middle) CalibrateMeasure ¶ added in v0.2.0
func (m *Middle) CalibrateMeasure(request *pocket.RangeQuery) error
func CalibrateMeasure stores the frequency range and distribution
func (*Middle) CalibrateRange ¶ added in v0.1.0
func (m *Middle) CalibrateRange(request *pocket.RangeQuery) error
func CalibrateRange performs the calibration measurements
func (*Middle) CalibrateSetup ¶ added in v0.2.0
func (m *Middle) CalibrateSetup(request *pocket.RangeQuery) error
func CalibrateSetup stores the frequency range and distribution
func (*Middle) CalibrationOK ¶ added in v0.3.0
func (*Middle) MeasureRangeCalibrated ¶ added in v0.1.0
func (m *Middle) MeasureRangeCalibrated(request *pocket.CalibratedRangeQuery) error
func MeasureRangeCalibrated measures and applies a calibration, returning calibrated results
Click to show internal directories.
Click to hide internal directories.