2022-06-13, 10:02 PM
L.s.
I'm trying to upload the hat.ino to an arduino pro mini to have rf capabilities to my pipylot. And have some issues on that.
I've placed the RCSwitch and the 3 IRlib libraries in the library folder. And pressed compile in the Arduino IDE.
And voila, the arduino ide doesn't compile. The error messages that I have are attached below..
Could someone point me in the right direction?
I'm trying to upload the hat.ino to an arduino pro mini to have rf capabilities to my pipylot. And have some issues on that.
I've placed the RCSwitch and the 3 IRlib libraries in the library folder. And pressed compile in the Arduino IDE.
And voila, the arduino ide doesn't compile. The error messages that I have are attached below..
Could someone point me in the right direction?
Code:
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hat\hat.ino:303:39: warning: missing initializer for member 'codes_type::ltime' [-Wmissing-field-initializers]
static struct codes_type codes[4] = {0};
^
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hat\hat.ino:303:39: warning: missing initializer for member 'codes_type::repeat_count' [-Wmissing-field-initializers]
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\libraries\IRLib2\IRLibDecodeBase.cpp: In member function 'void IRdecodeBase::dumpResults(bool)':
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\libraries\IRLib2\IRLibDecodeBase.cpp:56:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(interval>0)LowSpace=min(LowSpace, interval); HiSpace=max (HiSpace, interval);
^~
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\libraries\IRLib2\IRLibDecodeBase.cpp:56:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(interval>0)LowSpace=min(LowSpace, interval); HiSpace=max (HiSpace, interval);
^~~~~~~
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\libraries\IRLib2\IRLibDecodeBase.cpp: In member function 'bool IRdecodeBase::MATCH(int16_t, int16_t)':
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\libraries\IRLib2\IRLibDecodeBase.cpp:130:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return (val >= (uint16_t)(expected*(1.0-PERCENT_TOLERANCE/100.0)))
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\libraries\IRLib2\IRLibDecodeBase.cpp:131:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
&& (val <= (uint16_t)(expected*(1.0+PERCENT_TOLERANCE/100.0)));
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\libraries\IRLib2\IRLibRecvBase.cpp: In function 'void IRLib_IRrecvComplete(uint8_t)':
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\libraries\IRLib2\IRLibRecvBase.cpp:159:35: warning: unused parameter 'Reason' [-Wunused-parameter]
void IRLib_IRrecvComplete(uint8_t Reason) {
^~~~~~
HardwareSerial0.cpp.o (symbol from plugin): In function `Serial':
(.text+0x0): multiple definition of `__vector_18'
sketch\hat.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
HardwareSerial0.cpp.o (symbol from plugin): In function `Serial':
(.text+0x0): multiple definition of `__vector_19'
sketch\hat.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hat\hat.ino: In function 'set_buzzer':
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hat\hat.ino:207:17: warning: 'freq' may be used uninitialized in this function [-Wmaybe-uninitialized]
OCR2B = freq/2;
^
C:\Users\wboek\Downloads\arduino-1.8.19-windows\arduino-1.8.19\hat\hat.ino:191:13: note: 'freq' was declared here
uint8_t freq;
^
collect2.exe: error: ld returned 1 exit status
exit status 1
Fout bij het compileren voor board Arduino Pro or Pro Mini