How to control drone with controller withmavlink

How do I get started with this? What code do I need to have?

You can use a library like MAVSDK.