isl-org / OpenBot

OpenBot leverages smartphones as brains for low-cost robots. We have designed a small electric vehicle that costs about $50 and serves as a robot body. Our software stack for Android smartphones supports advanced robotics workloads such as person following and real-time autonomous navigation.
https://www.openbot.org
MIT License
2.82k stars 529 forks source link

Harmonize use of preference CAMERA_SWITCH by bottom sheets #338

Closed reger24 closed 1 year ago

reger24 commented 1 year ago

updated solution for closed pr https://github.com/isl-org/OpenBot/pull/332 to remember selected camera lens facing between AI screens and app restarts.

with following changes

  1. using existing CAMERA_SWITCH setting as init value by all AI bottom sheets
  2. let all bottom sheets write back CAMERA_SWITCH changes (as currently DefaultActivity does)