Skip to content

Commit

Permalink
Merge commit '377b0a4907fd7772f4626917b601802ff251504c' into navigati…
Browse files Browse the repository at this point in the history
…on-gnss
  • Loading branch information
pascalzauberzeug committed Jul 17, 2024
2 parents 75a0c51 + 377b0a4 commit caab61e
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 @@ -243,5 +243,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 caab61e

Please sign in to comment.