dji-sdk / RoboMaster-SDK

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

Robot enters a weird state if you forget the semicolon. #21

Open brunoga opened 4 years ago

brunoga commented 4 years ago

1 - Run the rm_sdk.py sample code. 2 - Try to enter SDK mode but do not put the semicolon at the end.

$ python3 rm_sdk.py Connecting... Connected!

please input SDK cmd: command

It will get stuck here the only option is to use CTRL+C.

3 - Run rm_sdk.py again. 2 - Now try to enter SDK mode but do include the semicolon.

$ python3 rm_sdk.py Connecting... Connected!

please input SDK cmd: command;

Unexpectedly, it is still stuck. It I do CTRL+C again and try another time, then things work. It looks like the missing semicolon gets the SDK in a weird state that is not immediately resolved when you close the connection.