These are chat archives for dronekit/dronekit-android

16th
Dec 2016
Bill Bonney
@billbonney
Dec 16 2016 05:58
@wyq200704 This PR contains the fix to use the new mavlink generated lib
dronekit/dronekit-android#465
@mismyname93 Welcome!
AndiSuryaR
@AndiSuryaR
Dec 16 2016 06:21

Hello I have some problem with manualControl, when i use climbTo for setting altitude it can work but when i use manualControl it doesnt work, i dont know what wrong about my code, someone can help me? and this my code :

case AttributeEvent.STATE_VEHICLE_MODE:
updateMode();
State vehicleState = this.drone.getAttribute(AttributeType.STATE);
VehicleMode vehicleMode = vehicleState.getVehicleMode();
if (vehicleMode==VehicleMode.COPTER_GUIDED){
ControlApi.getApi(this.drone).climbTo(3);
tidur(50000);//delay
ControlApi.getApi(this.drone).climbTo(2);
tidur(50000);//delay
ControlApi.getApi(this.drone).enableManualControl(true,null);
ControlApi.getApi(this.drone).manualControl(1f,0,0,null);
}

@billbonney @ne0fhyk @pablomar13
AndiSuryaR
@AndiSuryaR
Dec 16 2016 15:03
do u mean if i give an input 1f on vx that's a pitch 90deg ? i thought if i give an input on vx by 1f, my drone is going to move forward (pitch) 1m/s velocity @billbonney