for I want to build my own transmitter (PPM only) I found this lib (introduced by T5X) during my research.
Unfortunately I'm receiving many errors regarding wrong types and so on.
I did a fresh install of the latest ARduino IDE last weekend.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Which board are you compiling for? Only Arduino Uno/Micro (Atmega328/168 types) have been tested so far. They seem to compile fine with the 1.6 version of Arduino
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I prefer Arduino pro mini but I've tried for nano also.
There are problems with debug.h and debug_lib.h which were included in AIPin.cpp:
Arduino: 1.6.0 (Windows 7), Platine: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"
Build-Optionen wurden verändert, alles wird neu gebaut
In file included from C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug_lib.h:36:0,
from C:\Users\majo\Documents\Arduino\libraries\RC\AIPin.cpp:17:
C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:18: error: 'prog_char' does not name a type
void halt(const prog_char p_file, uint16_t p_line, const prog_char p_fmt, ...);
C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:29: error: ISO C++ forbids declaration of 'p_file' with no type [-fpermissive]
void halt(const prog_char p_file, uint16_t p_line, const prog_char p_fmt, ...);
C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:60: error: 'prog_char' does not name a type
void halt(const prog_char p_file, uint16_t p_line, const prog_char p_fmt, ...);
C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:71: error: ISO C++ forbids declaration of 'p_fmt' with no type [-fpermissive]
...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cool, I didn't of that project yet, or that it uses ArduinoRCLib. Looks like it uses the code from the trunk (nightly) that hasn't been released officially yet.
Anyway, I found the problem. I don't have time to look into it very deeply or test everything with the 1.6 IDE, but here's how you can get the code to at least compile again.
Glad to be of help!
FWIW:
Arduino 1.0.4 uses avr-gcc 4.3.2
Arduino 1.6.0 uses avr-gcc 4.8.1
I know there were some problems with PROGMEM in the old version of gcc, causing all sorts of incorrect compiler warnings while the code was perfectly valid. Apparently they fixed it in the newer version since I no longer see those warnings.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
for I want to build my own transmitter (PPM only) I found this lib (introduced by T5X) during my research.
Unfortunately I'm receiving many errors regarding wrong types and so on.
I did a fresh install of the latest ARduino IDE last weekend.
Hi,
Which board are you compiling for? Only Arduino Uno/Micro (Atmega328/168 types) have been tested so far. They seem to compile fine with the 1.6 version of Arduino
The project:
https://github.com/ckonecny/t5x
I prefer Arduino pro mini but I've tried for nano also.
There are problems with debug.h and debug_lib.h which were included in AIPin.cpp:
Arduino: 1.6.0 (Windows 7), Platine: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"
Build-Optionen wurden verändert, alles wird neu gebaut
In file included from C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug_lib.h:36:0,
from C:\Users\majo\Documents\Arduino\libraries\RC\AIPin.cpp:17:
C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:18: error: 'prog_char' does not name a type
void halt(const prog_char p_file, uint16_t p_line, const prog_char p_fmt, ...);
C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:29: error: ISO C++ forbids declaration of 'p_file' with no type [-fpermissive]
void halt(const prog_char p_file, uint16_t p_line, const prog_char p_fmt, ...);
C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:60: error: 'prog_char' does not name a type
void halt(const prog_char p_file, uint16_t p_line, const prog_char p_fmt, ...);
C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:71: error: ISO C++ forbids declaration of 'p_fmt' with no type [-fpermissive]
...
Cool, I didn't of that project yet, or that it uses ArduinoRCLib. Looks like it uses the code from the trunk (nightly) that hasn't been released officially yet.
Anyway, I found the problem. I don't have time to look into it very deeply or test everything with the 1.6 IDE, but here's how you can get the code to at least compile again.
Open rc_debug.h, and after the line
add the following:
That should fix the compiler errors.
I guess the new IDE uses a newer version of the compiler, and some typedefs have been removed.
Thank you, it compiles now.
And yes, the compiler may have changed.
In nearly every thirdparty lib I must often add some "const".
Glad to be of help!
FWIW:
Arduino 1.0.4 uses avr-gcc 4.3.2
Arduino 1.6.0 uses avr-gcc 4.8.1
I know there were some problems with PROGMEM in the old version of gcc, causing all sorts of incorrect compiler warnings while the code was perfectly valid. Apparently they fixed it in the newer version since I no longer see those warnings.