[Taranis] Altitude bug fixes

[Taranis] Curves presets bug fix
This commit is contained in:
bsongis@gmail.com
2013-08-28 20:21:23 +00:00
parent 3f036e38b5
commit 2db13ce1a4
5 changed files with 19 additions and 3 deletions
+3
View File
@@ -3,6 +3,9 @@
<ul>
<li>Fix bug with Battery calibration
<li>14051 can be used for THR and AIL connections (telemetry)
<li>CH1 PPM output was truncated
<li>INPUTS instead of STICKS for BL activation
<li>Limits are now [-125:0] and [0:125] instead of [-125:25] and [-25:125]
</ul>
<h2>2688 / 2013-07-28</h2>
+6
View File
@@ -2,6 +2,12 @@
<ul>
<li>Rx voltage was not displayed on main screen if VFAS or CELLS chosen!
<li>GVARS can now refer to the GVAR of another phase
<li>Vario and Altitude bug fixes
<li>INPUTS instead of STICKS for BL activation
<li>PPM_UNIT=PREC0 / US taken into account in channels view
<li>DJT removed and receiver number hidden from PXX settings when proto != X16
<li>Limits are now [-125:0] and [0:125] instead of [-125:25] and [-25:125]
<li>Curves presets bug fix
</ul>
<h2>2688 / 2013-07-28</h2>
+3 -2
View File
@@ -324,8 +324,8 @@ void onModelSelectMenu(const char *result)
void menuModelSelect(uint8_t event)
{
if (s_warning_result) {
eeDeleteModel(m_posVert); // delete file
s_warning_result = 0;
eeDeleteModel(m_posVert); // delete file
s_copyMode = 0;
event = EVT_ENTRY_UP;
}
@@ -2248,6 +2248,7 @@ void displayPresetChoice(uint8_t event)
lcd_putcAtt(lcdLastPos, WARNING_LINE_Y, '@', INVERS);
if (s_warning_result) {
s_warning_result = 0;
CurveInfo crv = curveInfo(s_curveChan);
for (uint8_t i=0; i<crv.points; i++)
crv.crv[i] = (i-(crv.points/2)) * s_warning_input_value * 50 / (crv.points-1);
@@ -3485,9 +3486,9 @@ void menuModelLimits(uint8_t event)
#endif
if (s_warning_result) {
s_warning_result = 0;
LimitData *ld = limitAddress(sub);
ld->revert = !ld->revert;
s_warning_result = 0;
eeDirty(EE_MODEL);
}
+5 -1
View File
@@ -206,7 +206,11 @@ void processHubPacket(uint8_t id, uint16_t value)
break;
case BARO_ALT_AP_ID:
setBaroAltitude((int32_t)100 * frskyData.hub.baroAltitude_bp + frskyData.hub.baroAltitude_ap);
if (frskyData.hub.baroAltitude_ap > 9)
frskyData.hub.varioHighPrecision = true;
if (!frskyData.hub.varioHighPrecision)
frskyData.hub.baroAltitude_ap *= 10;
setBaroAltitude((int32_t)100 * frskyData.hub.baroAltitude_bp + (frskyData.hub.baroAltitude_bp >= 0 ? frskyData.hub.baroAltitude_ap : -frskyData.hub.baroAltitude_ap));
break;
case GPS_ALT_AP_ID:
+2
View File
@@ -139,6 +139,8 @@ PACK(struct FrskySerialData {
int16_t cellsSum;
uint8_t minCellIdx;
uint16_t minCellVolts;
bool varioHighPrecision;
});
struct FrskyData {