Subversion Repositories FlightCtrl

Rev

Rev 980 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 980 Rev 985
Line 30... Line 30...
30
 
30
 
31
/*****************************************************************************
31
/*****************************************************************************
32
  VARIABLES
32
  VARIABLES
33
*****************************************************************************/
33
*****************************************************************************/
34
extern int RCQuality;
34
extern int RCQuality;
-
 
35
int RemoteLinkLost = 0;
35
int RemoteLinkLost;
36
int InvalidAttitude = 0;
36
extern unsigned long maxDistance;
37
extern unsigned long maxDistance;
Line 37... Line 38...
37
unsigned char EEPromArray[E2END+1] EEMEM;
38
unsigned char EEPromArray[E2END+1] EEMEM;
38
 
39
 
Line 194... Line 195...
194
  @post             -
195
  @post             -
195
  @author           Michael Walter
196
  @author           Michael Walter
196
**************************************************************************** */
197
**************************************************************************** */
197
void DeployRescue()
198
void DeployRescue()
198
{
199
{
199
  static int InvalidAttitude = 0;
-
 
200
  /* Yaw or pitch are greater than 90 Deg abs */
200
  /* Yaw or pitch are greater than 90 Deg abs */
201
  if (((abs(status.iTheta10) > 900) || (abs(status.iPhi10) > 900)) &&
201
  if (((abs(status.iTheta10) > 900) || (abs(status.iPhi10) > 900)) &&
202
     ((abs(AverageRoll) > 400) ||
202
     ((abs(AverageRoll) > 400) ||
203
      (abs(AverageNick) > 400) ||
203
      (abs(AverageNick) > 400) ||
204
      (abs(AverageGier) > 400) ))
204
      (abs(AverageGier) > 400) ))