Skip to content

Commit

Permalink
Merge pull request #66 from inputlabs/advanced-settings
Browse files Browse the repository at this point in the history
Fix user calibration load negative values
  • Loading branch information
marcos-diaz authored Sep 30, 2024
2 parents 2120168 + 9fab8f8 commit 1e84fbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export class SettingsComponent {
this.gyroUserOffsetX = gyroUserOffset.values[0]
this.gyroUserOffsetY = gyroUserOffset.values[1]
this.gyroUserOffsetZ = gyroUserOffset.values[2]
if (this.gyroUserOffsetX > 127) this.gyroUserOffsetX -= 256
if (this.gyroUserOffsetY > 127) this.gyroUserOffsetY -= 256
if (this.gyroUserOffsetZ > 127) this.gyroUserOffsetZ -= 256
}

async saveLongCalibration() {
Expand Down

0 comments on commit 1e84fbc

Please sign in to comment.