-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reference point HITL simulation #640
Conversation
Why have a ins_sim_hitl subsystem which is the same as just ins.makefile? And could you please add the usual license/author/doxygen file header including brief and detailed description to gps_sim_hitl. Maybe we can also find a more fitting name than HITL for this... |
ins_sim_hitl has extra DUSE_HFF=0 flag set. But actually it coud just be used SIM_HITL define. |
Moreover ins_gps_passthrough is currently made only for fixedwings |
Well, supplying -DUSE_HFF=0 has the same effect as not supplying it at all.... so no need for it. It would make a lot more sense to update ins_gps_passthrough to also set the missing state variables for rotorcrafts, than using ins_int and proceeding to disable/overwrite everything it actually does... See http://docs.paparazziuav.org/latest/group__state__position.html for getting the current position (e.g. as UTM representation) from state interface. |
Do you mean to move the ins_gps_passthrough to shared directory? |
It would probably be better to create an extra ins_gps_passthrough subsystem for the rotorcraft code. |
@flixr it works with both commits, choosing sim_hitl for gps subsystem and gps_passthrough for ins. |
Great, thanks for checking again. |
This simulation is working on the rotorcrafts autopilot side (does not need any external data over telemetry), simulates the full behaviour of the AP in HOVER and NAV hotizontal (vertical) modes (assuming reference generation usage). Allows to fully simulate the flightplan with any extra modules/devices connected to the AP.
To turn it on, simply change in your airframe setup file the gps and ins subsystems to "sim_hitl":