-
Out of blue I am getting following error upon executing SITL with JSBSIM
I have been trying to train RL agent using SITL + JSBSim Setup in Unreal Engine. @seanmcleod @agodemar |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
There is really no information with regards to JSBSim above that we can use to help debug. You would first need to modify your runtime environment so that you can actually get a stack trace of JSBSim, which would then give us some information to work with. |
Beta Was this translation helpful? Give feedback.
-
Sure, but there is no JSBSim in the call stack, the crash isn't happening in JSBSim code, so it's difficult to see how we can really provide anything useful given the information provided. Have you set a breakpoint in https://ardupilot.org/dev/docs/sitl-i2c-devices.html
Note the
|
Beta Was this translation helpful? Give feedback.
-
So Arduplane SITL is simulating the implementation of an I2C airspeed sensor by sending it I2C messages etc. and in this case it only supports read requests but for some reason some higher-level code is deciding to try and write to the I2C based airspeed sensor. So as I've been alluding to I really doubt this is a JSBSim specific issue and you would have better luck asking on the Arduplane development site. If you set a breakpoint on line 8 you can then look at the stack trace to find the code higher up that is calling this function with a write request, and by inspecting that code and it's logic and taking a look at the state of the variables you may be able to figure out what is causing the issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@seanmcleod Hey I solved the issue just now. |
Beta Was this translation helpful? Give feedback.
@seanmcleod Hey I solved the issue just now.
ARSPD_BUS 1
Used above parameter in param list to enforce it to attach to BUS1 of I2C bus where the airspeed sensor is connected.