Skip to content

Commit

Permalink
fix bug in AHRS data handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kd0aij committed Apr 16, 2015
1 parent 55e9cb2 commit c4f419a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/LoadPX4StackData.m
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@
ATT.data(:,1) = (ATT.data(:,1) - zerotimestamp) * 1e3;
ATTtimestamp = ATT.data(:,1);
ATTtime = ATT.data(:,1)*1e-3;
Roll = ATT.data(:,2) ./ pi .* 180;
Pitch = ATT.data(:,3) ./ pi .* 180;
Yaw = ATT.data(:,4) ./ pi .* 180;
Roll = ATT.data(:,6) ./ pi .* 180;
Pitch = ATT.data(:,7) ./ pi .* 180;
Yaw = ATT.data(:,8) ./ pi .* 180;
end

%% Save to files
Expand Down

0 comments on commit c4f419a

Please sign in to comment.