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

MAV_FRAME_LOCAL_FRD not working #916

Open
pd3a opened this issue Feb 2, 2024 · 0 comments
Open

MAV_FRAME_LOCAL_FRD not working #916

pd3a opened this issue Feb 2, 2024 · 0 comments

Comments

@pd3a
Copy link

pd3a commented Feb 2, 2024

I have tried sending velocity (forward, right, down) using send_ned_vel(v_x,v_y,v_z) and frame of MAV_FRAME_LOCAL_FRD but the vehicle is not changing vehicle.attitude.yaw. Please help how i can change my vehicle heading using velocity inputs. I have tried in both LOCAL_NED frame and GLOBAL_NED frame. The drone moves in the defined heading but the drone's attitude is not changing.
This is the command i used.
def send_ned_velocity(v_x,v_y,v_z):
msg = vehicle.message_factory.set_position_target_local_ned_encode(
0, # time_boot_ms (not used)
0, 0, # target system, target component
mavutil.mavlink.MAV_FRAME_LOCAL_FRD, # frame
0b0000111111000111, # type_mask (only speeds enabled)
0, 0, 0, # x, y, z positions (not used)
v_x, v_y, v_z, # x, y, z velocity in m/s
0, 0, 0, # x, y, z acceleration (not supported yet, ignored in GCS_Mavlink)
0, 0) # yaw, yaw_rate (not supported yet, ignored in GCS_Mavlink)
vehicle.send_mavlink(msg)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant