The two code snippets you included are identical, with a target set to 10cm North of wherever you set the origin to. It’s also hard to interpret how the message is supposed to be configured when you’ve used a magic number for the POSITION_TARGET_TYPEMASK
bitmask, rather than spelling it out.
If you want to set a position target relative to the vehicle’s current position (instead of the autopilot’s global EKF origin, which can only be set once after each vehicle startup) you should be using MAV_FRAME_LOCAL_OFFSET_NED
.
Note also that