You know what the error (title) means. I'm sure you've probably run across it too... If so, I'd appreciate some help! ![]()
I've been coming close to banging my head against the table for the last hour or so trying to figure out why I'm getting this error. Again. I'd really appreciate some help figuring out why I'm getting this error: "request for member 'measureIMU/readIMU' in 'vector', which is of non-class type 'IMU () ()'"
.ino:
#include <IMU.h>
//Macros
#define X 0
IMU vector();
void setup()
{
Serial.begin(9600);
}
void loop()
{
vector.measureIMU();
Serial.print(vector.readIMU(X));
Serial.println();
}
.h:
#ifndef IMU_H
#define IMU_H
#include "Arduino.h"
class IMU
{
public:
IMU();
void measureIMU();
byte readIMU(byte axis);
private:
...
};
#endif
.cpp:
#include <Arduino.h>
#include "IMU.h"
...
//Initializer
IMU::IMU()
{
init();
...
}
byte IMU::readIMU(byte axis)
{
...
}
void IMU::measureIMU()
{
...
}
...