Open ahmed-elsaharti opened 2 years ago
Agent comment from kyle.cai in Zendesk ticket #67905:
Dear developer ,
Thank you for contacting DJI.
Sorry for the inconvenience, you are right, after this modification, the definition of rotationMode needs to be changed, /*! rotation cooradiration
rotateAsync also needs to be fixed, we have submitted a request.
Thank you for your understanding and support, hope you have a nice day.
Best Regards,
DJI SDK Support Team
°°°
Hi folks! It seems like in the latest change to the rotateSync API, the logic mentioned in the code-comments was inverted.
According to the logic in rotateSync's definition , if
rotation.rotationMode
is set to 0,settings.reference
gets set to 1 and setting.coordinate is set to 0. This results in:settings.coordinate
= 0 -> use drone coordinate, reference bit will worksettings.reference
= 1 -> execute angle command based on current point. This would result in the gimbal moving relative to its previous location. However, the comment in the code suggests that whenrotation.rotationMode
is set to0
we should expectexecute angle command based on ground frame as the horizontal frame (NEU)
.Also, it looks like the change done in #797 was only added to
rotateSync
whilerotateAsync
still has the old logic.Thanks