Controlling drone using PC keyboard

Hello,

I am looking for advice for flying my drone using the keyboard on a PC connected via WiFi to the drone which will have an ESP32 with dronebridge. For context, it is supposed to be an autonomous drone but I would like to have some manual control override using the PC groundstation in case something goes wrong as I may not have an RC TX always handy.

I just want to make sure I have all failsafes set up correctly and have stuff like emergency land or something in case the drone goes haywire.

Thanks

you could use Vjoy - create a virtual game controller and then map that to the drone in mission planner.

Joystick/Gamepad — Copter documentation

1 Like

Is there an alternative for Linux?

QGC runs on Linux and has a virtual joystick.

1 Like

Will I be able to use it as an emergency override in case my autonomous mavlink script malfunctions?

I don’t know. Sounds easy enough to test.

1 Like

Seems like that is only available on the mobile version or for PX4 autopilots.

EDIT: Sorry, I found it

For now I am using Remote Gamepad app with which you can use your phone as a gamepad connected to your PC. The problem with the virtual joystick on QGC’s Android version is that you can’t use both sticks at the same time as QGC thinks its a zoom in/out command on the map. But I guess it can be used for quick overrides in an emergency situation where you only use one stick to avoid a crash into a wall or something.

Both sticks work if you switch to the video view. Please report the bug to the QGC team (GitHub issue).

Have to check this out. Does video view work without a camera?

Yes. Just tested that on my phone.

1 Like