hjstn / minidjicontroller Goto Github PK
View Code? Open in Web Editor NEWPython VJoy interface for Mavic Mini RC. Inspired (and with help from) Matsemann/mDjiController and slaterbbx/mDjiController.
License: Apache License 2.0
Python VJoy interface for Mavic Mini RC. Inspired (and with help from) Matsemann/mDjiController and slaterbbx/mDjiController.
License: Apache License 2.0
I tried using the Mavic Air 2 RC (given how similar both are... thought it would work)
What I tried:
RC < usb c cable on bottom > PC:
❯ python .\main.py -p COM9
Opened serial device: COM9
Press Ctrl+C (or interrupt) to stop.
Pinged.
RC <> Mavic Air 2 < usb c > PC:
DJI USB Virtual COM
as opposed to generic USB Device X that showed when RC was directly connected with PCHas anyone gotten it to work with the MA2 RC?
i have installed all required things and tried launching python file and it open for a bit then closes
where and what do i have to fill in these infos:
usage: FPV.py [-h] -p PORT [-d DEVICE] [-i [INVERT ...]]
FPV.py: error: the following arguments are required: -p/--port
hello, how can i install that? should i install mDjiController before?
When i double click the main.py it opens and closes.i triend opening it from the cmd with no success it gives me ;
usage: main.py [-h] -p PORT [-d DEVICE] [-i [INVERT [INVERT ...]]]
main.py: error: the following arguments are required: -p/--port
I know I am late but I would appreciate a response.
So I installed all requierments and now I have to find out which com port my controller has but I am not sure if it's connected at all because windows didn't make any sounds while plugging it in.
Any idea what I could try?
Traceback (most recent call last):
File "/Users/noah.zhou/Documents/djiminicontroller.py", line 8, in
import serial, pyvjoy, argparse
File "/Users/noah.zhou/Library/Python/3.8/lib/python/site-packages/pyvjoy/init.py", line 8, in
import pyvjoy._sdk
File "/Users/noah.zhou/Library/Python/3.8/lib/python/site-packages/pyvjoy/_sdk.py", line 8, in
from ctypes import wintypes # Makes this lib work in Python36
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/wintypes.py", line 20, in
class VARIANT_BOOL(ctypes._SimpleCData):
ValueError: type 'v' not supported
can open vjoy while installed
= RESTART: C:\Users\beanz\Downloads\miniDjiController-master\miniDjiController-master\main.py
Traceback (most recent call last):
File "C:\Users\beanz\Downloads\miniDjiController-master\miniDjiController-master\main.py", line 6, in
import serial, pyvjoy, argparse
ModuleNotFoundError: No module named 'pyvjoy'
Hello, Justin!
I've been playing around with this code today and really admire the work you've done. However, there is something i really miss.. The buttons! It looks like the data that controller returns does not contain any information about button state - only joysticks, camera wheel, tick counter and something like check sum (or not, it has some weird dependencies, but neither of them are related to triggering buttons).
My guess so far is that there should be another request to get button state. Have you tried to get button state info? What method have you used to receive those magic byte arrays which you send to controller in order to get joysticks data back?
Thanks in advance,
P1xel
Hi, when I run the file it closes immediately, I tried to start it via IDLE so it said:```
= RESTART: S:\miniDjiController-master\main.py
Traceback (most recent call last):
File "S:\miniDjiController-master\main.py", line 6, in <module>
import serial, pyvjoy, argparse
ModuleNotFoundError: No module named 'serial'
What should i try? P.s: Use Mavic Mini RC
P.s2: When I use your program, numbers with values do not appear
Hello I tried this with the mavic 2 Remote Control and the sticks also work as expected the only issue I am encounter is that over time when I am using the controller the Stick commands are more and more getting laggy
Does someone have the same issue and Knows how to fix this ?
the mavic mini controller / pythen script dosent work!
ModuleNotFoundError: No module name 'serial'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.