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

Click For Summary
SUMMARY

The discussion centers on simulating satellite attitude determination using the Runge-Kutta 4th order (RK4) method in MATLAB with the Spacecraft Control Toolbox (SCT). The user seeks guidance on deriving initial control law values (wx, wy, wz) from known Keplerian elements and initial conditions. It is clarified that while six Keplerian elements pertain to a 6DOF problem, attitude determination primarily involves quaternions, which represent a 4DOF system. Recommendations include converting orbital elements into Cartesian coordinates and exploring Lagrange's Planetary Equations for accurate simulations.

PREREQUISITES
  • Familiarity with MATLAB and the Spacecraft Control Toolbox (SCT)
  • Understanding of Keplerian elements and their application in orbital mechanics
  • Knowledge of quaternion mathematics for attitude representation
  • Basic concepts of 6DOF simulations in spacecraft dynamics
NEXT STEPS
  • Research how to convert Keplerian elements to Cartesian position and velocity vectors
  • Study Lagrange's Planetary Equations and their application in orbital mechanics
  • Explore Rodrigues parameters and modified Rodrigues parameters as alternatives to quaternions
  • Learn about normalization techniques for quaternions in numerical simulations
USEFUL FOR

Engineers and researchers involved in satellite dynamics, aerospace engineering students, and developers working on spacecraft control systems.

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:

Similar threads

Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 65 ·
3
Replies
65
Views
9K
  • · 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 31 ·
2
Replies
31
Views
8K