cmd/alignment/alignment-netsender: refactor calibration functionality

Issue #36 resolved
Saxon Milton created an issue

Currently calibration is performed using ping and/or upload speeds to develop a picture of optimal CPE heading, however this has proven to be sub-optimal. We now have the ability to retrieve connection stats from the CPE hardware including signal strength. This results in an apparent parabolic profile of signal strength vs angle from which maxima can be deduced.

A refactor is to be done to implement this new method of calibration. There will be a calibration results type housing magnetometer axis values, servo angle and signal strength. Methods will be provided for adding calibration points, fitting parabolas to data, deducing optimal servo and deriving servo angle from mag readings.

Comments (1)

  1. Log in to comment