MahonyIMU buid error :- 'class mahony' has no member named 'begin'

Status
Not open for further replies.

peterc

New member
I am trying to build MahonyIMU but I get error :- 'class mahony' has no member named 'begin'

and if I look in MahonyAHRS.h (downloaded using Library Manager) then there is no 'begin'

Totally confused
 
I'm using Arduino 1.8.10 and Teensyduino 1.49b2. I can compile the PropShield example in the Mahony library and MahonyAHRS.h (installed with Teensyduino) does contain begin().

Which version of Arduino and TD are you using?

Pete
 
Its a brand new Arduino install (today) 1.8.10 with latest Teensyduino. I was able to do the prop shield calibration

Yes, I now see that the PropShield example in the Mahony library compiles . But now I get "Teensy did not respond to a USB-based request to enter program mode.". and pressing the button on the teensy 3.2 does not seem to help

I was originally trying MahonyIMU in NXPMotionSense. following http://crispycircuits.blogspot.com/2018/06/inertial-head-tracker.html
I also installed (Library Manager) Mahony 1.1.0 which seemed to fix an earlier error. I wonder whre the .begin method is

My goal is an "air mouse" ie a teensy on my head
 
Its a brand new Arduino install (today) 1.8.10 with latest Teensyduino. I was able to do the prop shield calibration

Yes, I now see that the PropShield example in the Mahony library compiles . But now I get "Teensy did not respond to a USB-based request to enter program mode.". and pressing the button on the teensy 3.2 does not seem to help

I was originally trying MahonyIMU in NXPMotionSense. following http://crispycircuits.blogspot.com/2018/06/inertial-head-tracker.html
I also installed (Library Manager) Mahony 1.1.0 which seemed to fix an earlier error. I wonder whre the .begin method is

My goal is an "air mouse" ie a teensy on my head
Well lets start with this. The MahonyIMU.ino sketch uses the PRJC MahonyAHRS library. Do not believe this is the same as the one you download with library manager, just a guess here.

However, the MahonyAHRS lib can be downloaded from here: https://github.com/PaulStoffregen/MahonyAHRS, if not already installed in the teensy library folder.

In the MahonyAHRS.h file from the library begin is defined as:
Code:
void begin(float sampleFrequency) { invSampleFreq = 1.0f / sampleFrequency; }
So suggestion is to download the that library and give it a try.
 
Status
Not open for further replies.
Back
Top