Skip to content

Commit c71921c

Browse files
authored
Add documentation for forcing OD UI (#2018)
1 parent ee4501f commit c71921c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/source/docs/contributing/building-photon.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,9 @@ Using the [GitHub CLI](https://cli.github.com/), we can download artifacts from
275275
MacOS builds are not published to releases as MacOS is not an officially
276276
supported platform. However, MacOS builds are still available from the MacOS
277277
build action, which can be found [here](https://github.com/PhotonVision/photonvision/actions/workflows/build.yml).
278+
279+
#### Forcing Object Detection in the UI
280+
281+
In order to force the Object Detection interface to be visible, it's necessary to hardcode the platform that `Platform.java` returns. This can be done by changing the function that detects the RK3588S/QCS6490 platform to always return true, and changing the `getCurrentPlatform()` function to always return the RK3588S/QCS6490 architecture.
282+
Alternatively, it's possible to modify the frontend code by changing all instances of `useSettingsStore().general.supportedBackends.length > 0` to `true`, which will force the card to render.
283+
Make sure to revert these changes before submitting a Pull Request.

0 commit comments

Comments
 (0)