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

Z-coordinate in frame "terrain" overridden by navigate with z=float('NaN') #13

Open
timkondratiev opened this issue Mar 15, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@timkondratiev
Copy link
Member

Problem occurred a few times, but I can no longer recreate it.

Example code:

set_altitude(z=2, frame_id='terrain')
rospy.sleep(4)
navigate(x=2, y=0, z=float('NaN'), frame_id='body', auto_arm=True)

Expected /simple_offboard/state topic data:

...
xy_frame_id: "map"
z_frame_id: "terrain"
yaw_frame_id: "map"

Actual /simple_offboard/state topic data:

...
xy_frame_id: "map"
z_frame_id: "map"
yaw_frame_id: "map"
@timkondratiev timkondratiev added the bug Something isn't working label Mar 15, 2023
@timkondratiev timkondratiev added this to the v1.4 milestone Mar 15, 2023
@okalachev
Copy link
Member

Confirmed.

@okalachev
Copy link
Member

The problem was is that the last remembered setpoint was reset to the current position if auto_arm parameter is True.

I changed this behavior to mode complex: it only happens only if auto_arm parameter actually has come effect (drone is not armed or not in the offboard mode).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants