Giter Club home page Giter Club logo

pydjisdk's People

Contributors

groundmelon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pydjisdk's Issues

Trying to implement new features, but I'm having trouble with the initial connection

It throws the error of not receiving an ACK signal back from the drone (I'm using a Matrice 100 that's already been activated via the QT sample and DJI-Go app). I'm not entirely sure that the drone is getting any signal at all to begin with. Has anyone else seen this issue?

Could it be that I need to replace the bundle_id (line 104 in SDKApplication.py) with my App_key? What purpose does the bundle_id serve?

Here is the feedback I receive in the logs after issuing the get_api_version command (which works for me in the Linux commandline example):

2016-06-15 13:14:02,540 [     app] DEBUG Init CRC with poly=0x18005 initval=0x3AA3
2016-06-15 13:14:02,540 [     app] DEBUG Init CRC with poly=0x104C11DB7 initval=0x3AA3
2016-06-15 13:14:02,562 [     app] DEBUG Thread-2(<class 'pydjisdk.SerialPort.SerialListener'>) will start.
2016-06-15 13:14:02,562 [app.parser] DEBUG Thread-3(<class 'pydjisdk.Protocol.ProtocolParser'>) will start
2016-06-15 13:14:05,316 [ app.ss2] DEBUG Send [AA130002000000000000007E00000151E99C05]
2016-06-15 13:14:05,316 [ app.ss2] DEBUG sof:170, length:19, ver:0, session:2, ack:0, res0:0, pad:0, enc:0, res1:0, seq:0, crc16:32256
2016-06-15 13:14:05,316 [ app.ss2] DEBUG <SessionThread> session_id[2] #0 will start
2016-06-15 13:14:06,317 [ app.ss2] DEBUG Send [AA130002000000000000007E00000151E99C05]
2016-06-15 13:14:06,317 [ app.ss2] DEBUG sof:170, length:19, ver:0, session:2, ack:0, res0:0, pad:0, enc:0, res1:0, seq:0, crc16:32256
2016-06-15 13:14:07,318 [ app.ss2] DEBUG Send [AA130002000000000000007E00000151E99C05]
2016-06-15 13:14:07,319 [ app.ss2] DEBUG sof:170, length:19, ver:0, session:2, ack:0, res0:0, pad:0, enc:0, res1:0, seq:0, crc16:32256
2016-06-15 13:14:08,319 [ app.ss2] DEBUG Send [AA130002000000000000007E00000151E99C05]
2016-06-15 13:14:08,320 [ app.ss2] DEBUG sof:170, length:19, ver:0, session:2, ack:0, res0:0, pad:0, enc:0, res1:0, seq:0, crc16:32256
2016-06-15 13:14:08,320 [     app] WARNING Get api version failed.
2016-06-15 13:14:08,320 [ app.ss2] WARNING Receive ack failed. <SessionThread> session_id[2] #0
2016-06-15 13:14:08,320 [ app.ss2] DEBUG <SessionThread> session_id[2] #0 will stop.

I also get this error thrown occasionally when running app.py:

Choose operation:Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/home/parallels/Documents/pydjisdk/pydjisdk/Protocol.py", line 294, in run
    self.feed(buf)
  File "/home/parallels/Documents/pydjisdk/pydjisdk/Protocol.py", line 239, in feed
    assert(len(self.buf) < 1024)
AssertionError

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.