GyroX value

Home Forums Forums Technical Support for BerryIMU GyroX value

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4780
    Steven
    Participant

    Hi

    Yesterday I received my BerryIMU, awesome. I’ve done some work and now my airplane is flying in a straight line.

    Theres only one thing that i’m not sure of and that is the GyroX value. When I run your original code, the GyroX value is counting up which is normal. But I think i’m having wrong values on CFangleX. (CFangleX is counting up from 0 to appr. 112°)
    Is this normal? Because the BerryIMU is mounted flat in the plane cabine so should be 0.

    Regards
    Steven

    #4783
    Mark Williams
    Keymaster

    Hi Steven
    Yes, this is normal. Because of noise, the gyro drifts. All gyros drift.

    Form this page;https://ozzmaker.com/berryimu/

    Gyros – A gyro measures the rate of rotation, which has to be tracked over time to calculate the current angle. This tracking causes the gyro to drift. However, gyros are good at measuring quick sharp movements.

    Accelerometers – Accelerometers are used to sense both static (e.g. gravity) and dynamic (e.g. sudden starts/stops) acceleration. They don’t need to be tracked like a gyro and can measure the current angle at any given time. Accelerometers however are very noisy and are only useful for tracking angles over a long period of time.

    Then further down the page;

    Once you have the both the angles from both sensors, you will have to combined them to overcome the gyro drift and the accelerometer noise.

    Once the values are combined, you should have a perfect angle reading.

    Mark --OzzMaker.com --

    #4784
    Steven
    Participant

    Hey Mark

    Thanks for the fast reply.
    Yes I know, its already combined with AccXangle as it is your original code. Does this mean I have to place the BerryIMU so that it shows 0° on X level?

    #4785
    Mark Williams
    Keymaster

    Do you mean GyroX level?.. If so, then no. It will work in any position.

    Mark --OzzMaker.com --

    #4786
    Steven
    Participant

    I meant the BerryIMU physically because CFangleX gives me 114° when its actually 0°

    #4788
    Mark Williams
    Keymaster

    what program are you using?

    What value do you get when BerryIMU is the correct way up (skull logo facing down) for CFangleX and ACCX?

    Mark --OzzMaker.com --

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…