625,9 → 625,12 |
Reading_IntegralGyroRoll2 = IntegralRoll; |
SumPitch = 0; |
SumRoll = 0; |
if(ParamSet.GlobalConfig & CFG_GPS_ACTIVE) |
{ |
GPS_SetHomePosition(); |
} |
} |
} |
else delay_startmotors = 0; // reset delay timer if sticks are not in this position |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// and yaw stick is leftmost --> stop motors |
639,9 → 642,12 |
delay_stopmotors = 200; // do not repeat if once executed |
Model_Is_Flying = 0; |
MotorsOn = 0; |
if(ParamSet.GlobalConfig & CFG_GPS_ACTIVE) |
{ |
GPS_ClearHomePosition(); |
} |
} |
} |
else delay_stopmotors = 0; // reset delay timer if sticks are not in this position |
} |
// remapping of paameters only if the signal rc-sigbnal conditions are good |