Closed RomanLut closed 3 years ago
@RomanLut this pull request contains a bug which has been reported by SonarCloud
I merged conflicts for you
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
11 Code Smells
No Coverage information
1.6% Duplication
Fixes https://github.com/CrazyDude1994/android-taranis-smartport-telemetry/issues/79
Betaflight sends poll/pitch with different SPORT sensor ids: const val SPORT_PITCH_SENSOR_BETAFLIGHT = 0x05230 const val SPORT_ROLL_SENSOR_BETAFLIGHT = 0x05240
Also, it is possible to derive (inacurate) attitude from accelerometer sensors, if roll/pitch sensors are not available: const val SPORT_DATA_ID_ACC_X = 0x0024 //accelerometer value x const val SPORT_DATA_ID_ACC_Y = 0x0025 //accelerometer value y const val SPORT_DATA_ID_ACC_Z = 0x0026 //accelerometer value z