Subversion Repositories FlightCtrl

Rev

Rev 1821 | Rev 1869 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1821 Rev 1867
Line 63... Line 63...
63
 
63
 
64
        if (height > maxHeight)
64
        if (height > maxHeight)
Line 65... Line 65...
65
                maxHeight = height;
65
                maxHeight = height;
66
 
66
 
67
        if (staticParams.GlobalConfig & CFG_HEIGHT_SWITCH) {
67
        if (staticParams.GlobalConfig & CFG_HEIGHT_SWITCH) {
68
                // If switch is activated in config
68
                // If switch is activated in config, the MaxHeight parameter is a switch value: ON in both ends of the range; OFF in the middle.
69
                DebugOut.Digital[0] |= DEBUG_HEIGHT_SWITCH;
69
                DebugOut.Digital[0] |= DEBUG_HEIGHT_SWITCH;
70
                if (dynamicParams.MaxHeight < 40 || dynamicParams.MaxHeight > 255 - 40) {
70
                if (dynamicParams.MaxHeight < 40 || dynamicParams.MaxHeight > 255 - 40) {
71
                        // Switch is ON
71
                        // Switch is ON