sparkfun / SparkFun_RTK_EVK

SparkFun's RTK Evaluation Kit: ESP32-WROVER, ZED-F9P, NEO-D9S, LARA-R6001D, W5500
http://docs.sparkfun.com/SparkFun_RTK_EVK/
Other
3 stars 1 forks source link

Example Sketches for the LARA-R6 are not Compiling #2

Closed bboyho closed 1 month ago

bboyho commented 1 month ago

Subject of the Issue

LARA-R6 examples in this repo do not seem to compile. This is more of a lower priority. =)

Your Workbench

I was trying to compile the example skteches for the LARA-R6 using the following:

Steps to Reproduce

Arduino outputs this message when trying to compile:

C:\Users\...\Documents\GitHub\SparkFun_RTK_EVK\Example_Sketches\8_1_LARA_UART_Test\8_1_LARA_UART_Test.ino: In constructor 'LARA_R6_Derived::LARA_R6_Derived()':
C:\Users\...\Documents\GitHub\SparkFun_RTK_EVK\Example_Sketches\8_1_LARA_UART_Test\8_1_LARA_UART_Test.ino:64:60: error: no matching function for call to 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D(<brace-enclosed initializer list>)'
   64 |     LARA_R6_Derived() : SparkFun_ublox_LARA_R6001D{LARA_PWR}{} // Pass the LARA_PWR pin into the class so the library can powerOn / powerOff
      |                                                            ^
In file included from c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/SparkFun_u-blox_Cellular_Arduino_Library.h:1,
                 from C:\Users\...\Documents\GitHub\SparkFun_RTK_EVK\Example_Sketches\8_1_LARA_UART_Test\8_1_LARA_UART_Test.ino:58:
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note: candidate: 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D()'
   16 | class SparkFun_ublox_LARA_R6001D : public SparkFun_ublox_LARA_R6
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note:   candidate expects 0 arguments, 1 provided
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note: candidate: 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D(const SparkFun_ublox_LARA_R6001D&)'
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note:   no known conversion for argument 1 from 'const int' to 'const SparkFun_ublox_LARA_R6001D&'
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note: candidate: 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D(SparkFun_ublox_LARA_R6001D&&)'
c:\Users\...\Documents\Arduino\libraries\SparkFun_u-blox_Cellular_Arduino_Library\src/sfe_lara_r6.h:16:7: note:   no known conversion for argument 1 from 'const int' to 'SparkFun_ublox_LARA_R6001D&&'

exit status 1

Compilation error: no matching function for call to 'SparkFun_ublox_LARA_R6001D::SparkFun_ublox_LARA_R6001D(<brace-enclosed initializer list>)'

Expected Behavior

The code should compile with no errors.

Actual Behavior

It does not compile. =\

PaulZC commented 1 month ago

Thank you @bboyho !

Please update your copy of the cellular library to v1.0.1 - released just now. It includes changes from Jan 11th that were never released... :-}

PaulZC commented 1 month ago

Closing...