Skip to content

Commit

Permalink
Keep pressure within values
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed Feb 9, 2024
1 parent bec44f9 commit 72569fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isar_robot/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _get_battery_level() -> float:

def _get_pressure_level() -> float:
millibar_to_bar: float = 1 / 1000
return (100 - random.randrange(0, 100) * 0.5) * millibar_to_bar
return (80 - random.randrange(10, 80) * 0.5) * millibar_to_bar


def _get_obstacle_status() -> bool:
Expand Down

0 comments on commit 72569fb

Please sign in to comment.