-
Notifications
You must be signed in to change notification settings - Fork 86
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
Reaction Wheels #36
Comments
I have found a way to duplicate the reaction wheels. am just looking for rotating the axis of the individual wheels |
The configuration of the number, position, and other parameters for the reaction wheels is done in the text files that configure 42, the dynamic spacecraft simulator that is incorporated into NOS3. The configuration files end up in /opt/42/NOS3InOut in the latest rc-1.05.00 branch and the file you would configure is SC_NOS3.txt. Look for "Wheel Parameters". Each wheel has "Wheel Axis Components, [X, Y, Z]". |
Yeah I have seen that file. I am talking about the "generic reaction wheel" in the command sender that you can do live while running it. I have duplicated that to another wheel that is can be sent commands, but it is still on the same axis. Any ideas?? |
When you duplicate the code, you will need to alter the method "GenericRWHardwareModel::handle_command" in generic_rw_hardware_model.cpp to specify a string different than "SC[0].AC.Whl[0].Tcmd = "... in particular, you want to change the second "0" to a different wheel number, corresponding to a different wheel in the 42 input file. With respect to reading the wheel momentum, you need pay attention to the "GenericRWDataPoint::do_parsing" method in generic_rw_data_point.cpp file; although that one is better parameterized to use the wheel number from the nos3-simulator.xml config file. |
Okay so I swapped the second and third wheels to "SC[0].AC.Whl[1].Tcmd" and "SC[0].AC.Whl[2].Tcmd", but when I run the command on the sender, It still rotates only on the X axis... in the code somewhere would it still be sending the messages through the port that goes to the first wheel?? |
There is a config file called "nos3-simulator.xml".. with a block called "generic-reaction-wheel" sim. I'm not quite sure how you did the duplication, but you might need to make changes in that to get everything working. Wireshark is useful for "seeing" the data sent over the sockets, such as between 42 and the sim. "nc" is another useful tool for showing what is received on one end of a socket. |
Hello. I am a bit struggling on how to even utilise reaction wheels to stabilise the SC. I have defined several in the SC description txt file, however the SC still rotates. I wanted to align some B axes with L axes by writing the 'align' function in the command file but this also dis not work. Should actuators be activated via the Inp_Cmd.txt file? If yes what function should be used? Thanks |
Closing issue due to age. |
I have been delving into the code to figure out how to add in 2 more reaction wheels to stabilize all axis of rotation. I have been successful in adding in two new reaction wheels into the command center, but i cannot find where all the communications go. Also, how can I change the axis that the wheel rotates at?
The text was updated successfully, but these errors were encountered: