Rev 102 | Rev 105 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 102 | Rev 103 | ||
---|---|---|---|
Line 198... | Line 198... | ||
198 | GPS_Parameter.StickThreshold = (s8)Parameter.NaviStickThreshold; |
198 | GPS_Parameter.StickThreshold = (s8)Parameter.NaviStickThreshold; |
199 | GPS_Parameter.WindCorrection = (float)Parameter.NaviWindCorrection; |
199 | GPS_Parameter.WindCorrection = (float)Parameter.NaviWindCorrection; |
200 | GPS_Parameter.OperatingRadius = (s32)Parameter.NaviOperatingRadius * 100; // conversion of m to cm |
200 | GPS_Parameter.OperatingRadius = (s32)Parameter.NaviOperatingRadius * 100; // conversion of m to cm |
201 | } |
201 | } |
202 | // FlightMode changed? |
202 | // FlightMode changed? |
- | 203 | if(GPS_Parameter.FlightMode != FlightMode_Old) |
|
- | 204 | { |
|
203 | if(GPS_Parameter.FlightMode != FlightMode_Old) BeepTime = 100; // beep to indicate that mode has switched |
205 | BeepTime = 100; // beep to indicate that mode has been switched |
- | 206 | NCFlags &= ~NC_FLAG_TARGET_REACHED; |
|
- | 207 | } |
|
204 | FlightMode_Old = GPS_Parameter.FlightMode; |
208 | FlightMode_Old = GPS_Parameter.FlightMode; |
205 | } |
209 | } |
Line 206... | Line 210... | ||
206 | 210 | ||
207 | //------------------------------------------------------------- |
211 | //------------------------------------------------------------- |
Line 631... | Line 635... | ||
631 | GPS_Stick.Yaw = 0; |
635 | GPS_Stick.Yaw = 0; |
632 | } |
636 | } |
633 | else // deviation could not be calculated |
637 | else // deviation could not be calculated |
634 | { // do nothing on gps sticks! |
638 | { // do nothing on gps sticks! |
635 | GPS_Neutral(); |
639 | GPS_Neutral(); |
- | 640 | NCFlags &= ~NC_FLAG_TARGET_REACHED; // clear target reached |
|
636 | } |
641 | } |
Line 637... | Line 642... | ||
637 | 642 | ||
638 | }// eof if GPSSignal is OK |
643 | }// eof if GPSSignal is OK |
639 | else // GPSSignal not OK |
644 | else // GPSSignal not OK |