feat: add support for RadioMaster TX16S MK3 (#7017)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: 3djc <3djc@gh.com> Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com>
This commit is contained in:
co-authored by
philmoz
3djc
Peter Feerick
parent
5394e84871
commit
be496b66b6
@@ -100,6 +100,11 @@ class ADCInputParser:
|
||||
'name': 'RTC_BAT',
|
||||
'suffix': 'RTC_BAT',
|
||||
},
|
||||
{
|
||||
'type': 'LUX',
|
||||
'name': 'LUX',
|
||||
'suffix': 'LUX',
|
||||
},
|
||||
{
|
||||
'range': AZ_seq(),
|
||||
'type': ADCInput.TYPE_SWITCH,
|
||||
@@ -237,7 +242,7 @@ class ADCInputParser:
|
||||
if 'PWM_STICKS' in self.hw_defs:
|
||||
ch = self.hw_defs.get(f'STICK_PWM_CHANNEL_{adc_input.name}')
|
||||
adc_input.pwm_channel = idx if ch is None else ch
|
||||
if adc_input.type != 'VBAT' and adc_input.type != 'RTC_BAT':
|
||||
if adc_input.type != 'VBAT' and adc_input.type != 'RTC_BAT' and adc_input.type != 'LUX':
|
||||
d = self.dirs[idx]
|
||||
if d < 0:
|
||||
adc_input.inverted = True
|
||||
|
||||
Reference in New Issue
Block a user