Subversion Repositories FlightCtrl

Rev

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

Rev 727 Rev 733
Line 33... Line 33...
33
        int32_t P_North = 0, D_North = 0, P_East = 0, D_East = 0;
33
        int32_t P_North = 0, D_North = 0, P_East = 0, D_East = 0;
34
        int32_t PD_North = 0, PD_East = 0;
34
        int32_t PD_North = 0, PD_East = 0;
35
        int32_t GPSPosDev_North = 0, GPSPosDev_East = 0;
35
        int32_t GPSPosDev_North = 0, GPSPosDev_East = 0;
Line 36... Line 36...
36
 
36
 
37
        // poti2 enables the gps feature
37
        // poti2 enables the gps feature
38
        if(Poti2 > 70) // run GPS function only if Poti 2 is larger than 70 (switch on)
38
        if((Poti2 > 70) && (!EmergencyLanding)) // run GPS function only if Poti 2 is larger than 70 (switch on)
39
        {
39
        {
40
                switch(GPSInfo.status)
40
                switch(GPSInfo.status)
41
                {
41
                {
42
                case INVALID:  // invalid gps data
42
                case INVALID:  // invalid gps data