Skip to content

Commit

Permalink
Merge branch 'main' into precise-stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBaecker committed Jul 17, 2024
2 parents e76c9e7 + 377b0a4 commit b80ba13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion field_friend/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,5 +244,8 @@ def get_jetson_cpu_temperature(self):
return float(temp) / 1000.0 # Convert from milli °C to °C

def log_status(self):
msg = f'cpu: {psutil.cpu_percent():.0f}% mem: {psutil.virtual_memory().percent:.0f}% temp: {self.get_jetson_cpu_temperature():.1f}°C'
msg = f'cpu: {psutil.cpu_percent():.0f}% '
msg += f'mem: {psutil.virtual_memory().percent:.0f}% '
msg += f'temp: {self.get_jetson_cpu_temperature():.1f}°C '
msg += f'battery: {self.field_friend.bms.state.short_string}'
self.log.info(msg)
3 changes: 3 additions & 0 deletions field_friend/vision/simulated_cam_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ def add_cameras(self, num_cameras: int) -> None:
new_id = f'cam{len(self._cameras)}'
print(f'adding simulated camera: {new_id}')
self.add_camera(SimulatedCam(id=new_id, width=640, height=480))

async def update_device_list(self) -> None:
return None

0 comments on commit b80ba13

Please sign in to comment.