Inconsistent simulation with MSDK SimulatorManager.enableSimulator versus DJI Assistant 2 (Enterprise Series)
CompletedI'm trying to run some tests using the MSDK v5. In order to run my tests I want to do so via simulator. I found that using DJI Assistant 2 on OSX will work for these cases, however i'd prefer if I can just programmatically turn on simulation to remove the manual effort and speed up my development.
My test is fairly simple right now:
FlightControllerKey.KeyHomeLocation.create().set(...)
WaypointMissionManager.getInstance().pushKMZFileToAircraft(...)
WaypointMissionManager.getInstance().startMission(...)
As I mentioned these work fine with the Assistant app, however if I try to run
val settings = InitializationSettings.createInstance(LocationCoordinate2D(0.00000000,0.00000000), 20)
SimulatorManager.getInstance().enableSimulator(settings, callback)
instead of doing all the setup to run assistant on my machine the simulator API says that enable was successful. However trying to set home location to the same Lat/Long returns
ErrorImp{errorType='CORE', errorCode='SET_HOME_LOCATION_DIS_TOO_FAR', innerCode='', description='null', hint='error code = -516'}
Is there some other way to acchieve this? as I'd eventually like to be able to invoke some other APIs to perform return home and run different features in my test suite.
Please sign in to leave a comment.
Comments
1 comment