[Taranis] Vario on A1/A2 re-enabled (issue 96) - Caution, c9x will shift the values, a little mod will be needed

[Taranis] Copy/Paste on CSW/FSW will work only when in line select mode (issue 97)
This commit is contained in:
bsongis@gmail.com
2013-08-10 12:15:52 +00:00
parent d5e7bf2433
commit 34445b6f15
17 changed files with 86 additions and 33 deletions
+6
View File
@@ -307,6 +307,12 @@ void processSportPacket(uint8_t *packet)
else if (appId == ADC1_ID || appId == ADC2_ID) {
// A1/A2 of DxR receivers
frskyData.analog[appId-ADC1_ID].set(SPORT_DATA_U8(packet));
#if defined(VARIO)
uint8_t varioSource = g_model.frsky.varioSource - VARIO_SOURCE_A1;
if (varioSource == appId-ADC1_ID) {
frskyData.hub.varioSpeed = applyChannelRatio(varioSource, frskyData.analog[varioSource].value);
}
#endif
}
else if (appId == BATT_ID) {
frskyData.analog[0].set(SPORT_DATA_U8(packet));