Giter Site home page Giter Site logo

minidjicontroller's People

Contributors

hjstn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

minidjicontroller's Issues

Support for Mavic Air 2 RC?

I tried using the Mavic Air 2 RC (given how similar both are... thought it would work)

What I tried:

  1. RC < usb c cable on bottom > PC:

    • DJI Assistant 2 installed
    • DJI Assistant 2 is closed
    • Output:
    ❯ python .\main.py -p COM9
    Opened serial device: COM9
    
    Press Ctrl+C (or interrupt) to stop.
    
    Pinged.
    
  2. RC <> Mavic Air 2 < usb c > PC:

    • actually gets recognized by DJI Assistant 2 and can use built in sim
    • COM device name is DJI USB Virtual COM as opposed to generic USB Device X that showed when RC was directly connected with PC
    • same output as above

Has anyone gotten it to work with the MA2 RC?

cant launch py file

i have installed all required things and tried launching python file and it open for a bit then closes

port specification

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

Cannot find files

hello, how can i install that? should i install mDjiController before?

Python script not opening

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

Mavic Mini

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?

does this work on mac? gettin errors

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

no module names pyvjoy

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'

Requests reverse engineering

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

Not working Py file

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

Also Works for Mavic 2 Pro remote controller but with Latency Issue

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 ?

mavic mini dosent work

the mavic mini controller / pythen script dosent work!
ModuleNotFoundError: No module name 'serial'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.