Calibrate global reference with btn1
parent
a51b183aad
commit
198bbf69cc
|
@ -173,6 +173,12 @@ function eulerFromQuaternion(quaternion) {
|
|||
}
|
||||
|
||||
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
|
||||
if (msg.address == '/quaternionDiff') {
|
||||
|
|
Loading…
Reference in New Issue