Skip to content

Commit

Permalink
fix(docs): typos
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alatorre <[email protected]>
  • Loading branch information
xpeqex authored Oct 3, 2024
1 parent cf169c3 commit 64b627a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/MPU6050_DMP6/Processing/MPUTeapot/MPUTeapot.pde
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MPU Teapot example
This code will display a airplane graphhics which will follow the MPU6050 movements.
This code will display airplane graphs that will follow the MPU6050 movements.
Use #define OUTPUT_TEAPOT output definition to make this code work.
Expand Down Expand Up @@ -44,13 +44,13 @@ void setup() {
println(Serial.list()); //Display serial port list for debugging/clarity
tring portName = "COMXX"; //Define the port, port format may be different on Linux/Mac
port = new Serial(this, portName, 115200); // Open the serial port
port.write('r'); // Send single character to trigger DMP init/start
port.write('r'); // Send a single character to trigger DMP init/start
}

void draw() {
if (millis() - interval > 1000) {
/*Resend single character to trigger DMP init/start
in case the MPU is halted/reset while applet is running*/
/*Resend a single character to trigger DMP init/start
in case the MPU is halted/reset while the applet is running*/
port.write('r');
interval = millis();
}
Expand Down Expand Up @@ -123,7 +123,7 @@ void serialEvent(Serial port) {
q[3] = ((teapotPacket[8] << 8) | teapotPacket[9]) / 16384.0f;
for (int i = 0; i < 4; i++) if (q[i] >= 2) q[i] = -4 + q[i];

quat.set(q[0], q[1], q[2], q[3]); //Set our toxilibs quaternion to new data
quat.set(q[0], q[1], q[2], q[3]); //Set our ToxicLibs quaternion to new data
}
}
}
Expand Down

0 comments on commit 64b627a

Please sign in to comment.