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.
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.