Skip to content

Commit

Permalink
Flip now a bit less sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
furbrain committed Jan 13, 2024
1 parent 996d48f commit 5a16de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ async def flip_monitor(self):
axes = mag_cal.Axes(self.config.mag_axes)
grav = axes.fix_axes(grav)
grav /= 9.81
if self.display.inverted and grav[0] < -0.3:
if self.display.inverted and grav[0] < -0.5:
logger.debug("Flipping to right way up")
self.display.inverted = False
elif not self.display.inverted and grav[0] > 0.3:
elif not self.display.inverted and grav[0] > 0.5:
logger.debug("Flipping to inverted")
self.display.inverted = True

Expand Down

0 comments on commit 5a16de5

Please sign in to comment.