raptor-ethz / raptor

ROS 2 workspace for handling communication and control with a mavlink-quadrotor-system using PX4.
1 stars 0 forks source link

GoToPos: low time parameter can fail the task #2

Closed mbloechli closed 1 year ago

mbloechli commented 1 year ago

If I use goToPos(0, 1000, 2, 0, 10) the function will stop the function, because the time of 20ms is not enough time for the drone to reach that position. Additionally there is no warning message to the user that the target position wasn't reached because the time parameter was too low I propose to either make a warning message that tells the user that the function stopped because the time wasn't enough or to make the possibility to use the function without a time parameter. For example goToPos(0, 1000, 2, 0) would just make the drone go to that position and as soon as the drone stops oscillating more than e.g. 5cm the function will end.

mbloechli commented 1 year ago

This bug will be solved with issue 13