These are chat archives for dronekit/dronekit-android

23rd
Dec 2015
buqing2009
@buqing2009
Dec 23 2015 13:20
@chaviw I get no response in onSuccess , onErrorand onTimeoutafter i call manualControl, i have tested other functions successfully in ControlAPI, such as goTo, takeoff
@chaviw Only this function didn't work, others can have react in SITL
buqing2009
@buqing2009
Dec 23 2015 13:37
if anyone used manualControl successfully, please paste the example code, thank you very much
chaviw
@chaviw
Dec 23 2015 17:53

I’ve been using manualControl successfully

ControlApi controlApi = ControlApi.getApi(drone);
controlApi.enableManualControl(true, new ControlApi.ManualControlStateListener() {
     @Override
     public void onManualControlToggled(boolean enabled) {
          if (enabled) {
               //manual control is enabled
               controlApi.manualControl(velocityX, velocityY, 0, null);
          }
     }
});

I’m not using the callback for manualControl but my vehicle is moving

Fredia Huya-Kouadio
@ne0fhyk
Dec 23 2015 21:49
@buqing2009 what's the autopilot and version you're running in sitl?