do Control Input (by KWP dev team)
doControlInput
Api Use:
var data = JSON.stringify(
{"ID":"User Provided ID",
"Action":"doControlInput",
"parameters":{
"Pitch":"Pitch amount","Yaw":"Pitch amount","Roll":"Pitch amount"
}
});
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("Post", "http://localhost:8080/api");
xhr.setRequestHeader("Content-Type","application/json");
xhr.send(data);
Parameters
Pitch
Yaw
Roll