Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Cloning Instructions (tested on Linux):
It is assumed that you have a working development environment:
git  clone  https://bitbucket.org/TheOtherCliff/librepilot.git  autotune
cd  autotune
git  checkout  theothercliff/LP-76_Port_Autotune_from_dRonin
git  checkout   theothercliff/LP-340_AutoTune_fix_some_time_measurement_issues_in_original_code
make  build_sdk_install   (I avoid this by sym linking my global downloads and tools directories into this directory, so whatever you need to do for downloads and tools)
nice -n15 make  -j4  gcs  revolution  revonano   (the 4 is however many real CPU cores you have to keep all of them busy, it still works even if it is wrong)  (gcs might take 30 minutes to build)  (or remove 'nice -n15' which says to run it at low priority in case you want to do something else with the computer while it is making the software)
./build/librepilot-gcs_release/bin/librepilot-gcs   (runs the GCS that you just built) (in Linux that is ./b <tab> l (lower case L) <tab> b <tab> <tab>)

Updating an old clone (tested on Linux):
This branch has recently been rebased onto next and uploaded with push -f.  That means you will have problems if you originally started from the version before the rebase.  One easy way around that is to delete the old directory and clone again, but that means you will re-download the whole thing again.  Another way (assumes origin is https://bitbucket.org/TheOtherCliff/librepilot.git) is to:
git merge --abort
git checkout origin/next
git branch -D theothercliff/LP-340_AutoTune_fix_some_time_measurement_issues_in_original_code
git fetch origin
git checkout -t origin/theothercliff/LP-340_AutoTune_fix_some_time_measurement_issues_in_original_code
make all_clean

make  build_sdk_install   (I avoid this by sym linking my global downloads and tools directories into this directory, so whatever you need to do for downloads and tools)
nice -n15 make  -j4  gcs  revolution  revonano   (the 4 is however many real CPU cores you have to keep all of them busy, it still works even if it is wrong)  (gcs might take 30 minutes to build)  (or remove 'nice -n15' which says to run it at low priority in case you want to do something else with the computer while it is making the software)
./build/librepilot-gcs_release/bin/librepilot-gcs   (runs the GCS that you just built) (in Linux that is ./b <tab> l (lower case L) <tab> b <tab> <tab>)

With GCS running and firmware built, go to the Firmware page, press Halt.  Wait about 15 seconds for the Flash button to appear.  Also, it should automatically select firmware that matches your flight controller.  Press Flash.  You will also have to erase settings and run the setup wizard again.  With that complete, you need to do your calibrations before anything else.

...