diff --git a/main/sensors.go b/main/sensors.go index d04f8885..b229a782 100644 --- a/main/sensors.go +++ b/main/sensors.go @@ -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 } diff --git a/sensors/mpu9250.go b/sensors/mpu9250.go index ad38c066..6ba9e003 100644 --- a/sensors/mpu9250.go +++ b/sensors/mpu9250.go @@ -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 }