Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not getting proper values for roll pitch & yaw #1

Open
bar123 opened this issue Aug 29, 2015 · 2 comments
Open

not getting proper values for roll pitch & yaw #1

bar123 opened this issue Aug 29, 2015 · 2 comments

Comments

@bar123
Copy link

bar123 commented Aug 29, 2015

hi sir,

i dono wat d problem is but i am not getting proper values for roll pitch & yaw, i have used the same file provided by you madgwickahrs.c , any help?

i have used 250 millisecond timer counter n inside the ISR i am calling function specified below
MadgwickAHRSupdateIMU(gyrData[0],gyrData[1],gyrData[2], data.gx, data.gy, data.gz);

what could be d problem?

@TobiasSimon
Copy link
Owner

do you have any trace file of input and output data?

@bar123
Copy link
Author

bar123 commented Sep 4, 2015

s sir
the input is

MadgwickAHRSupdateIMU((gyrData[0]_0.0001331),(gyrData[1]_0.0001331),(gyrData[2]0.0001331), data.gx, data.gy, data.gz); where (250/32768)(3.14/180) gives 0.0001331 & gx,gy & gz is acceleration due to gravity where in the values will be gx=0,gy=0,gz=9 when chip is flat

output when the chip is flat is as follows

$-7,-5,-27, 26#
$-7,-5,-28, 29#
$-8,-6,-27, 2a#
$-9,-5,-26, 29#
$-8,-6,-27, 2a#
$-9,-6,-26, 2a#
$-7,-5,-28, 29#
$-7,-4,-28, 28#
$-9,-5,-26, 29#
$-12,-6,-23, 15#
$-9,-5,-26, 29#
$-11,-4,-25, 12#
$-12,-4,-24, 10#
$-11,-5,-24, 12#
$-9,-6,-26, 2a#
instead of $0,0,0, 2a#
when i tested the values using

MadgwickAHRSupdateIMU(0.0f, 0.0f, 0.0f, data.gx, data.gy, data.gz); & MadgwickAHRSupdateIMU(-0.000660f, -0.001697f, 0.001587f, 0.209143, -0.184918, -10.331619);
provided in test.c euler angles were 0 for both functions

plz help....i have used many versions including yours....i exactly dono wat the problem is but i have not got solution

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants