Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAV_LAUNCH: add min time before leaving #2677

Merged
merged 2 commits into from
Feb 1, 2018

Conversation

shellixyz
Copy link
Collaborator

When I'm launching my big wings I often do a over head launch using two hands. Before this patch I was laying my remote control down on the ground so that I could not accidentally bump the roll/pitch stick making the wing leave launch mode prematurely. This patch adds a delay after launch during which launch mode can't be interrupted by the roll/pitch stick. If the aircraft is going to crash or has crashed during the delay the user can still disarm or put the throttle to 0 to stop the motor(s).

This adds the new setting nav_fw_launch_min_time representing the described delay in milliseconds set by default to 0.

@digitalentity digitalentity added this to the 1.9 milestone Jan 23, 2018
Copy link
Member

@digitalentity digitalentity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than indentation issue - approved.

@@ -155,6 +155,7 @@ typedef struct navConfig_s {
uint16_t launch_throttle; // Launch throttle
uint16_t launch_motor_timer; // Time to wait before setting launch_throttle (ms)
uint16_t launch_motor_spinup_time; // Time to speed-up motors from idle to launch_throttle (ESC desync prevention)
uint16_t launch_min_time; // Minimum time in launch mode to prevent possible bump of the sticks from leaving launch mode early
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the indentation

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I need to change my auto-indentation settings for iNav.

@digitalentity digitalentity merged commit 9b4a217 into iNavFlight:development Feb 1, 2018
@shellixyz shellixyz deleted the nav_launch_min_time branch February 3, 2018 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants