Waypoint Follower and vertical guidance

6 visualizzazioni (ultimi 30 giorni)
Giuseppe Paganino
Giuseppe Paganino il 6 Dic 2022
Commentato: Jianxin Sun il 7 Dic 2022
Hello,
I am trying to create a multirotor model for my Master thesis. My model is mainly inspired by the one in the Package Delivery example (so i have a Path Manager forwarding a waypoint to the Waypoint follower and so on).
In my model the Path Manager forwards the "To" Waypoint to the Waypoint Follower; however the WF outputs a "z" coordinate for the Lookahead Point which is not consistent with the one I am expecting: in particular it shows a strange behaviour, like being constantly increasing/decreasing (the UAV follows the LAP faithfully), or "dropping" when reaching a waypoint. On the other hand, the horizontal part of the LAP (coordinates x and y) behave as expected.
I have tried to read the documentation, the referenced article and also the actual code which generates the LAP coordinates to no avail.
In the following picture I show the results of a sample run: the black line represents the output of the path manager (consistent with my waypoint definition), the yellow line is the output of the waypoint follower (which does not even try to oscillate around -40, it simply goes on) and the green line is the actual trajectory.
Is there something I am missing?
Thanks in advance to all who will reply.
GP
  3 Commenti
Giuseppe Paganino
Giuseppe Paganino il 7 Dic 2022
Hello Jianxin, thanks for your kind reply. The following image contains my set of waypoints. The transition radius is set to 1.
/tmp/Spectacle.HDuHCZ/Screenshot_20221207_182842.png
Anyway, I just noticed that - as you suggest - both the "from" and "to" waypoints have to be forwarded to the WF and I currently discard the from one. May this be the problem with my model?
Thank you,
GP
Jianxin Sun
Jianxin Sun il 7 Dic 2022
For waypoint follower block, it needs at least two distinct waypoints to follow. Maybe consider start from adding two waypoints to the block.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by