Space ship angular deceleration

In summary, there is a need for calculating when to decelerate rotation in order to stop facing a certain point in a space game/simulation. The suggested method involves determining the time and distance based on the current angular velocity and max angular acceleration. It is also recommended to use algebra rather than calculus for the solution.
  • #1
GWilde
3
0
I am programming an addon for a space game/simulation (Kerbal Space Program) and I am looking for some help with a bit of physics.

The part I need a little help with is related to attitude control. If the ship is rotating, is there a mathematical way to calculate when it needs to begin to decelerate rotation to stop facing a certain point? Say I know its current angular velocity and its max angular acceleration?

Ex.
For example ships starts facing direction 1. It begins accelerating its rotation towards directions 2. Then, at the specific calculated point it stops accelerating and begins decelerating so that it stops at direction 2.

In the code I was thinking that I would repeatedly check if at its current angular velocity, if it began decelerating would it stop in time.

Thanks for any help.
 
Physics news on Phys.org
  • #2
For real space objects, generally a short and throttled pulse is used to initiate the rotation, and another short and throttled pulse is used to stop the rotation. A computer with gyro type inputs could do this, but humans were also able to do a good job of this during early space docking test missions. For satellites, internal torques applied to gyro's can be use to reorient them.
 
  • #3
Thanks, that's cool and all but its not really my question.

I want to do the rotation as fast as possible, so the ship would go directly from accelerating rotation to decelerating rotation. What I need help with is the maths for figuring out when to decelerate rotation.
 
  • #4
I'm not familiar with doing all the symbolic maths in a post, so I'll have a go with ancient methods.
If you know the ships rotational inertia (I) about the axis if rotation, then you can use T=I*alpha, where T=applied torque (the thruster or whatever), and alpha is the angular acceleration.
Use this with omega = alpha*t, where t is time, omega is angular velocity, and with omega = omega0 + alpha*t where omega0 is initial angular velocity and in this case omega is final angular velocity.
Hence, if you know initial omega0, and I, then calculate a torque T to be applied over time t to make omega zero.
Hope that helps.

Cheers,
Terry
 
  • #5
For the fastest reorientation, a torque is applied until rotated 1/2 of the way to the new orientation, then an opposing torque of the same magnituded is applied for the second half of the reorientation.
 
  • #6
How do I factor in that I need the angular velocity to equal zero when the ship will be at the final direction?

Edit: Accelerating for half the time and decelerating for half the time would work for the example of starting from zero rotational velocity, but when implemented the ship might not start from zero rotational velocity so that isn't how I want to do it.
 
Last edited:
  • #7
It's simialr to linear math. You have an initial angular orientation and initial angular velocity. You want to end up with a final angular orientaion and angular velocity of zero. Assume that the magnitude of the torque is constant and that only the direction changes (if it changes at all, in some cases the solution only required deceleration of the ship). This should only require algebra, not calculus, to solve.
 
  • #8
GWilde said:
If the ship is rotating, is there a mathematical way to calculate when it needs to begin to decelerate rotation to stop facing a certain point? Say I know its current angular velocity and its max angular acceleration?
time = current angular velocity / angular acceleration
 

Related to Space ship angular deceleration

1. What is angular deceleration?

Angular deceleration is the rate at which the rotational speed of a space ship decreases over time. It is measured in radians per second squared.

2. How is angular deceleration different from linear deceleration?

Angular deceleration refers to the decrease in rotational speed, while linear deceleration refers to the decrease in linear speed, or velocity. Angular deceleration is influenced by the moment of inertia and torque, while linear deceleration is influenced by mass and force.

3. What factors can affect a space ship's angular deceleration?

The main factors that can affect a space ship's angular deceleration are the moment of inertia, torque, and any external forces acting on the ship. The moment of inertia is influenced by the mass distribution of the ship, while torque can be affected by the engines, thrusters, or other forces acting on the ship.

4. How can angular deceleration be calculated?

Angular deceleration can be calculated using the formula: α = (ωf - ωi) / t, where α is the angular deceleration, ωf is the final angular velocity, ωi is the initial angular velocity, and t is the time. This formula assumes a constant deceleration rate.

5. What are some potential risks of high angular deceleration for a space ship?

High angular deceleration can put a lot of strain on the structure and components of a space ship, potentially causing damage or failure. It can also create discomfort for any crew members on board due to the sudden change in rotational speed. In extreme cases, it can even lead to loss of control of the ship.

Similar threads

Replies
1
Views
1K
Replies
5
Views
3K
  • Mechanics
Replies
9
Views
1K
Replies
2
Views
10K
Replies
68
Views
3K
  • Introductory Physics Homework Help
2
Replies
68
Views
3K
Replies
6
Views
1K
Replies
2
Views
2K
Back
Top