Rev 2074 | Rev 2079 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2074 | Rev 2075 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | testOscTimer = 0; |
30 | testOscTimer = 0; |
31 | maxHeightThisFlight = 0; |
31 | maxHeightThisFlight = 0; |
32 | iHeight = 0; |
32 | iHeight = 0; |
33 | } |
33 | } |
Line 34... | Line 34... | ||
34 | 34 | ||
35 | uint8_t HC_isSwitchOn() { |
35 | uint8_t HC_isSwitchOn(void) { |
36 | return (dynamicParams.heightSetting >= 255/3); |
36 | return (dynamicParams.heightSetting >= 255/3); |
Line 37... | Line 37... | ||
37 | } |
37 | } |
38 | 38 | ||
Line 105... | Line 105... | ||
105 | if (testOscTimer < staticParams.heightControlTestOscPeriod/2) |
105 | if (testOscTimer < staticParams.heightControlTestOscPeriod/2) |
106 | targetHeight = setHeight; |
106 | targetHeight = setHeight; |
107 | else |
107 | else |
108 | targetHeight = setHeight + (uint16_t)staticParams.heightControlTestOscAmplitude * 25L; |
108 | targetHeight = setHeight + (uint16_t)staticParams.heightControlTestOscAmplitude * 25L; |
Line -... | Line 109... | ||
- | 109 | ||
- | 110 | debugOut.analog[31] = targetHeight/100L; |
|
109 | 111 | ||
110 | //if (staticParams.) |
112 | //if (staticParams.) |
111 | // height, in meters (so the division factor is: 100) |
113 | // height, in meters (so the division factor is: 100) |
112 | // debugOut.analog[24] = (117100 - filteredAirPressure) / 100; |
114 | // debugOut.analog[24] = (117100 - filteredAirPressure) / 100; |
113 | // Calculated 0 alt number: 108205 |
115 | // Calculated 0 alt number: 108205 |