Rank: 583 based on 211 downloads (last 30 days) and 12 files submitted
photo

Small Satellites

E-mail
Company/University
www.smallsats.org

Personal Profile:

To find more examples and resources please visit www.smallsats.org

Professional Interests:
Space, Small Satellites, UAV,Aerospace Engineering

 

Watch this Author's files

 

Files Posted by Small View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Jan 2013 Kepler's equation solver % Input - Mean anomaly M [rad] , Eccentricity e and Epsilon % Output - eccentric anomaly E [rad] Author: Small Satellites keplers equation, solver, mean anomaly, eccentric anomaly 17 0
21 Dec 2012 Euler Angles, Orthogonal transformations, Direction cosine matrix Calculate Euler angles from Given direction cosine matrix. Author: Small Satellites euler angles, orthogonal transforma..., direction cosine matr..., aerospace, automotive, small satellite 18 0
21 Dec 2012 Use of quaternions to numerically solve the problem of the spinning top Use of quaternions to numerically solve the problem of the spinning top. Author: Small Satellites quaternions, aerospace, orbital mechanics, smallsats, spinning satellite 18 1
11 Dec 2012 Screenshot Space Debris The program plots track-able space debris distribution in the orbit from three major accidents. Author: Small Satellites space debris, aerospace, orbital mechanics, smallsats 19 0
10 Dec 2012 atan2(0..360) Function calculates the arc tangent of y/x and places the result in range of [0..360] Author: Small Satellites math, atan2, tan, atan 19 2
  • 1.0
1.0 | 1 rating
Comments and Ratings on Small 's Files View all
Updated File Comment by Comments Rating
06 May 2014 Two Line Element Example how to open and read two line element file and output six orbital elements Author: Small Satellites min, jo

21 Dec 2012 Use of quaternions to numerically solve the problem of the spinning top Use of quaternions to numerically solve the problem of the spinning top. Author: Small Satellites Couture, Dan

Ran into some bugs on this:

* Matrix B wasn't declared
* Should specify g
* Add a transpose to MoX to make it a 3x1
* QXx was not defined
* use a incremented variable for t instead of w(t)
* You'll also probably need to normalize the quaternion regularly to avoid additive errors.

12 Dec 2012 atan2(0..360) Function calculates the arc tangent of y/x and places the result in range of [0..360] Author: Small Satellites Völker, Michael

Where MATLAB's atan2d() is already present, only a single line is required to make the result [0...360]:

ang = mod( atan2d(y,x), 360 );

If atan2d() is not present but atan2() is, it is sufficient to use

ang = mod( atan2(y,x) .* 180./pi, 360 );

And if somehow neither atan2() nor atan2d() were present and they had to be implemented manually, I would expect them to behave like the original functions.

The most important lack of function is the inability to work on arrays.

11 Dec 2012 atan2(0..360) Function calculates the arc tangent of y/x and places the result in range of [0..360] Author: Small Satellites Zapor, Richard

atan2d exists in R2012B and gives 0:180 and 0:-180.
Thus to get [0:360) is two lines
ang=atan2d(y,x);
if ang<0,ang=ang+360;end

Contact us