Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addons
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addons A repository for Orbiter addons contributed by users. Developers & members may announce new releases here and discuss any Orbiter addon.

Reply
 
Thread Tools
Old 06-26-2008, 01:49 AM   #61
reverend
Beta Tester
 
reverend's Avatar

Default

I was just saying that by adding the If Image<>Nothing would prevent the other users from crashing.

Just in case you miss my post on the OrbConnect thread, here's the source for ORTS (Orbiter Remote Tracking Station)

http://purinton.us/ORTS/

btw: yagni01 has done a very excellent job in extending the OUIPC service and writing the commands documentation. There are a few things i will suggest to him for a later version. I think I shall allow OUIPC to be completed superceeded by OrbConnect.

There's a couple of concerns i need to bring up about a change in command processing. In OUIPC I had a seperate thread processing commands for each client, I think. This could be rolled into 1 thread that processes commands for all clients, but yagni has told it to process commands in the opcPostStep callback function. I don't think this will be good for the simulator. All work should be done in seperate threads.

Dave, you'll notice that ORTS is very thread-centric also.
Here's code to connect to the server properly (includes error handling support)... Note, modifications will be needed to convert it for OrbConnect.

http://purinton.us/ORTS/ROTS/OUIPC.vb

SDP algorithm for plotting ground track is used in MainForm. It has code to convert the recieved Element2 into TLE format to be fed thru the SDP4 algorithm and you can calculate latitude/longitude and altitude for any given date/time. This lets you draw the orbital track on the map.

Regards,
reverend is offline   Reply With Quote
Old 06-26-2008, 02:41 AM   #62
davewave
Addon Developer
 
davewave's Avatar
Default

You will need to keep the server threaded for each client connection because in my code I also use a thread for the connection and, well, i just like threads and it reduces unexpected clashes.

I will attempt to add the code so that if image=nothing, then nothing happens and I will upload this code to the website and please download it and try it for me!

New code online: http://new-frontiers.sourceforge.net/download.html
davewave is offline   Reply With Quote
Old 06-26-2008, 02:57 AM   #63
yagni01
Addon Developer

Default

Quote:
Originally Posted by reverend View Post
 btw: yagni01 has done a very excellent job in extending the OUIPC service and writing the commands documentation. There are a few things i will suggest to him for a later version. I think I shall allow OUIPC to be completed superceeded by OrbConnect.

There's a couple of concerns i need to bring up about a change in command processing. In OUIPC I had a seperate thread processing commands for each client, I think. This could be rolled into 1 thread that processes commands for all clients, but yagni has told it to process commands in the opcPostStep callback function. I don't think this will be good for the simulator. All work should be done in seperate threads.
Russ, thanks for the vote of confidence.

I pushed all message processing into the opcPostStep because I got pretty consistent CTDs when I left it asynch and cranked the message traffic up. I tried a few variations, but this appeared to provide the most stability. I look forward to getting feedback from you and the other more experienced addon developers on improvements, esp WRT networking and performance; I definitely want to add UDP/Multicast ability at some point, too. Maybe I could get Tex to start a development thread for the project.
yagni01 is offline   Reply With Quote
Old 06-26-2008, 06:36 PM   #64
warddw
Orbinaut
Default I'd like to help with this...

I'm a program manager with Lockheed Martin and so can help you with what current day real counts and flight operations look like...including the counts from start to finish.

I was actually thinking about doing something similar but having it web based from a central server rather than have clients connecting to IP. That would also allow for a simulated DSN activity and permanent/persistant spacecraft telemetry and state that isn't reliant on someone's client running.

Maybe combine the two projects? One server side to properly reflect spacecraft opns (thinking unmanned here) and to allow for DSN uploads/commands?

Let me know - my time is rather limited as I'm doing real opns at the moment but I'll wade in as I can and perhaps take a swing at an online DSN....
warddw is offline   Reply With Quote
Old 06-27-2008, 12:27 AM   #65
reverend
Beta Tester
 
reverend's Avatar

Default

Quote:
Originally Posted by warddw View Post
 I'm a program manager with Lockheed Martin and so can help you with what current day real counts and flight operations look like...including the counts from start to finish.

I was actually thinking about doing something similar but having it web based from a central server rather than have clients connecting to IP. That would also allow for a simulated DSN activity and permanent/persistant spacecraft telemetry and state that isn't reliant on someone's client running.

