POLPOX 779 Posted June 29, 2019 Y32 setAirplaneThrust 0.449 V44 setAirplaneThrust 0.647 This is enough to hover those VTOLs hover somewhere fixed position, but this is handwritten number. I want some code/math to calculate this value from getMass or any configurations like envelope[], thrustCoef[], throttleToThrustLogFactor or anything, but I've really no idea how. Thanks for your idea. //Test code vehicle player setVehiclePosition [[0,0,0],[],0,"FLY"] ; vehicle player setAirplaneThrottle 0.647 Also: is there any way to detect engine direction/enabled or disabled auto vectoring? Share this post Link to post Share on other sites
Grumpy Old Man 3548 Posted June 29, 2019 55 minutes ago, POLPOX said: Y32 setAirplaneThrust 0.449 V44 setAirplaneThrust 0.647 This is enough to hover those VTOLs hover somewhere fixed position, but this is handwritten number. I want some code/math to calculate this value from getMass or any configurations like envelope[], thrustCoef[], throttleToThrustLogFactor or anything, but I've really no idea how. Thanks for your idea. //Test code vehicle player setVehiclePosition [[0,0,0],[],0,"FLY"] ; vehicle player setAirplaneThrottle 0.647 Also: is there any way to detect engine direction/enabled or disabled auto vectoring? You could write a PID controller (various examples on how to make one can be found using google) using vertical velocity as a process variable and 0 as setpoint (since you want the vtol to hover) and use the output to control the setAirplaneThrust value. Cheers 3 Share this post Link to post Share on other sites