dji-sdk / RoboMaster-SDK

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

Fix errors during robot initialization when robot is unreachable #42

Closed sascha-jopen closed 2 years ago

sascha-jopen commented 3 years ago

Hi,

when initializing a Robomaster EP robot, which is actually unreachable, the current SDK crashes with various errors, which have been fixed by this pull request.

One error was due to an incorrectly written constant, another one due to wrong python exception raising syntax.

The remaining error were caused by only partially initialized member variables when the code could not establish a connection to the robot.

Please consider these fixes for an update for a better user experience when using the SDK.

Regards, Sascha