Subversion Repositories FlightCtrl

Rev

Rev 1874 | Rev 1961 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1874 Rev 1908
Line 93... Line 93...
93
        }
93
        }
94
        /*
94
        /*
95
         * While we are still using userparams for flight parameters, do set
95
         * While we are still using userparams for flight parameters, do set
96
         * some safe & meaningful default values.
96
         * some safe & meaningful default values.
97
         */
97
         */
98
        staticParams.UserParams1[3] = 8; // Throttle stick D=8
98
        staticParams.UserParams1[3] = 12; // Throttle stick D=12
99
        staticParams.UserParams2[0] = 0b11010101; // All gyro filter constants 2; acc. 4
99
        staticParams.UserParams2[0] = 0b11010101; // All gyro filter constants 2; acc. 4
100
        staticParams.UserParams2[1] = 2; // H&I motor smoothing.
100
        staticParams.UserParams2[1] = 2; // H&I motor smoothing.
101
        staticParams.UserParams2[2] = 120; // Yaw I factor
101
        staticParams.UserParams2[2] = 120; // Yaw I factor
102
        staticParams.UserParams2[3] = 100; // Max Z acceleration for acc. correction of angles.
102
        staticParams.UserParams2[3] = 100; // Max Z acceleration for acc. correction of angles.
103
}
103
}
Line 127... Line 127...
127
        staticParams.MinThrottle = 8;
127
        staticParams.MinThrottle = 8;
128
        staticParams.MaxThrottle = 230;
128
        staticParams.MaxThrottle = 230;
129
        staticParams.CompassYawEffect = 128;
129
        staticParams.CompassYawEffect = 128;
130
        staticParams.GyroP = 80;
130
        staticParams.GyroP = 80;
131
        staticParams.GyroI = 100;
131
        staticParams.GyroI = 100;
132
        staticParams.LowVoltageWarning = 95;
132
        staticParams.LowVoltageWarning = 101;  // 3.7 each for 3S
133
        staticParams.EmergencyGas = 35;
133
        staticParams.EmergencyGas = 35;
134
        staticParams.EmergencyGasDuration = 30;
134
        staticParams.EmergencyGasDuration = 30;
135
        staticParams.Unused0 = 0;
135
        staticParams.Unused0 = 0;
136
        staticParams.IFactor = 32;
136
        staticParams.IFactor = 32;
137
        staticParams.ServoPitchControl = 100;
137
        staticParams.ServoPitchControl = 100;