Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

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

  1. #1
    Junior Member
    Join Date
    Nov 2019
    Posts
    3

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

    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

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,228
    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

  3. #3
    Junior Member
    Join Date
    Nov 2019
    Posts
    3
    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/2...d-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

  4. #4
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    4,626
    Quote Originally Posted by peterc View Post
    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/2...d-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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •