NikolaiVChr / Robinson

R22 Robinson Beta II for Flightgear and JSBSim
1 stars 2 forks source link

How to start the R22 helicopter? #1

Open tilongzs opened 5 years ago

tilongzs commented 5 years ago

It works well in Flight Gear. But when I loaded it with JSBSim standalone, I couldn't turn the main rotor and the engine didn't work. In the output CSV table, the output value /rotors/main/rpm is less than 10, and the system/electrical/starter-norm is 0 instead of the 1 I set. Thanks.

set aircraftname=R22 set resetname=reset00

JSBSim --aircraft=%aircraftname% --initfile=%resetname%^ --outputlogfile=runJSBSimwithAircraft%aircraftname%.csv --simulation-rate=200 --end=1000^ --property=fcs/throttle-cmd-norm=1.0^ --property=propulsion/magneto_cmd=1^ --property=propulsion/starter_cmd=1^ --property=fcs/left-brake-cmd-norm=0^ --property=fcs/right-brake-cmd-norm=0^ --property=fcs/center-brake-cmd-norm=0^ --property=systems/electrical/starter-norm=1^ --property=/engines/engine/n1=1^

runJSBSimwithAircraft%aircraftname%.log

pause

NikolaiVChr commented 5 years ago

Well try take a look in the nasal files and see what is done there. You probably just need to set some property.

Plus remember that properties such as /engines/engine/n1 is a FG property, not jsb property. in jsb its called propulsion/engine[0]/n1 I think.

NikolaiVChr commented 5 years ago

Also remember to look in the jsb file for any property that starts with '/', that refers to a FG property, that you probably have to fix.

tilongzs commented 5 years ago

JSBSimConsole.zip Could you help me modify this batch file? I really don't know what attributes to use. I've been tossing around for a week. The engine starts and the rotor runs steadily. This attachment is what I am using now. It contains batch files and my compiled jsbsim. exe. You can use self-compiled jsbsim. exe instead.

NikolaiVChr commented 5 years ago

Did you take a look at start jsb with the engine already running? I think: propulsion/engine[0]/running = 1

Maybe you have to set the cutoff to 0 also if you do that.

I am not really good with Piston engines, I am more into turbines. Ron made this heli, you could try to contact him, I believe he is one of the JSBSim devs. I just put it in my github for it not to get lost as it was hard to find, and to change the controls so they matched more what Yasim users is used to.

tilongzs commented 5 years ago

Thank you, but JSBSim output "No property by the name propulsion/engine [0]/running". I'm a novice JSBSim and need to use it to simulate a helicopter. At present, I only found ah1s and R22 in JSBSim, but neither batch processing nor C++ programming can start the engine like c172x. I am really troubled and helpless. I'll try another way.

bcoconni commented 5 years ago

Thank you, but JSBSim output "No property by the name propulsion/engine [0]/running".

The correct spelling is propulsion/engine[0]/set-running.