Skip to content
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

Review /takeoff and /arm endpoints #84

Open
i25052i opened this issue May 16, 2024 · 2 comments · May be fixed by #96
Open

Review /takeoff and /arm endpoints #84

i25052i opened this issue May 16, 2024 · 2 comments · May be fixed by #96

Comments

@i25052i
Copy link
Contributor

i25052i commented May 16, 2024

Context

A while back in #61 and #63 we made it so the drone would take off immediately if armed when the /takeoff endpoint was called.

Recently, #67 altered mode-changing behavior during takeoff. Instead of setting the drone to AUTO and taking off on our own, we wait for the operator to set the drone to AUTO in the takeoff endpoint.

This means that the /takeoff endpoint now does not return a response until either the operator sets the mode, or the grace period expires. It can now take up to 15+ seconds in the worst case to return a response from this endpoint. This is necessary to return an indicator of whether the takeoff was successful.

Task

  • Investigate whether we should remove the feature of the /takeoff endpoint notifying callers of the takeoff's success in order to ensure the endpoint returns quickly.
  • Callers would have to check by themselves afterwards (such as looking at whether the drone's altitude has changed) to infer if the takeoff was successful.
@i25052i i25052i added Status: Available Issue can be picked up Type: Bug Something isn't working Priority: Medium Status: Revision Needed Changes are needed upon reviewing issue description or merge request code Type: Cleaning / Optimization and removed Type: Bug Something isn't working Status: Revision Needed Changes are needed upon reviewing issue description or merge request code labels May 16, 2024
@i25052i
Copy link
Contributor Author

i25052i commented May 16, 2024

Also:

@i25052i i25052i assigned i25052i and wtarit and unassigned wtarit and i25052i Sep 28, 2024
@i25052i
Copy link
Contributor Author

i25052i commented Oct 12, 2024

We have recently observed behavior where the simulated aircraft does not autonomously take off when the mode is set to AUTO (prerequisites of having a takeoff mission and being armed were satisfied). This turns out to have been a copter-specific issue - the takeoff procedure we established last year still works for plane SITL instances.

We will return to this issue after the requirements are better understood in #95.

@i25052i i25052i linked a pull request Oct 12, 2024 that will close this issue
14 tasks
@i25052i i25052i linked a pull request Oct 12, 2024 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants