Add Support for Waypoints in Betaflight #12867
Replies: 3 comments 7 replies
-
https://github.com/iNavFlight/inav has this feature already. |
Beta Was this translation helpful? Give feedback.
-
Betaflight is an open source project and with the new cloud build we are able to implement more autonomous flight options. |
Beta Was this translation helpful? Give feedback.
-
The code should be wrapped in We should probably review the underlying implementation of the waypoint following and the interface to configure the waypoints separately. We can follow precedent set by INAV or Ardupilot or consider our own. Given the race bred nature of Betaflight it would be good to demonstrate this operating at speed. Clearly gates would have to be larger, possibly the size of soccer goals. I’m imagining recording a flight and then being able to accurately retrace the path repeatedly and consistently as an aid to tuning. |
Beta Was this translation helpful? Give feedback.
-
Introduction:
Hello Betaflight Maintainers,
I'm writing this discussions to propose the inclusion of waypoint functionality in Betaflight. This feature will enable pilots to set specific GPS coordinates as navigation targets, thus making longer autonomous flights possible.
Changes proposed in this PR:
Waypoints feature: The main change in this PR is the introduction of a waypoint system. The user can define waypoints through Betaflight Configurator, specifying latitude, longitude, and altitude for each point.
New waypoint-related CLI commands: CLI commands such as
set waypoint
andget waypoint
have been added to allow easy configuration of waypoints even without the GUI.Updated GPS handling: The existing GPS handler has been updated to interact with the waypoint system, allowing for autonomous navigation between set points.
Configurator GUI update: The Configurator interface has been updated to include a waypoint setting page, enabling easy setup and visualization of waypoints.
Why this change is necessary and useful:
Implementing waypoint functionality is useful for many reasons. First and foremost, it enables autonomous flight, allowing users to perform long-range missions or capture smooth cinematic footage without manual control. Additionally, waypoints can be used to implement fail-safe measures, such as returning to a home point if the connection is lost.
Waypoints are also a stepping stone to more advanced navigation features like path planning and obstacle avoidance. By supporting this functionality, Betaflight can maintain its competitive edge and continue to be a leader in the field of open-source drone software.
Possible drawbacks:
This PR may introduce complexity into the Betaflight codebase, as the waypoint system interacts with various other components like the GPS handler and the Configurator GUI. However, the proposed changes have been designed with simplicity and maintainability in mind to minimize the potential for bugs or maintenance issues.
Testing:
Before finalizing this PR, I have thoroughly tested the waypoint functionality on my own drones. I'm also seeking assistance from the Betaflight community for additional testing and feedback to ensure robustness and usability.
Conclusion:
By adding waypoint functionality to Betaflight, we will significantly enhance the user's ability to conduct autonomous flight missions. I believe this will be a significant value-add to Betaflight's users.
Looking forward to your feedback on this proposal.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions