Jump to content

Altitude and airspeed import by KOS


NovaAero

Recommended Posts

The bare bones of doing this is:

clearscreen.

print "Airspeed: " AT (0,2).
print "Altitude: " AT (0,4).

// loop forever printing updated airspeed and altitude
UNTIL false { 
	print ROUND(ship:Airspeed,2) + "   " AT (10,2).
	print ROUND(ship:altitude,2) + "   " AT (10,4).
	WAIT 0.
}

For a proper implementation you'd want to separate the printing into a function and then call it from inside your actual program control loop, but this is the code that shows airspeed and altitude at some specific location on the KOS terminal.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...