Skip to content

Commit

Permalink
Change GPS assist default to off
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Menzies committed May 12, 2018
1 parent 25443ec commit b773335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/Quadcopter.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,14 @@ namespace Platform {
*/
settings.attach(30, 15.0f, [](float g){ magneticDeclination = toRad(g); });

/*AIRSETTING index="31" name="GPS assist" min="0" max="1" def="1"
/*AIRSETTING index="31" name="GPS assist" min="0" max="1" def="0"
* Set to 1 to enable gps loitering when flying in assisted mode with
* the pitch/roll commands centered.
* Set to 0 to disable gps loitering; the pilot retains complete
* control of pitch and roll when in assisted mode, with the processor
* only stabilizing the altitude autonomously
*/
settings.attach(31, 1.0f, [](float g){ gpsAssist = (g != 0.0f); });
settings.attach(31, 0.0f, [](float g){ gpsAssist = (g != 0.0f); });

/*AIRSETTING index="32" name="Auto Descent Rate" min="0" max="+inf" def="1"
* The desired descent rate in feet per second for the quadcopter to
Expand Down

0 comments on commit b773335

Please sign in to comment.