Code Monkey home page Code Monkey logo

Comments (1)

rebeccamccabe avatar rebeccamccabe commented on May 29, 2024

Here is the error pertaining to SP mentioned above:

In file included from c:\program files\windowsapps\arduinollc.arduinoide_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files\windowsapps\arduinollc.arduinoide_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\avr\pgmspace.h:90,
                 from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from sketch\mpc_constrained_naive_engl.ino.cpp:1:
C:\Users\rgm222\Documents\Arduino\libraries\mpc/mpc.h:59:26: error: expected ',' or '...' before '(' token
     bool bUpdate(Matrix &SP, Matrix &x, Matrix &u);
                          ^
In file included from C:\Users\rgm222\OneDrive\Documents\Arduino\mpc_constrained_naive_engl\mpc_constrained_naive_engl.ino:5:0:
C:\Users\rgm222\Documents\Arduino\libraries\mpc/mpc.h:50:7: error: size of type 'MPC' is too large ('37686' bytes)
 class MPC
       ^~~
In file included from c:\program files\windowsapps\arduinollc.arduinoide_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files\windowsapps\arduinollc.arduinoide_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\avr\pgmspace.h:90,
                 from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from sketch\mpc_constrained_naive_engl.ino.cpp:1:
mpc_constrained_naive_engl:21:8: error: expected unqualified-id before 'volatile'
 Matrix SP((MPC_HP_LEN*SS_Z_LEN), 1);
        ^
mpc_constrained_naive_engl:21:8: error: expected ')' before 'volatile'
mpc_constrained_naive_engl:21:8: error: expected ')' before 'volatile'
C:\Users\rgm222\OneDrive\Documents\Arduino\mpc_constrained_naive_engl\mpc_constrained_naive_engl.ino: In function 'void loop()':
mpc_constrained_naive_engl:85:21: error: request for member 'InsertSubMatrix' in '*(volatile uint16_t*)(61 + 32)', which is of non-class type 'volatile uint16_t {aka volatile unsigned int}'
             SP = SP.InsertSubMatrix(SP, (_i*SS_Z_LEN), 0, ((_i+1)*SS_Z_LEN), 0, SS_Z_LEN, 1);
                     ^~~~~~~~~~~~~~~
mpc_constrained_naive_engl:87:17: error: request for member 'InsertSubMatrix' in '*(volatile uint16_t*)(61 + 32)', which is of non-class type 'volatile uint16_t {aka volatile unsigned int}'
         SP = SP.InsertSubMatrix(SP_NEXT, ((MPC_HP_LEN-1)*SS_Z_LEN), 0, 0, 0, SS_Z_LEN, 1);
                 ^~~~~~~~~~~~~~~
mpc_constrained_naive_engl:95:33: error: no matching function for call to 'MPC::bUpdate(volatile uint16_t&, Matrix&, Matrix&)'
         MPC_HIL.bUpdate(SP, x, u);
                                 ^
In file included from C:\Users\rgm222\OneDrive\Documents\Arduino\mpc_constrained_naive_engl\mpc_constrained_naive_engl.ino:5:0:
C:\Users\rgm222\Documents\Arduino\libraries\mpc/mpc.h:59:10: note: candidate: bool MPC::bUpdate(Matrix&)
     bool bUpdate(Matrix &SP, Matrix &x, Matrix &u);
          ^~~~~~~
C:\Users\rgm222\Documents\Arduino\libraries\mpc/mpc.h:59:10: note:   candidate expects 1 argument, 3 provided
mpc_constrained_naive_engl:115:152: error: invalid types 'volatile uint16_t {aka volatile unsigned int}[int]' for array subscript
             snprintf(bufferTxSer, sizeof(bufferTxSer)-1, "%.3f %i %.3f %.3f %.3f %.3f", ((float)_maxu64compuTime)/1000., MPC_HIL.cntIterActiveSet, SP[0][0], SP[1][0], z[0][0], z[1][0]);
                                                                                                                                                        ^
mpc_constrained_naive_engl:115:162: error: invalid types 'volatile uint16_t {aka volatile unsigned int}[int]' for array subscript
             snprintf(bufferTxSer, sizeof(bufferTxSer)-1, "%.3f %i %.3f %.3f %.3f %.3f", ((float)_maxu64compuTime)/1000., MPC_HIL.cntIterActiveSet, SP[0][0], SP[1][0], z[0][0], z[1][0]);
                                                                                                                                                                  ^
exit status 1
expected unqualified-id before 'volatile'

from arduino_constrained_mpc_library.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.