dji-sdk / RoboMaster-SDK

DJI RoboMaster Python SDK and Sample Code for RoboMaster EP.
Apache License 2.0
327 stars 151 forks source link

sub_position and sub_velocit always reutrn 0 for the Z Component #39

Open steroido92 opened 3 years ago

steroido92 commented 3 years ago

The functions sub_position and sub_velocity will always return 0 for the Z component even when the robot is rotating.

It this an Software issue or is the Hardware not able to deliver these values ?

@xitinglin-dji @grwhale.zhang

Lucas-vdr-Horst commented 2 years ago

If you want the z component of the position, aka the angle of the chassis, you can work around it, by using .gimbal.sub_angle(...) and subtracting yaw_ground_angle - yaw_angle. Then you have the chassis angle in degrees

HARRRLAN commented 1 year ago

Did you found a solution for that problem? I got teh same problem today. The alternative way with the gimbal also don't work. Maybe because I don't have a gimbal installed.