dzlonline / hcdlib Goto Github PK
View Code? Open in Web Editor NEWArduino library for HCD toy quadcopters
Arduino library for HCD toy quadcopters
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:
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.
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.