aster94 / SensorFusion

A simple implementation of some complex Sensor Fusion algorithms
GNU General Public License v3.0
199 stars 41 forks source link

Initalisation #14

Open Nick-C130 opened 1 year ago

Nick-C130 commented 1 year ago

Hi, im using this as a part of a rocket datalogger and as such need as few sensors as possible. i have forgone a magnetometer under the understanding that only accelerometers and gryos are needed. Is there a way to use just the accelerometer data to get initial pitch and yaw. I understand that roll cannot be gathered from just accelerometer data and am fine with that. I dont mind how the axis are oriented so long as up is up and i have 2 sideways directions if that makes sense. Thanks

aster94 commented 1 year ago

Hello, Correct, at least you need accelerometer and gyroscope. Only the accelerometer won't work with this library. Anyway the change in weight is really minimal and you will get far away better result with data from both sensors combined

Il Mer 2 Ago 2023, 03:08 Nick-C130 @.***> ha scritto:

Hi, im using this as a part of a rocket datalogger and as such need as few sensors as possible. i have forgone a magnetometer under the understanding that only accelerometers and gryos are needed. Is there a way to use just the accelerometer data to get initial pitch and yaw. I understand that roll cannot be gathered from just accelerometer data and am fine with that. I dont mind how the axis are oriented so long as up is up and i have 2 sideways directions if that makes sense. Thanks

— Reply to this email directly, view it on GitHub https://github.com/aster94/SensorFusion/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBUBTW5SYTPUNHLTSH5GI3XTGR7PANCNFSM6AAAAAA3AQ4B7M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Nick-C130 commented 1 year ago

Hi, thanks for the reply, I have accelerometers and gyros just not a magnetometer. The AHRS works fine however always initialises at pure vertical, I'm hoping to use the accelerometers to get its orientation before flight if that makes sense. Thanks

aster94 commented 1 year ago

I don't have experience with high accelerations. I will be very curious about your result with the rocket, please once you have data and a video feel free to share

Il Mer 2 Ago 2023, 07:53 Nick-C130 @.***> ha scritto:

Hi, thanks for the reply, I have accelerometers and gyros just not a magnetometer. The AHRS works fine however always initialises at pure vertical, I'm hoping to use the accelerometers to get its orientation before flight if that makes sense. Thanks

— Reply to this email directly, view it on GitHub https://github.com/aster94/SensorFusion/issues/14#issuecomment-1661536286, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBUBTWI7NIAIOIJSRCKQA3XTHTMLANCNFSM6AAAAAA3AQ4B7M . You are receiving this because you commented.Message ID: @.***>

Nick-C130 commented 1 year ago

Have you got any idea how to initialise the orientation without a magnetometer?

aster94 commented 1 year ago

Yes, see the examples

Il Mer 2 Ago 2023, 08:21 Nick-C130 @.***> ha scritto:

Have you got any idea how to initialise the orientation without a magnetometer?

— Reply to this email directly, view it on GitHub https://github.com/aster94/SensorFusion/issues/14#issuecomment-1661569049, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBUBTXYCVPBWUDBECKITXLXTHWXPANCNFSM6AAAAAA3AQ4B7M . You are receiving this because you commented.Message ID: @.***>