-
Notifications
You must be signed in to change notification settings - Fork 82
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
Control step length #109
Comments
Hi Fede,
Regards, |
Hi Eric, thank you very much for your answers. I totally missed those two points... Regarding the third point, I'd like to align the body axis of the S/C with the radial, along-track, cross-track frame (that is the LVLH frame). However, the torque commands needed to control the attitude are not provided by my external controller. If it's possible, I'd like to use one of the controllers already implemented in 42 on top of my orbit controller, but I'm not sure on how to do that. I'd like to call the function Thanks, |
Hi Fede, Radial/Track/Normal. Makes sense, I'd just never run across the acronym before. So in 42, the "L" frame is a permutation of it, so that part is easy enough. There is no "standard" way, but I think you can cobble one together without too much trouble. Look in 42fsw.c:AdHocFSW(). It happens to be controlling to a permutation of L. I'm a little unclear about your external controller, but if you're talking to it over a socket, then the call to it is in 42fsw.c:FlightSoftWare() in the CFS_FSW case. You can add a call near there to call your attitude controller, either AdHocFSW or something similar. Or you can add code to your external controller, either way. Refer back to Docs/42 Overview.pdf and Docs/Nomenclature.pdf if you need to decypher reference frame notation. Regards, |
Hi Eric, thank you very much for your helpful answer. I still have a doubt though. What if I need to operate the two controllers at different frequencies? It appears to me that I can call the AdHocFSW at each simulation step (instead of only at each FSW step) to enforce a higher frequency for the attitude control, but is it a good practice? I have some trouble in understanding the best approach to decouple attitude and orbit controls. Thanks |
Hi Fede, Study the code. If you can understand how the FSW and sensors run at different sample times than the sim timestep, then you can figure out how to make your controller(s) run at the sample rate of your choosing. Regards, |
Hi!
I'm using 42 to validate a low-thrust orbit controller, but I'm facing some issues. I'd like to execute the validation in the Standalone working mode, by communicating to the 42 simulation engine the thrust control action to be applied at each control step. I managed to set up the communication as shown in the example, and I have a working 42-custom controller closed loop. However, I still have some doubts:
Thank you very much for any suggestions.
Fede
The text was updated successfully, but these errors were encountered: