Hello All,
Got a new rudder/elevator easystar back in the air today, and when I switched to fly-by-wire it didn't roll-over and dive! Making progress.
The stabilization appears to be working, but it's over-correcting itself. The nose wobbles in a 12" circle when activated.
I've read through the manual, and searched on here, and it appears that I need to learn more about PID gains to reduce pitch and roll.
This is going to be my next stab in the dark. In looking at other *.h files, what I'm trying doesn't appear to be necessary, but it's where the docs seem to be pointing me.
pitch_P, pitch_I
roll_P, roll_I
Do the sensors have to be completely level at startup? ie: can the plane be leaning on a wingtip? I'm using FMA XY sensors for my XY and Z, and they're as level and plumb as I can make them on velcro tape.
Thanks for any tips!
//ROLL GAINS
//5-1
#define roll_abs .2 //Set point absolute...(Not Used)
//5-3
#define roll_P .17 //roll PID proportional .35 stock
//5-3
#define roll_I .17 //roll PID integrator .35 stock
//5-4
#define roll_min -25 //PID output limit in servo degrees
//5-5
#define roll_max 25 //PID output limit in servo degrees
//5-6
#define roll_Integrator_max 10 //Limit the integrator, to avoid overshoots
//5-7
#define roll_Integrator_min -10
//PITCH GAINS
//6-1
#define pitch_P .32 //Pitch Proportional .65 stock
//6-2
#define pitch_I .17 //Pitch integrator .32 stock
//6-3
#define pitch_min -25 //Pitch limits
//6-4
#define pitch_max 25
//6-5
#define pitch_Integrator_max 10 //Pitch integrator limits
//6-6
#define pitch_Integrator_min -10
//6-7
#define PITCH_COMP .30 //<------Very important, Pitch compensation vs. Roll bank angle.