now i have add OPTICAL_FLOW_P_GAIN and OPTICAL_FLOW_I_GAIN .
my parameter for the moment are : P 5.0 and I 0.010 , what is the right method to write this directly in the code ?
because OPTICAL_FLOW_I_GAIN 0.100 doesnt work

Code: Select all
I2C_GPS_WP_DISTANCE
EOSBandi wrote:LuFa wrote:only at the i2c gps code ?? or also at Serial GPS Code ?
Multiwii base code..
Code: Select all
alt = constrain((int16_t)EstAlt, 30, 300) * min(avgSqual.res,50) * 2; // 16 bit ok: 300 * 50 * 2 = 30000;