Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit b864c30

Browse files
authored
Fix install documentation (#242)
* update installation docs * update installation instructions * update jdk reccomendation * linter
1 parent 0cf0d49 commit b864c30

File tree

10 files changed

+54
-16
lines changed

10 files changed

+54
-16
lines changed

source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# -- Project information -----------------------------------------------------
1818

1919
project = 'PhotonVision'
20-
copyright = '2021, PhotonVision'
20+
copyright = '2023, PhotonVision'
2121
author = 'Banks Troutman, Matt Morley'
2222

2323
# -- General configuration ---------------------------------------------------

source/docs/getting-started/installation/sw_install/gloworm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Updating PhotonVision
4040
---------------------
4141
Download the latest stable .jar from `the releases page <https://github.com/PhotonVision/photonvision/releases>`_, go to the settings tab, and upload the .jar using the Offline Update button.
4242

43-
.. note:: If you are updating PhotonVision on a Raspberry Pi, download the .jar file that has "raspi" in the name. Otherwise, download the .jar file without "raspi" in the name.
43+
.. note:: If you are updating PhotonVision on a Gloworm/Limelight, download the LinuxArm64 .jar file.
4444

4545
As an alternative option - Export your settings, reimage your coprocessor using the instructions above, and import your settings back in.
4646

source/docs/getting-started/installation/sw_install/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ Other
3131
other-coprocessors
3232
advanced-cmd
3333
romi
34+
orange-pi

source/docs/getting-started/installation/sw_install/linux-pc.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PhotonVision may be run on a Debian-based Linux Desktop PC for basic testing and
44

55
Installing Java
66
---------------
7-
PhotonVision requires a JDK installed and on the system path. JDK 11 is needed (different versions will not work). You may already have this if you have installed WPILib. If not, run the following to install it:
7+
PhotonVision requires a JDK installed and on the system path. JDK 11 is needed (different versions will not work). If you don't have JDK 11 already, run the following to install it:
88

99
.. code-block::
1010
@@ -14,9 +14,13 @@ PhotonVision requires a JDK installed and on the system path. JDK 11 is needed (
1414

1515
Downloading the Latest Stable Release of PhotonVision
1616
-----------------------------------------------------
17-
Download the latest stable .jar of PhotonVision from the `GitHub releases page <https://github.com/PhotonVision/photonvision/releases>`_.
17+
Go to the `GitHub releases page <https://github.com/PhotonVision/photonvision/releases>`_ and download the relevant .jar file for your coprocessor.
18+
19+
.. note::
20+
If your coprocessor has a 64 bit ARM based CPU architecture (OrangePi, Raspberry Pi, etc.), download the LinuxArm64.jar file.
21+
22+
If your coprocessor has an 64 bit x86 based CPU arcitecture (Mini PC, laptop, etc.), download the Linuxx64.jar file.
1823

19-
.. note:: Be sure not to download the .jar file with "-raspi" at the end as that is specifically meant for Raspberry Pi coprocessors.
2024

2125
.. warning:: Be careful to pick the latest stable release. "Draft" or "Pre-Release" versions are not stable and often have bugs.
2226

source/docs/getting-started/installation/sw_install/mac-os.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ PhotonVision requires a JDK installed and on the system path. JDK 11 is needed (
1313

1414
Downloading the Latest Stable Release of PhotonVision
1515
-----------------------------------------------------
16-
Download the latest stable .jar of PhotonVision from the `GitHub releases page <https://github.com/PhotonVision/photonvision/releases>`_.
16+
Go to the `GitHub releases page <https://github.com/PhotonVision/photonvision/releases>`_ and download the relevant .jar file for your coprocessor.
1717

18-
.. note:: Be sure not to download the .jar file with "-raspi" at the end as that is specifically meant for Raspberry Pi coprocessors.
18+
.. note::
19+
If you have an M1/M2 Mac, download the macarm64.jar file.
20+
21+
If you have an Intel based Mac, download the macx64.jar file.
1922

2023
.. warning:: Be careful to pick the latest stable release. "Draft" or "Pre-Release" versions are not stable and often have bugs.
2124

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Orange Pi Installation
2+
======================
3+
4+
Downloading Armbian Bullseye CLI
5+
--------------------------------
6+
Download the latest release of the Armbian Bullseye CLI image from `here <https://redirect.armbian.com/region/NA/orangepi4-lts/Bullseye_current>`_.
7+
8+
9+
Flashing the Pi Image
10+
---------------------
11+
An 8GB or larger SD card is recommended.
12+
13+
Use `Balena Etcher <https://www.balena.io/etcher/>`_ to flash an image onto a Orange Pi. Select the downloaded ``.zip`` file, select your microSD card, and flash.
14+
15+
For more detailed instructions on using Etcher, please see the `Etcher website <https://www.balena.io/etcher/>`_.
16+
17+
.. warning:: Using an older version of Balena Etcher may cause bootlooping (the system will repeatedly boot and restart) when imaging your Raspberry Pi. Updating to the latest Balena Etcher will fix this issue.
18+
19+
Initial Setup
20+
-------------
21+
Insert the flashed microSD card into your Orange Pi and boot it up. The first boot may take a few minutes as the Pi expands the filesystem. Be sure not to unplug during this process.
22+
23+
Plug your Orange Pi into a display via HDMI and plug in a keyboard via USB once its powered up. Complete the initial set up which involves creating a root password and adding a user, as well as setting localization language. Additionally, choose “bash” when prompted.
24+
25+
Installing PhotonVision
26+
-----------------------
27+
From here, you can follow :ref:`this guide <docs/getting-started/installation/sw_install/other-coprocessors:Installing Photonvision>`.

source/docs/getting-started/installation/sw_install/other-coprocessors.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Other Debian-Based Co-Processor Installation
55

66
.. note:: We'd love to have your input! If you get PhotonVision working on another coprocessor, consider documenting your steps and submitting a `docs issue <https://github.com/PhotonVision/photonvision-docs/issues>`_., `pull request <https://github.com/PhotonVision/photonvision-docs/pulls>`_ , or `ping us on Discord <https://discord.com/invite/wYxTwym>`_. For example, Limelight and Romi install instructions came about because someone spent the time to figure it out, and did a writeup.
77

8+
Installing PhotonVision
9+
-----------------------
10+
811
We provide an `install script <https://git.io/JJrEP>`_ for other Debian-based systems (with ``apt``) that will automatically install PhotonVision and make sure that it runs on startup.
912

1013
.. code-block:: bash
@@ -32,3 +35,5 @@ For example, from another Linux computer, run the following:
3235
$ sudo systemctl stop photonvision.service
3336
$ sudo mv [jar name].jar /opt/photonvision/photonvision.jar
3437
$ sudo systemctl start photonvision.service
38+
39+

source/docs/getting-started/installation/sw_install/raspberry-pi.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ A Pre-Built Raspberry Pi image is available for ease of installation.
44

55
Downloading the Pi Image
66
------------------------
7-
Download the latest release of the PhotonVision Pi image from the `releases page <https://github.com/PhotonVision/photonvision/releases>`_. You do not need to extract the downloaded ZIP file.
7+
Download the latest release of the PhotonVision Raspberry image from the `releases page <https://github.com/PhotonVision/photonvision/releases>`_. You do not need to extract the downloaded ZIP file.
8+
9+
.. note:: Make sure you download the image that ends in '-raspi' or '-RasberryPi'.
810

911
Flashing the Pi Image
1012
---------------------
@@ -37,6 +39,6 @@ Once you find it, set the IP to a desired :ref:`static IP in PhotonVision. <docs
3739
Updating PhotonVision
3840
---------------------
3941

40-
Download the latest stable Raspberry Pi .jar (appended with -raspi at the end) from `our releases page <https://github.com/PhotonVision/photonvision/releases>`_, go to the settings tab, and upload the .jar using the Offline Update button.
42+
Download the latest stable xxxxx-LinuxArm64.jar from `our releases page <https://github.com/PhotonVision/photonvision/releases>`_, go to the settings tab, and upload the .jar using the Offline Update button.
4143

4244
As an alternative option - Export your settings, reimage your coprocessor using the instructions above, and import your settings back in.

source/docs/getting-started/installation/sw_install/snakeyes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Once you find it, set the IP to a desired :ref:`static IP in PhotonVision. <docs
3434

3535
Updating PhotonVision
3636
----------------------
37-
Download the latest stable Raspberry Pi .jar (appended with -raspi at the end) from `our releases page <https://github.com/PhotonVision/photonvision/releases>`_, go to the settings tab, and upload the .jar using the Offline Update button.
37+
Download the latest xxxxx-LinuxArm64.jar from `our releases page <https://github.com/PhotonVision/photonvision/releases>`_, go to the settings tab, and upload the .jar using the Offline Update button.
3838

3939
As an alternative option - Export your settings, reimage your coprocessor using the instructions above, and import your settings back in.
4040

source/docs/getting-started/installation/sw_install/windows-pc.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,15 @@ PhotonVision requires a JDK installed and on the system path. **JDK 11 is needed
1010

1111
Downloading the Latest Stable Release of PhotonVision
1212
-----------------------------------------------------
13-
Download the latest stable .jar of PhotonVision from the `GitHub releases page <https://github.com/PhotonVision/photonvision/releases>`_.
14-
15-
.. note:: Be sure not to download the .jar file with "-raspi" at the end as that is specifically meant for Raspberry Pi coprocessors.
16-
17-
.. warning:: Be careful to pick the latest stable release. "Draft" or "Pre-Release" versions are not stable and often have bugs.
13+
Go to the `GitHub releases page <https://github.com/PhotonVision/photonvision/releases>`_ and download the winx64.jar file.
1814

1915
Running PhotonVision
2016
--------------------
2117
To run PhotonVision, open a terminal window of your choice and run the following command:
2218

2319
.. code-block::
2420
25-
> java -jar C:\path\to\photonvision\photonvision-xxx.jar
21+
> java -jar C:\path\to\photonvision\NAME OF JAR FILE GOES HERE.jar
2622
2723
If your computer has a compatible webcam connected, PhotonVision should startup without any error messages. If there are error messages, your webcam isn't supported or another issue has occurred. If it is the latter, please open an issue on the `PhotonVision issues page <https://github.com/PhotonVision/photonvision/issues>`_.
2824

0 commit comments

Comments
 (0)