feat: Flysky gimbal support for RM Boxer (#3139)
* Adds Flysky digital hall gimbal support for RadioMaster Boxer. --------- Co-authored-by: rotorman <risto.koiva@web.de>
This commit is contained in:
@@ -134,7 +134,8 @@ bool adcRead()
|
||||
uint16_t temp[NUM_ANALOGS] = { 0 };
|
||||
|
||||
uint8_t first_analog_adc;
|
||||
#if defined(RADIO_FAMILY_T16) || defined(PCBNV14)
|
||||
|
||||
#if defined(FLYSKY_GIMBAL)
|
||||
if (globalData.flyskygimbals)
|
||||
{
|
||||
first_analog_adc = FIRST_ANALOG_ADC_FS;
|
||||
@@ -146,7 +147,6 @@ bool adcRead()
|
||||
first_analog_adc = FIRST_ANALOG_ADC;
|
||||
#endif
|
||||
|
||||
|
||||
for (int i=0; i<4; i++) {
|
||||
if (!adcSingleRead())
|
||||
return false;
|
||||
@@ -267,7 +267,7 @@ void getADC()
|
||||
|
||||
for (uint8_t x=0; x<NUM_ANALOGS; x++) {
|
||||
uint32_t v;
|
||||
#if defined(RADIO_FAMILY_T16) || defined(PCBNV14)
|
||||
#if defined(FLYSKY_GIMBAL)
|
||||
if (globalData.flyskygimbals)
|
||||
{
|
||||
if (x < 4) {
|
||||
|
||||
Reference in New Issue
Block a user