-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
[WIP] Flight task auto #9253
[WIP] Flight task auto #9253
Conversation
* PID-controller for velocity. | ||
* Inputs: | ||
* vehicle position/velocity/yaw | ||
* desired set-point position/velocity/thrust/yaw/yaw-speed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the name desired to just setpoint
54c87c4
to
aaf1648
Compare
FlightTaskAuto: add type that corresponds to triplet type FligthTaskAuto: set all setpoints if invalid in xy FlightTaskAuto: cast triplet type to WaypointType FlightTaskAutoLine: class for px4 legacy auto FlightTaskAutoLine: methods prototype FlightTaskAuto: change sp to wp (=Waypoint) add params FlightTaskAutoLine: follow waypoints along line based on flight state
PositionControl: remove takeoff logic mc_pos_control: takeoff logic for flighttask mc_pos_control: smooth takeoff throttle start at 0
…lways prioritize velocity setpoint generated from position error over velocity feedforward
…f NOT in pure manual
aaf1648
to
b705ef5
Compare
…h ModuleParams type
…ethod that overwrites parameter values
@dagar I am not convinced anymore if we are able to have both legacy and flighttask present in the firmware at the same time due to flash issue. |
I will close this in favor of #9368 |
This moves the legacy MC-auto logic into a Flighttask.
Except of some user specific features (i.e. slowing down close to ground speed) and ekf related reference update handling, the MC auto-logic can be tested and compared to the legacy code.
In sitl it is also possible to switch between legacy and Flighttask. However, there is no guarantee of a smooth transition because of the various legacy flags that are not taken care of within Flighttask. Consequently, I suggest to NOT switch in flight between Flighttask and legacy during testing.
TODO: