I’m trying get the SITL environment working, but ran into some issues when trying to use my own model, which is implmented in MATLAB/Simulink. For now I’m trying to get the example from the official doc to work, but no luck so far.
I have a little follow up question for all the STIL experts here. Let me give you a little context first: I built an Eletric Ducted Fan UAV (“SingleCoper” Frame), got it flying pretty well and built a model in MATLAB, which I am now trying to validate against real flight data.
Method: feed Servo (RCOut) data to the MATLAB model and compare simulated IMU and attitude data against the actual one.
Method: feed recorded desired Angles/Rates/Throttle (RCIn) data to the SITL (Ardupilot Controller + MATLAB model) and, again, compare the simulated against the real data.
I already tried the first method and it yielded good results, however doing trying to validate a model like that is probelmatic on many levels, which is why I’m currently working on making the second method work.
How would one preferably set this up (high level)? At the moment I’m running the ardupilot SITL and the physics backend in MATLAB/Simulink. However to my knownledge there’s no way to automatically feed the RCIn/Desired Attitude/Throttle values to the SITL. Can this be done? Preferably also via MATLAB using the JSON Interface.
Yeah i’d love to contribute something. As far as I can tell you did a lot of work in that department. Would you be interested in collaborating? If so, is there any way to get in touch?