Set Acceleration and Yaw simultaniously with Offboard

Hello,

i am trying to set acceleration and yaw at the same time with ’ set_position_velocity_acceleration_ned()’ but i dont want to set position and velocities.
When providing an empty struct for the fields i want to leave out the velocities are set to zero and using a combination of ’ set_acceleration_ned()’ and ‘set_velocity_ned()’ didnt work either.
Is there a proper way to send acc and yaw commands at the same time?

Edit: I guess it would be best to set the type bitmask accordingly in a ‘SET_POSITION_TARGET_LOCAL_NED’ message. Can this be done in mavsdk::Offboard or is it better to send the message via passthrough plugin?

Kind Regards!

For unused section use “= float(“nan”)”. You have an example here:

2 Likes

Hi,
Setting the yaw in PositionNedYaw and everything else to NaN did work. But setting only yaw in VelocityNedYaw didnt have any effect strangely.
However, it is a working solution.

Many thanks!