@AvSquirrel fixes.

Ref #190.
pull/213/head
Christopher Young 2016-01-11 11:16:25 -05:00
rodzic e00c7a82d1
commit 1c69061c43
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -47,7 +47,9 @@ func New() *MPU6050 {
}
func (d *MPU6050) StartUp() error {
mpu.InitMPU()
mpu_sample_rate := 10 // 10 Hz read rate of hardware IMU
yaw_mix_factor := 0 // must be zero if no magnetometer
mpu.InitMPU(mpu_sample_rate, yaw_mix_factor)
d.pitch_history = make([]float64, 0)
d.roll_history = make([]float64, 0)