I just enabled the pitch/roll function (below) and it works great! However, at about 45 or so degrees of pitch (no roll used on my rig), the gimbal returns to its neutral position. If I were flying pretty aggressively forward and happened to tilt past that point, my camera would snap up and I'd be watching the sky while my quad flew forward blindly...certainly not a good thing! Why does the gimbal function do this, and can I prevent it from happening? I love the feature, but I'm a bit nervous about this particular bit.
Here's what I have enabled in the code:
Code: Select all
/* The following lines apply only for a pitch/roll tilt stabilization system */
/* It is not compatible with Y6 or HEX6 */
/* Uncomment the first line to activate it */
#define SERVO_TILT
#define TILT_PITCH_MIN 1020 //servo travel min, don't set it below 1020
#define TILT_PITCH_MAX 2000 //servo travel max, max value=2000
#define TILT_PITCH_MIDDLE 1500 //servo neutral value
#define TILT_PITCH_PROP 20 //servo proportional (tied to angle) ; can be negative to invert movement
#define TILT_ROLL_MIN 1020
#define TILT_ROLL_MAX 2000
#define TILT_ROLL_MIDDLE 1500
#define TILT_ROLL_PROP 10