Calibrate global reference with btn1

rob
rc 2022-03-05 13:23:30 +01:00
parent a51b183aad
commit 198bbf69cc
1 changed files with 6 additions and 0 deletions

View File

@ -173,6 +173,12 @@ function eulerFromQuaternion(quaternion) {
} }
const sendAll = (msg, info, oscWS, osclients) => { const sendAll = (msg, info, oscWS, osclients) => {
if (msg.address == '/keys') {
if (msg.args[0] == 1) {
eulerRotation = [0, 0, 0];
console.log("EULER ROTATION RESET");
}
}
// Convert quaternion diff to euler angle diff // Convert quaternion diff to euler angle diff
if (msg.address == '/quaternionDiff') { if (msg.address == '/quaternionDiff') {