FAQ's Installation and Upgrade - pulquero/RotorHazard GitHub Wiki

Installation

To install RotorHazard on a new system, see the Quick Start instructions below, or in Software Setup.md

Quick start

Use the commands below to install or update an existing RotorHazard-BetaHazard installation to this version. (Before updating, any currently-running RotorHazard server should be stopped.)

cd ~ mv RotorHazard-BetaHazard RotorHazard-BetaHazard.old wget https://codeload.github.com/Pulquero/RotorHazard/zip/BetaHazard -O temp.zip unzip temp.zip rm temp.zip cp RotorHazard-BetaHazard.old/src/config.json RotorHazard-BetaHazard/src/ cp RotorHazard.old/src/database.db RotorHazard-BetaHazard/src/ The previous installation ends up in the 'RotorHazard-BetaHazard.old' directory, which may be deleted or moved.

The minimum version of Python supported is 3.5. If your Python is older than this, you should upgrade using the steps in the Software Setup document under "5. Install Python."

The RotorHazard server dependencies should also be updated (be patient, this command may take a few minutes):

To install/upgrade:

Run the install.sh script in src folder (designed for Raspberry Pi Raspbian only)

./install.sh

(Can take a long time if your system is out-of-date).

To run the server:

cd src
python3 -m rh.server

To run the scanner tool:

cd src
python3 -m rh.tools.scanner COM3

To run the RSSI dump tool:

cd src
python3 -m rh.tools.rssi_dump COM3 5890

To run the tests:

cd src
python3 -m unittest discover

Node tuning/calibration

In the Settings page:

  • turn-off AI calibration,
  • turn-on auto-calibration,
  • turn-off adaptive calibration.

Run a race, marshal the laps so they are correct, hit Commit Changes. The enter/exit levels should now have been adjusted.

RotorHazard Node Code

Upgrade Node code as necessary (see the /src/node folder). You need an IDE software like Arduino IDE or PlatformIO to compile and upload the firmware. At present, RH-OTA doesn't work with this Pulquero fork.