Cancel mission upload and download now working currently
douglaswsilva opened this issue ยท 4 comments
I'm testing the latest SDK with latest firmwares and it seems that this got broken.
I call the .cancelMissionUpload()
command, but it doesn't cancel and there's no callback until the mission finishes uploading. Then I get this:
[05:31:58|Debug] Send mission item 87 (mission_impl.cpp:1118)
[05:31:58|Debug] Send mission item 87 (mission_impl.cpp:1118)
[05:31:58|Debug] Send mission item 87 (mission_impl.cpp:1118)
[05:31:58|Debug] Send mission item 87 (mission_impl.cpp:1118)
[05:31:58|Debug] Send mission item 87 (mission_impl.cpp:1118)
[05:31:58|Debug] Send mission item 87 (mission_impl.cpp:1118)
[05:31:58|Debug] Send mission item 87 (mission_impl.cpp:1118)
[05:31:58|Debug] Send mission item 87 (mission_impl.cpp:1118)
[05:31:58|Info ] Mission accepted (mission_impl.cpp:165)
17:31:58.041 ๐ฐ [DroneIntegrationTestViewController.swift:136 uploadMission()]: +DIT+ Mission Uploaded.
[05:31:58|Warn ] No mission upload in progress (mission_impl.cpp:398)
17:31:58.052 ๐ฐ [DroneIntegrationTestViewController.swift:149 cancelMissionUpload()]: +DIT+ Mission Canceled.
Thanks for the report. I'll check that. Are you testing that against H520 with current firmware?
I'm actually quite confused about this one because we have an integration test that tests mission cancel in CI ๐ค .
Hm, I wonder if it could be something on our side or the firmware side. I'm going to test it in SITL and see what I get. Thanks for letting me know.
UPDATE: It seems that something broke the background scheduler we use to subscribe to cancelMissionUpload
in our app, which might be causing the problem. I'm going to test more now subscribing in different threads and see what I get and let you know.
Yep, changing the scheduler for cancelMissionUpload.subscribeOn(scheduler)
fixed it.
Thanks for the reply! Closing.