This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programming Arduino for rf support
#1
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?
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
Reply


Messages In This Thread
Programming Arduino for rf support - by Vic - 2022-06-13, 10:02 PM
RE: Programming Arduino for rf support - by Vic - 2022-06-14, 07:14 AM
RE: Programming Arduino for rf support - by Vic - 2022-06-14, 08:22 PM
RE: Programming Arduino for rf support - by Vic - 2022-06-21, 07:59 AM
RE: Programming Arduino for rf support - by Vic - 2022-06-21, 07:56 PM
RE: Programming Arduino for rf support - by Vic - 2022-06-21, 08:59 PM
RE: Programming Arduino for rf support - by Vic - 2022-06-22, 07:50 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)