Zanimivi filmčki in slike

Matey

AlterZavarovalničar
6. sep 2007
33.770
15.830
113
:cheer: :aplauz:


giphy.gif
 

Ytbnd

Guru
2. mar 2010
16.832
5.933
113
The Missile Knows Where It Is...
//1997 Air Force training video


The missile knows where it is at all times.
It knows this because it knows where it isn't.
By subtracting where it is from where it isn't,
Or where it isn't from where it is (whichever is
Greater), it obtains a difference, or deviation.
The guidance subsystem uses deviations to generate corrective
Commands to drive the missile from a position where it is to a
Position where it isn't,
And arriving at a position where it wasn't, it now is.
Consequently, the position where it is,
Is now the position that it wasn't,
And it follows that the position that
It was, is now the position that it isn't.
In the event that the position that it is in is not the position that
It wasn't, the system has acquired a variation,
The variation being the difference between
Where the missile is, and where it wasn't.
If variation is considered to be a
Significant factor, it too may be corrected by the GEA.
However, the missile must also know where it was.
The missile guidance computer scenario works as follows.
Because a variation has modified some of the information
The missile has obtained, it is not sure just where it is.
However, it is sure where it isn't,
Within reason, and it knows where it was.
It now subtracts where it should be from where it wasn't,
Or vice-versa, and by differentiating this from the algebraic sum of
Where it shouldn't be, and where it was,
It is able to obtain the deviation
And its variation, which is called error.






def missile_guidance(current_position, desired_position):
# Calculate deviation from the desired position
deviation = [desired - current for current, desired in zip(current_position, desired_position)]

# Generate corrective commands based on the deviation
corrective_commands = [-dev for dev in deviation]

# Simulate movement using the corrective commands
new_position = [current + command for current, command in zip(current_position, corrective_commands)]

# Check if the new position matches the desired position
if new_position == desired_position:
print("Missile has reached the desired position.")
else:
# Calculate error as the difference between the desired position and the new position
error = [new - desired for new, desired in zip(new_position, desired_position)]
print(f"Error detected: {error}")
# If error is significant, correct it (this is a placeholder for more complex error correction logic)
if max(abs(err) for err in error) > 1: # Example threshold for significance
# Placeholder for error correction logic
print("Error correction logic would go here.")

return new_position

# Example usage:
current_pos = [0, 0, 0] # Starting position
desired_pos = [100, 200, 300] # Target position

# Run the guidance algorithm
new_pos = missile_guidance(current_pos, desired_pos)
print(f"New
position: {new_pos}")
 
  • Wow
Reactions: brane_new

Ytbnd

Guru
2. mar 2010
16.832
5.933
113
Leo na AC

Na koncu se vidi tabla izvoz Uster nord, Švica.

Švica 2, vožnja po vasi