Skip to content

Error messages sometimes #4

Description

@elosval31

Arduino: 1.8.18 (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"

In file included from C:\Users\OSVALDO'S PC\Downloads\Embedded_UKF_Library-master\ukf_example2_imu\ukf_imu_engl\ukf.h:11:0,

             from C:\Users\OSVALDO'S PC\Downloads\Embedded_UKF_Library-master\ukf_example2_imu\ukf_imu_engl\ukf.cpp:93:

C:\Users\OSVALDO'S PC\Downloads\Embedded_UKF_Library-master\ukf_example2_imu\ukf_imu_engl\matrix.h: In member function 'void Matrix::vPrint()':

matrix.h:1291:13: error: 'Serial' was not declared in this scope

         Serial.print("[ ");

         ^

matrix.h:1298:9: error: 'Serial' was not declared in this scope

     Serial.println("");

     ^

C:\Users\OSVALDO'S PC\Downloads\Embedded_UKF_Library-master\ukf_example2_imu\ukf_imu_engl\matrix.h: In member function 'void Matrix::vPrintFull()':

matrix.h:1303:13: error: 'Serial' was not declared in this scope

         Serial.print("[ ");

         ^

matrix.h:1310:9: error: 'Serial' was not declared in this scope

     Serial.println("");

     ^

In file included from C:\Users\OSVALDO'S PC\Downloads\Embedded_UKF_Library-master\ukf_example2_imu\ukf_imu_engl\matrix.cpp:9:0:

C:\Users\OSVALDO'S PC\Downloads\Embedded_UKF_Library-master\ukf_example2_imu\ukf_imu_engl\matrix.h: In member function 'void Matrix::vPrint()':

matrix.h:1291:13: error: 'Serial' was not declared in this scope

         Serial.print("[ ");

         ^

matrix.h:1298:9: error: 'Serial' was not declared in this scope

     Serial.println("");

     ^

C:\Users\OSVALDO'S PC\Downloads\Embedded_UKF_Library-master\ukf_example2_imu\ukf_imu_engl\matrix.h: In member function 'void Matrix::vPrintFull()':

matrix.h:1303:13: error: 'Serial' was not declared in this scope

         Serial.print("[ ");

         ^

matrix.h:1310:9: error: 'Serial' was not declared in this scope

     Serial.println("");

     ^

exit status 1

'Serial' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I keep having this error popping up. Not sure what to do.

Activity

chaitanya-smartrotamac commented on May 19, 2022

@chaitanya-smartrotamac

I am getting the same error

'Serial' was not declared in this scope

this occurs in Matrix.h file

I changed SYSTEM_IMPLEMENTATION_EMBEDDED_NO_PRINT in Kconfig.h resolved this error.
but is this correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions