kopia lustrzana https://github.com/cyoung/stratux
Minor variable reorganization.
rodzic
1bf2a9d808
commit
4d3235fb4b
2
goflying
2
goflying
|
@ -1 +1 @@
|
|||
Subproject commit b8fd7a5c0d63485e0b6fd03b83609c831e7bb0d5
|
||||
Subproject commit 70afad4dfbe02ebe6cd722666d59153927c90026
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue