Unexpected behavior with raw trajectories #968
-
Hello! I have 7 different turning trajectories in the raw format. My goal is to chain them (one after another) for navigation. Here is the trajectory I am flying:
And the command to fly the same trajectory twice:
However, I am having 2 problems:
Is there a limitation against using the commander framework, and the high-level commander framework, simultaneously? For example, this causes an error: (using both
Any ideas that might help to fix these issues are greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think the simple answer is that the
It depends on which controller you use, I guess you use the PID controller? The high level commander generates setpoints with position, velocity and acceleration, but the PID controller does not use all the data, it also has an upper limit (1.0 m/s by default I think) for speed.
Not really but it adds a bit of complexity. The idea is that setpoints that do not originate in the high level commander have higher priority than the HL commander setpoints, the thinking is that a user should be able to "take over" and fly manually with a game pad if needed. When a low level setpoit has been received, the firmware will not use the high level commander until it is explicitly enabled again by calling As a side note: the questions in this discussion are both related to trajectories, but are otherwise not not that similar. It would probably have been better to use two discussions instead, please see the Discussion rules |
Beta Was this translation helpful? Give feedback.
I think the simple answer is that the
relative
only is used for the position and not the yaw. You can check out the implementation in the firmware where the trajectory is startedIt depends on which controller you use, I guess you use the PID controller? The high level commander generates setpoints with position, velocity and acceleration, but the PID controller does not use all the data, it also has an upper lim…