Where does the april tag localization change the drone position being sent to the pixhawk to affect the error signal of target-position? I will need to use this position so I can correctly offset my path starting point
The setpoints are are sent to uart_mavlink.c where they are transformed by
geometry_transform_fixed_setpoints_to_local where the april tag transformation matrix is used to convert from fixed to local frame, which is sent off to the pixhawk. If no april tags are used local_frame == fixed_frame
Does the px4 expect path in the same reference frame as vio state (ie position in world coordinates, velocities in body frame?)
px4 expects setpoints in local frame, but offboard figure eight assumes they are set in fixed frame (see above).
Please correct me if I am wrong here.
Cheers