Remove some old AHRS logging.

pull/641/head
Eric Westphal 2017-06-24 15:51:13 -04:00
rodzic 22fe8cddbe
commit b4f437aa3d
2 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -44,7 +44,6 @@ func pollSensors() {
// If it's not currently connected, try connecting to pressure sensor
if globalSettings.BMP_Sensor_Enabled && !globalStatus.BMPConnected {
log.Println("AHRS Info: attempting pressure sensor connection.")
globalStatus.BMPConnected = initPressureSensor() // I2C temperature and pressure altitude.
go tempAndPressureSender()
}
@ -125,7 +124,6 @@ func tempAndPressureSender() {
}
func initIMU() (ok bool) {
log.Println("AHRS Info: attempting to connect to MPU9250")
imu, err := sensors.NewMPU9250()
if err == nil {
myIMUReader = imu
@ -135,7 +133,7 @@ func initIMU() (ok bool) {
// TODO westphae: try to connect to MPU9150 or other IMUs.
log.Println("AHRS Error: couldn't initialize MPU9250")
log.Println("AHRS Error: couldn't initialize an IMU")
return false
}

Wyświetl plik

@ -2,8 +2,6 @@
package sensors
import (
"log"
"../goflying/mpu9250"
)
@ -28,7 +26,6 @@ func NewMPU9250() (*MPU9250, error) {
err error
)
log.Println("AHRS Info: Making new MPU9250")
mpu, err = mpu9250.NewMPU9250(gyroRange, accelRange, updateFreq, true, false)
if err != nil {
return nil, err
@ -39,7 +36,6 @@ func NewMPU9250() (*MPU9250, error) {
mpu.SetAccelLPF(21)
m.mpu = mpu
log.Println("AHRS Info: monitoring IMU")
return &m, nil
}