Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing x8.xml File #34

Open
nikitabeebe opened this issue Jun 2, 2021 · 6 comments
Open

Missing x8.xml File #34

nikitabeebe opened this issue Jun 2, 2021 · 6 comments

Comments

@nikitabeebe
Copy link

The main.py code runs on an x8 model, which isn't currently supported by JSBsim. Do you have the additional x8.xml file to upload, or what parameters need to be modified to run the cessna172p model? (Currently reports an error that is cannot find specific controls when running main.py with cessna)

@AOS55
Copy link
Owner

AOS55 commented Jun 7, 2021

Hi Nikita, apologies for the delay.

I have now added the xml file to the repo as a directory x8 file. You need to add this to the aircraft directory. I'll aim to make a fork of JSBSim that includes this so you can directly clone this instead.

@ghost
Copy link

ghost commented Jul 1, 2021

Hi Nikita, apologies for the delay.

I have now added the xml file to the repo as a directory x8 file. You need to add this to the aircraft directory. I'll aim to make a fork of JSBSim that includes this so you can directly clone this instead.

Hi Alexander 😄 (Thanks for this awesome repository)

I followed this steps:

  • Install Airsim
  • Install JSBSim
  • Clone the repository
  • Install python 3.8 requirements
  • Copy x8 directory to JSBSim aircraft folder
  • Run Airsim environment
  • Run src/main

But code raised RuntimeError: JSBSim could not find specified model name: x8

@ghost
Copy link

ghost commented Jul 1, 2021

Hi Nikita, apologies for the delay.
I have now added the xml file to the repo as a directory x8 file. You need to add this to the aircraft directory. I'll aim to make a fork of JSBSim that includes this so you can directly clone this instead.

Hi Alexander 😄 (Thanks for this awesome repository)

I followed this steps:

  • Install Airsim
  • Install JSBSim
  • Clone the repository
  • Install python 3.8 requirements
  • Copy x8 directory to JSBSim aircraft folder
  • Run Airsim environment
  • Run src/main

But code raised RuntimeError: JSBSim could not find specified model name: x8

It's cause of electric800W.xml engine which x8 need it and it doesn't exist in JSBSim default engines.

Mr. Alexander which environment you recommend for this repo?

@zimmy87
Copy link

zimmy87 commented Jul 27, 2021

We're running into the same issue, is the electric800W.xml configuration file available somewhere online?

@AOS55
Copy link
Owner

AOS55 commented Aug 2, 2021

Hey sorry for the delay, the electric800W.xml file is simply a basic electric motor, in your JSBSim cloned repo place this into the jsbsim/engine directory:

<?xml version="1.0"?>
<!--
  File:     electric800W.xml.xml
  Author:   Alexander Quessy
-->
<electric_engine name="electric">
 <!-- This is a basic model of the electric motor used to power the x8
 -->
 <power unit="WATTS">  8.0 </power>
</electric_engine>

@zclyaya
Copy link

zclyaya commented Feb 17, 2023

main.py 代码在 x8 模型上运行,JSBsim 目前不支持该模型。您是否需要上传额外的 x8.xml 文件,或者需要修改哪些参数才能运行 cessna172p 模型?(当前报告在使用 cessna 运行 main.py 时找不到特定控件的错误)

hello, I am replicating this code, and I have a problem, when I run "advance_landing.py", there is a error: moduleNotFoundError: no module named "jsbsim_simulator",do you konw how to solve this question? I am looking forward to your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants