MultiWii as CP Helicopter FBL (or just stabilization)?

leadfeather
Posts: 7
Joined: Sat Feb 19, 2011 2:42 pm

Re: MultiWii as CP Helicopter FBL (or just stabilization)?

Post by leadfeather »

Here is the smoothing code I'm currently using. It has some int32 (provided by timecop of rcgroups) stuff added to avoid numeric overflow. The red shows the changes I've made to the IMU tab of the code.

static int16_t gyroYawSmooth = 0;
static int16_t gyroRollSmooth = 0;
static int16_t gyroPitchSmooth = 0;


#if defined(TRI) || defined(VTOL_TAIL)

#define gyrorRollSmooth
#define gyrorPitchSmooth


// gyroData[YAW] = (gyroYawSmooth*2+gyroData[YAW]+1)/3;
gyroData[YAW] = (int16_t) ( ( (int32_t)((int32_t)gyroYawSmooth * 6)+gyroData[YAW]+1 ) / 7);
gyroYawSmooth = gyroData[YAW];
//gyroData[ROLL] = (gyroRollSmooth*59+gyroData[ROLL]+1)/60;
gyroData[ROLL] = (int16_t) ( ( (int32_t)((int32_t)gyroRollSmooth * 60)+gyroData[ROLL]+1 ) / 61);
gyroRollSmooth = gyroData[ROLL];
//gyroData[PITCH] = (gyroPitchSmooth*59+gyroData[PITCH]+1)/60;
gyroData[PITCH] = (int16_t) ( ( (int32_t)((int32_t)gyroPitchSmooth * 60)+gyroData[PITCH]+1 ) / 61);
gyroPitchSmooth = gyroData[PITCH];

#endif

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: MultiWii as CP Helicopter FBL (or just stabilization)?

Post by PatrikE »

I have made a few cahanges in the HeliMode.
The servosettings in made same way as for Airplane in config.h.
But is using Max and Min for servotravel.

caall99
Posts: 3
Joined: Thu Jun 02, 2011 10:38 pm

Re: MultiWii as CP Helicopter FBL (or just stabilization)?

Post by caall99 »

is this code mature enough for me to use the MultiWii controller on a Blade 400 3D with a flybarless head conversion? I am hoping for auto level capabilities as well from the accelerometers.

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: MultiWii as CP Helicopter FBL (or just stabilization)?

Post by PatrikE »

It's fully flyable.
Yaw gyro have been reported to be unprecise.
But otherwise there's no strange behaviors as i know.

Hamburger have made some testflights with a converted 450.

caall99
Posts: 3
Joined: Thu Jun 02, 2011 10:38 pm

Re: MultiWii as CP Helicopter FBL (or just stabilization)?

Post by caall99 »

can i expect a level of stability and features comparable to a multirotor?

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: MultiWii as CP Helicopter FBL (or just stabilization)?

Post by PatrikE »

There's another thread about Helickoter integration with more info.
viewtopic.php?f=8&t=1562&start=40

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWii as CP Helicopter FBL (or just stabilization)?

Post by Hamburger »

caall99 wrote:is this code mature enough for me to use the MultiWii controller on a Blade 400 3D with a flybarless head conversion?

That is something no one can answer but you.
I am hoping for auto level capabilities as well from the accelerometers.

it works for fbl heli for my two 325mm helis and yes, it gives level cap and whatever else MWii supplies (possibly no RTH with gps yet).

Follow Patrik's advice and link

Post Reply