Maybe combine the two projects? One server side to properly reflect spacecraft opns (thinking unmanned here) and to allow for DSN uploads/commands?

Let me know - my time is rather limited as I'm doing real opns at the moment but I'll wade in as I can and perhaps take a swing at an online DSN....
Hi, I used to work at LM too. I have succesfully done what you are referring to. I have written web-based apps (using PHP) to get telemetry from orbiter. I also did some with AJAX to provide live streaming telemetry to the browser.

I'm working on an Orbiter server system that incorporates multiple internet protocols including HTTP, FTP, SIP, and RTP, with custom transport protocols to include ascii commands (like OrbConnect), a binary transport protocol for replication of vessel status, as well as multimedia codecs for voice, video, and other possible datastreams. It's being developed to run on a set of clustered servers, possibly even geographically redudant. Servers will replicate the simulation state to provide a realiable uninteruptable real time simulation state available to clients connecting thru a variety of protocols. I would expect developement is going to take a really long time since there isn't a team of coders working on it around the clock...

Sounds like your expertise will be very helpful in creating authentic mission control procedures.

Regards,
reverend is offline   Reply With Quote
Old 06-27-2008, 12:43 AM   #66
davewave
Addon Developer
 
davewave's Avatar
Default

Quote:
Originally Posted by reverend View Post
 Hi, I used to work at LM too. I have succesfully done what you are referring to. I have written web-based apps (using PHP) to get telemetry from orbiter. I also did some with AJAX to provide live streaming telemetry to the browser.

I'm working on an Orbiter server system that incorporates multiple internet protocols including HTTP, FTP, SIP, and RTP, with custom transport protocols to include ascii commands (like OrbConnect), a binary transport protocol for replication of vessel status, as well as multimedia codecs for voice, video, and other possible datastreams. It's being developed to run on a set of clustered servers, possibly even geographically redudant. Servers will replicate the simulation state to provide a realiable uninteruptable real time simulation state available to clients connecting thru a variety of protocols. I would expect developement is going to take a really long time since there isn't a team of coders working on it around the clock...

Sounds like your expertise will be very helpful in creating authentic mission control procedures.

Regards,
Well I applied for a job at lockheed martin here in australia but didn't get the job.
But I think what you are aiming for is well out of the scope of part time hobbyists in a free game like orbiter.
If you have any experience in project development, you will know that what you are setting out to achieve is not worth it given the amount of people that will be using it.
However.
The only thing I can think of is doing the following:

Every person around the world who plays orbiter will have as one of their mods enabled a network module.
This module will automatically transmit information to a central server which could display this on the web.
Then, anyone else around the world can just tune in to a mission currently running and watch it, or interact with it.

Otherwise, cheap and nasty, which is sort of what I'm doing, is the best solution now for a VERY low audience.

I'm merley increasing the interactivity of the game to a few people more then currently which is one.
davewave is offline   Reply With Quote
Old 06-27-2008, 02:58 AM   #67
yagni01
Addon Developer

Default

Quote:
Originally Posted by davewave View Post
 If you have any experience in project development, you will know that what you are setting out to achieve is not worth it given the amount of people that will be using it.
Irrelevant. Its a hobby and we do it because we want to. That's all that matters. I'm not building an XR in my attic because a lot of people will use it. Russ creates communication protocols into Orbiter. I applaud and support his work, as without it there would be no Orb:Connect. Same with all the other addon developers out there, whether I use their product or not; including you. We're having fun.

There may be only three people in the world that might use your Mission Control. If you're creating it expecting 1000 downloads and hoping to achieve some ROI other than your own satisfaction, or maybe a couple virtual pats on the back, I think you'll be disappointed.

And its a simulator.
yagni01 is offline   Reply With Quote
Old 06-27-2008, 03:03 AM   #68
davewave
Addon Developer
 
davewave's Avatar
Default

Quote:
Originally Posted by yagni01 View Post
 Irrelevant. Its a hobby and we do it because we want to. That's all that matters. I'm not building an XR in my attic because a lot of people will use it. Russ creates communication protocols into Orbiter. I applaud and support his work, as without it there would be no Orb:Connect. Same with all the other addon developers out there, whether I use their product or not; including you. We're having fun.

