Skip to content

Adjustable control smoothness for fixed wing navigation#5655

Merged
digitalentity merged 7 commits into
iNavFlight:developmentfrom
harkal:adjustable_control_smoothness
May 4, 2020
Merged

Adjustable control smoothness for fixed wing navigation#5655
digitalentity merged 7 commits into
iNavFlight:developmentfrom
harkal:adjustable_control_smoothness

Conversation

@harkal

@harkal harkal commented Apr 30, 2020

Copy link
Copy Markdown
Contributor

This adds a dynamic smoothness control in the fixed wing navigation code. More specifically it adds the configuration variable nav_fw_control_smoothness.

The accepted values range from 0 to 9, with zero the defaulting to the original iNav behaviour. Increasing the nav_fw_control_smoothness value causes iNav to filter more aggressively the roll and pitch commands in navigation modes.

This results in less abrupt and jerky movements when engaging RTL for example. The turn is applied much smoother and resembles more what a human pilot would command with the stick.

Comment thread src/main/navigation/navigation_fixedwing.c Outdated
Comment thread src/main/navigation/navigation.c

@digitalentity digitalentity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@digitalentity digitalentity added this to the 2.5 milestone May 1, 2020
@digitalentity digitalentity merged commit 1df52a9 into iNavFlight:development May 4, 2020
@harkal harkal deleted the adjustable_control_smoothness branch May 4, 2020 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants