Satellite using rung-kutta method for 4DOF or 6DOF simulation

Click For Summary
The discussion centers on simulating a satellite's sun-Earth attitude determination using the RK4 method in MATLAB, focusing on the relationship between Keplerian elements and initial control law values. It is noted that while six Keplerian elements indicate a 6DOF problem, attitude determination primarily requires quaternions, which involve four variables, suggesting a 4DOF approach. For translational state, converting orbital elements to Cartesian coordinates is recommended, with Lagrange's Planetary Equations as a potential method, although alternatives like Delaunay's or Hill's equations may be more suitable for specific orbits. Regarding rotational state, a 6DOF simulation is necessary for accurate attitude control, and while quaternions are useful, they may require normalization after integration to maintain accuracy. Alternative representations such as Rodrigues parameters are suggested for better handling of attitude dynamics.
shakeel001
Messages
6
Reaction score
0
I am working on sun Earth attitude determination simulation for my satellite in MATLAB using SCT(space craft control toolbox)I have my keplerian elements for my satellite.I have some initial conditions for orbit setting or satellite is known.I need to use RK4 method for quaternion/state variables determination.How can I get initial control law values (like wx,wy,wz) where state vector is defined as x=[q(1:4) wx wy wz a1 a2 a3 b1 b2 b3] from my keplerian element or known initial conditions of satellite.

I don't know whether the following statement is true

"using six keplerian elements is 6DOF problem but for attitude determination I am only interested in quaternion which is of four variables" so should RK4 means 4DOF

any help or tutorial and explanation in this regard is highly regarded
shakeel
 
Astronomy news on Phys.org
1. On translational state.
One obvious solution is to convert those orbital elements into Cartesian position and velocity vectors. If you need to use orbital elements, Lagrange's Planetary Equations are a good start. However, these blow up *badly* for near-circular and near-equatorial orbits. You might want to consider Delaunay's or Hill's Planetary Equations as an alternative.

John P. Vinti, Gim J. Der, Nino L. Bonavito, "Orbital and celestial mechanics," AIAA, 1998
http://books.google.com/books?id=-d...nepage&q=lagrange planetary equations&f=false

Also see http://ccar.colorado.edu/~parkerjs/SpaceFlight/Software.html , and the references in [post=2349736]this post[/post].2. On rotational state.
If you are doing attitude control you need a 6DOF simulation. Forces and torques.
Quaternions are nice, but they suffer (to a lesser degree) the same problem occur with using transformation matrices to represent attitude. Transformation matrices have nine elements, quaternions have four, and there are only three degrees of freedom. Quaternions, like transformation matrices, over-specify the problem.

One solution to using quaternions is to normalize after each integration step. This has some accuracy problems and (worse) does not conserve energy. Some use Lagrange multipliers in lieu of normalization.

Another approach is to use something other than quaternions. You might want to look into Rodrigues parameters or modified Rodrigues parameters.
 
Last edited by a moderator:
UC Berkely, December 16, 2025 https://news.berkeley.edu/2025/12/16/whats-powering-these-mysterious-bright-blue-cosmic-flashes-astronomers-find-a-clue/ AT 2024wpp, a luminous fast blue optical transient, or LFBOT, is the bright blue spot at the upper right edge of its host galaxy, which is 1.1 billion light-years from Earth in (or near) a galaxy far, far away. Such objects are very bright (obiously) and very energetic. The article indicates that AT 2024wpp had a peak luminosity of 2-4 x...

Similar threads

Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 65 ·
3
Replies
65
Views
7K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
10K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K