There may be only three people in the world that might use your Mission Control. If you're creating it expecting 1000 downloads and hoping to achieve some ROI other than your own satisfaction, or maybe a couple virtual pats on the back, I think you'll be disappointed.

And its a simulator.
No not really.
I don't mind who uses it and I do these things because they are a challenege not because I want fans.
davewave is offline   Reply With Quote
Old 07-04-2008, 07:45 PM   #69
Buzz Lovell
Donator
Default

Quote:
Originally Posted by davewave View Post
  not because I want fans.
I'm afraid you have one - me. Dave this is just fantastic - the future is looking bright! Thanks!
Buzz Lovell is offline   Reply With Quote
Old 07-04-2008, 10:57 PM   #70
toodoo213
Orbinaut
Default It just won't connect

I tried the mission control add-on. i won't connect, none of my programs can connect. i allowed them to go threw firewall, but it keeps sayin' unable to connect, whats goin on?
toodoo213 is offline   Reply With Quote
Old 07-05-2008, 12:25 AM   #71
davewave
Addon Developer
 
davewave's Avatar
Default

Quote:
Originally Posted by toodoo213 View Post
 I tried the mission control add-on. i won't connect, none of my programs can connect. i allowed them to go threw firewall, but it keeps sayin' unable to connect, whats goin on?
When you enter the IP Address in the main view, make sure this is set to the computer running the orbiter program.

Make sure that you have the latest OrbConnect installed and enable as a plugin in orbiter. You can get it from:
Orb:Connect v1.0
This addon must be installed on the Orbiter computer you wish to connect to.

Make sure that the OrbConnect.cfg file (found in your config directory) has a port number matching the one you are trying to connect to in the orbiter window.

Finally, if all else fails, its usually due to a sneaky firewall which even when "disabled" still blocks traffic.

Hope that helps
davewave is offline   Reply With Quote
Old 07-05-2008, 12:26 AM   #72
davewave
Addon Developer
 
davewave's Avatar
Default

Quote:
Originally Posted by Buzz Lovell View Post
 I'm afraid you have one - me. Dave this is just fantastic - the future is looking bright! Thanks!
Thanks for the feedback. Always appreciated and welcome
davewave is offline   Reply With Quote
Old 07-05-2008, 01:34 AM   #73
Chupacabra
Orbinaut
Default

I got it working! It connected with an error, I'll look it up for you:
Code:
************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: image
   at System.Drawing.Graphics.DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit)
   at orbiterMC.Form1.renderMap()
   at orbiterMC.Form1.Timer1_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.Callback(IntPtr hWnd, Int32 msg, IntPtr idEvent, IntPtr dwTime)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
orbiterMC
    Assembly Version: 1.0.3096.28220
    Win32 Version: 1.0.3096.28220
    CodeBase: file:///E:/Documents%20and%20Settings/Dad/My%20Documents/Games/Orbiter/orbiterMC.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 7.0.5000.0
    Win32 Version: 7.10.3052.4
    CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
Accessibility
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
System.Xml
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
I'm running Mission Control on the same PC as Orbiter is running, if that has any significance to the error. Of course I just click continue and it works fine.

It crashed before, I don't know why. I'll tell you if it happens again.

Other than that great work! I've tried it with a few different craft and it works flawlessly so far. I'd like to see how far you take this.

EDIT:Yes the error was that it lost the connection and recommended to restart the connection again. Not a big deal.
Chupacabra is offline   Reply With Quote
Old 07-05-2008, 01:09 PM   #74
AlX
Orbinaut
Default

Davewave, that what you are currently working on looks great but i have one question:
will there be something like the orbit MFD from orbiter in your app?
because i downloaded some other mission control some time ago and it didn't have a orbit MFD or something similar so i didn't know really know where the pilot was , e.g. LEO or somewhere between LEO and mars.
AlX is offline   Reply With Quote
Old 07-05-2008, 03:11 PM   #75
Apollo 11
Orbinaut
 
Apollo 11's Avatar
Default

I think SSM07 has a good MCC idea. It's a panel that shows an orbital path and map, GET mission time, external spacecraft view, and the last comm and the mission objective. For V1 of this addon whe should try to keep as simple as possible while making this version fun and enjoyable to all.
Apollo 11 is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Addons


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 01:50 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.