I have been asked to create a custom device for a field deployment of a UAS. I need to manually trigger an air pump on the drone as the PIC. However, the drone my colleagues want me to fly is a DJI Matrice M300, and I have no experience with their programming environment. How do I create a bog-simple voltage trigger “hello world” from a button press sent to the UAS?
Why is this a SO question?
I have been scouring the internet, but the concept that I am looking for is either search-resistant or I am using the wrong terms. Most of the examples I see from the DJI PSDK community are:
- Complex applications which require interface with the avionics information,
- Complex applications involving gimbal operation,
- More concerned with data input (from a sensor or for an FPS) than signal output,
- Provide no information about the E-PORT/OSDK/SkyPort wiring and connection,
- Are a commercial application which has become a black box,
- A combination of multiple of the above.
What I have tried:
- SO searches with the
[dji-sdk]
tag - Github searches
- Duck Duck Go searches
- Thingiverse
The only things which came close are some examples on Thingiverse which avoid using the DJI programming for a simple trigger. Instead, they exploit LED activation using a photoresist to trigger the servo. This option doesn’t work for me, because this will be flown during hours which require the LEDs be used for their intended LOS tracking usage.
Restating the question:
How do I create a bog-simple voltage trigger “hello world” from a button press sent to the UAS?
- Does anyone have any links to existing examples?
- Is there something in the machine-translated DJI PSDK manual that gives an example?
- Is there a built-in trigger in the M300 that I am not aware of?