Skip to content

Commit 36e0ba4

Browse files
committed
change .h to add setBeta and get Quaternion
discussion from : https://forums.adafruit.com/viewtopic.php?f=19&t=126734&p=632174&hilit=nxp and arduino-libraries#21
1 parent c63969c commit 36e0ba4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MadgwickAHRS.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Madgwick{
4141
public:
4242
Madgwick(void);
4343
void begin(float sampleFrequency) { invSampleFreq = 1.0f / sampleFrequency; }
44+
void setBeta( float newBeta ) { beta = newBeta; }
4445
void update(float gx, float gy, float gz, float ax, float ay, float az, float mx, float my, float mz);
4546
void updateIMU(float gx, float gy, float gz, float ax, float ay, float az);
4647
//float getPitch(){return atan2f(2.0f * q2 * q3 - 2.0f * q0 * q1, 2.0f * q0 * q0 + 2.0f * q3 * q3 - 1.0f);};

0 commit comments

Comments
 (0)