Giter Club home page Giter Club logo

hcdlib's People

Contributors

dzlonline avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

per1234

hcdlib's Issues

Cannot find proper ID

Hi, and thanks for your code. I used your code in arduino Mega2560 board with the proper modifications. I got an UDIRC drone (like this: https://www.skroutz.gr/s/14201025/Udir-c-U818A.html) but I don't have the transmitter. I desoldered the 2.4GCOB-1A module from another transmitter and attached it to arduino Mega2560 board. The problem is that I cannot bind to the drone. I think the problem is the wrong ID or the wrong protocol (sequence of data transmitted). As I don't have the transmitter I cannot check what data is sent to the module in the transmitter side.
So my questions are the following:

  1. In your binding example you say "//Drone ID's (pick 4 random numbers)". Why should they get picked randomly, shouldn't it be the id the drone is expecting to see?
  2. Is there a way to guess this ID somehow? Can I write a code to try all the possible combinations of ID? If yes which bytes do you suggest to change?
  3. Is there from the arduino side a way to know when a bind attempt was successful? So if I make a loop to try all possible addresses to know when a bind attempt was successful and stop?
  4. In the drone side, is the address also sent localy to the module from drone's microcontroller? Can I eyesdrop there to read the receiver address?

Missing arduino.h

I imported HCDlib into my Arduino IDE and tried to compile the binding example sketch. I got the error:

In file included from [arduino_dir]/libraries/HCDlib/HCD.h:9:0,
                 from binding.ino:1:
[arduino_dir]/libraries/HCDlib/bk2421.h:21:21: fatal error: arduino.h: No such file or directory
 #include <arduino.h>

This is on Gentoo Linux running Arduino IDE 1.0.5.

Searching through the Arduino installation, it seems that arduino.h is only a part of the wifishield firmwares. I tried copying a version from firmwares/wifishield/wifiHD/src/SOFTWARE_FRAMEWORK/BOARDS/ARDUINO/ into the HCDlib dir along with the other headers it depends on. This ended up with the error:

In file included from /home/tmurray/proj/arduino/libraries/HCDlib/arduino.h:56:0,
                 from /home/tmurray/proj/arduino/libraries/HCDlib/bk2421.h:21,
                 from /home/tmurray/proj/arduino/libraries/HCDlib/HCD.h:9,
                 from binding.ino:1:
/home/tmurray/proj/arduino/libraries/HCDlib/compiler.h:917:4: error: #error If you are here, you should check what is exactly the processor you are using...
   #error If you are here, you should check what is exactly the processor you are using...
    ^
In file included from /home/tmurray/proj/arduino/libraries/HCDlib/bk2421.h:22:0,
                 from /home/tmurray/proj/arduino/libraries/HCDlib/HCD.h:9,
                 from binding.ino:1:
/home/tmurray/proj/arduino/libraries/HCDlib/blocks.h:6:7: error: 'uint8_t' does not name a type

And a bunch of others.

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.