Set Ship Auto Pilot Mode (by KWP dev team)
setShipAutoPilotMode
Api Use:
var data = JSON.stringify(
{"ID":"User Provided ID",
"Action":"setShipAutoPilotMode",
"parameters":{
"Mode":"Auto pilot mode"
}
});
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
Mode
- Antinormal
- AntiTarget
- Autopilot
- Maneuver
- Navigation
- Normal
- Prograde
- RadialIn
- RadialOut
- Retrograde
- StabilityAssist
- Target