MWC 2.0 with Magnetron's moving averages

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
MikSam
Posts: 10
Joined: Wed Feb 22, 2012 5:27 am

MWC 2.0 with Magnetron's moving averages

Post by MikSam »

I just installed 2.0 with Magnetron's moving averages and it was very good on my tri! Very flyable and stable mode really was stable.
To be fair I also re-calibrated props, set gyro LPF to 188Hz. Anyways my tri flies fine on stable mode and I'm a happy camper now :D .
Just flew one battery though but I felt very confident flying the thing :) I'll add comments later as I get more experience.
Baro alt hold worked too, I'd say +- 1m or so.

Because 2.0 is out I started this topic for people to share experiences if they test Magnetrons moving averages.

Thumbs up!

Cronalex
Posts: 51
Joined: Tue Mar 20, 2012 8:41 pm

Re: MWC 2.0 with Magnetron's moving averages

Post by Cronalex »

have used the moving average on the gyroscopes or accelerometers?? I used that and it works great on gyros

MikSam
Posts: 10
Joined: Wed Feb 22, 2012 5:27 am

Re: MWC 2.0 with Magnetron's moving averages

Post by MikSam »

ACC.
It seems to work really well on my rig.

Cronalex
Posts: 51
Joined: Tue Mar 20, 2012 8:41 pm

Re: MWC 2.0 with Magnetron's moving averages

Post by Cronalex »

to what you have set the moving average on the accelerometers?

MikSam
Posts: 10
Joined: Wed Feb 22, 2012 5:27 am

Re: MWC 2.0 with Magnetron's moving averages

Post by MikSam »

I used what Magnetron suggested for 100 kHz and disabled gyro smoothing:

Code: Select all

//####################################################################
// Moving Average Gyros by Magnetron1 (Michele Ardito) ########## beta
// if the I2C speed is 100kHz use MMGYROVECTORLENGHT from 2 to 6 best was 2 and MMACCVECTORLENGHT from 4 to 10 best was 6
// if the I2C speed is 400kHz use MMGYROVECTORLENGHT from 2 to 6 best was 4 and MMACCVECTORLENGHT from 4 to 12 best was 8
#define MMGYRO                         // Active Moving Average Function for Gyros
#define MMGYROVECTORLENGHT 2           // Lenght of Moving Average Vector
// Moving Average Accelerometers by Magnetron1
#define MMACC                          // Active Moving Average Function for Accelerometers
#define MMACCVECTORLENGHT 6            // Lenght of Moving Average Vector
// Moving Average ServoGimbal Signal Output
#define MMSERVOGIMBAL                  // Active Output Moving Average Function for Servos Gimbal
#define MMSERVOGIMBALVECTORLENGHT 16   // Lenght of Moving Average Vector
/* Trusted AccZ Velocity Vector Magnetron1
/* This option should be uncommented if ACC Z is accurate enough when motors are running*/
#define TRUSTED_ACCZ_VEL

Post Reply