Minor variable reorganization.

pull/641/head
Eric Westphal 2017-07-04 13:31:04 -04:00
rodzic 1bf2a9d808
commit 4d3235fb4b
2 zmienionych plików z 4 dodań i 6 usunięć

@ -1 +1 @@
Subproject commit b8fd7a5c0d63485e0b6fd03b83609c831e7bb0d5
Subproject commit 70afad4dfbe02ebe6cd722666d59153927c90026

Wyświetl plik

@ -22,7 +22,6 @@ var (
i2cbus embd.I2CBus
myPressureReader sensors.PressureReader
myIMUReader sensors.IMUReader
s ahrs.AHRSProvider
cal chan (bool)
analysisLogger *ahrs.AHRSLogger
ahrsCalibrating, needsCage bool // Does the sensor orientation matrix need to be recalculated?
@ -139,16 +138,15 @@ func initIMU() (ok bool) {
func sensorAttitudeSender() {
var (
roll, pitch, heading float64
t time.Time
m *ahrs.Measurement
roll, pitch, heading float64
mpuError, magError error
failNum uint8
)
log.Println("AHRS Info: initializing new Simple AHRS")
s = ahrs.NewSimpleAHRS()
m = ahrs.NewMeasurement()
s := ahrs.NewSimpleAHRS()
m := ahrs.NewMeasurement()
cal = make(chan (bool), 1)
// Set up loggers for analysis