Orbiter-Forum  

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

OrbitHangar Addons & Comments Addons uploaded at Orbithangar.com will automatically generate a new thread in this forum for comments. The thread link will also be included on the addons page.

Reply
 
Thread Tools
Old 07-17-2017, 08:10 PM   #16
barrygolden
Orbinaut
 
barrygolden's Avatar
Default

Hey brianj super job with this updated addon

just saw some of the mounting hardware here in TX for the OTV 5/ Falcon so looking forward to seeing this flight in orbiter. you might give some thought to doing the OTV landing.

Orbiter needs an MFD to handle winged landings. I see about three new addons that could use it
barrygolden is offline   Reply With Quote
Old 07-18-2017, 10:20 AM   #17
BrianJ
thing
Default

Quote:
Originally Posted by barrygolden View Post
 Hey brianj super job with this updated addon

just saw some of the mounting hardware here in TX for the OTV 5/ Falcon so looking forward to seeing this flight in orbiter. you might give some thought to doing the OTV landing.
Hi Barry,
thanks. Yes, looking forward to the OTV launch.
Quote:
Originally Posted by barrygolden View Post
 Orbiter needs an MFD to handle winged landings. I see about three new addons that could use it
It's as much as I can do to make a reentry algorithm for a specific vessel (Dragon works kind of ok!), making a generic MFD for it is a lot more complex. Got some work to do on my Falcon Heavy add-on right now, anyway, so don't know if I'll be able to oblige with an MFD.
Cheers,
Brian
BrianJ is offline   Reply With Quote
Thanked by:
Old 08-03-2017, 12:51 AM   #18
dropsofjupiter34
Orbinaut
Default Modifying F9 Modules

BrianJ, is it possible for me to modify this addon's modules to change the performance figures such as uprated thrust?

If so, please tell me how to do so.

If not, please explain the reason it's impossible.

Thank you so much.
dropsofjupiter34 is offline   Reply With Quote
Old 08-03-2017, 09:50 AM   #19
BrianJ
thing
Default

Hi,
if you can compile code, you can change whatever parameters you like. All the code is included with the add-on. You'll need to include DlgCtrl.lib, OrbiterSoundSDK40.lib, gcAPI.lib. Don't think there's another way to do it. Changing thrust or mass will throw the ascent autopilot off, but feel free to modify whatever.
Cheers,
Brian
BrianJ is offline   Reply With Quote
Old 08-04-2017, 08:41 AM   #20
barrygolden
Orbinaut
 
barrygolden's Avatar
Default

Hey Brian
Just did the deorbit and landing of your Dragon Cargo, Could the same thing be applied to the Default Atlantis or the X 37 B to deorbit and land ?
barrygolden is offline   Reply With Quote
Old 08-04-2017, 10:37 AM   #21
BrianJ
thing
Default

Hi Barry,
well, my Dragon add-on works on a very vessel-specific energy-management algorithm for the reentry. It uses a look-up table of energy vs. range and makes the flightpath shallower or steeper accordingly. I don't know if this is how the old AFCS used to work? You could do the same for the Shuttle or X37B but you need to "record" a "nominal" reentry for it, and build that in to the module. Making a "generic" reentry/landing module would be a whole different can of worms ;-)
Cheers,
Brian
BrianJ is offline   Reply With Quote
Thanked by:
Old 08-04-2017, 02:27 PM   #22
barrygolden
Orbinaut
 
barrygolden's Avatar
Default

with the upcoming Falcon/X37 B might be good to have a landing scenario. your Dragon deorbit and entry with the rcs and chutes really looks and works super.
a little note if your doing crs12 you might tweek the drogue chutes covers a little where they pop off super job.
barrygolden is offline   Reply With Quote
Old 08-05-2017, 05:09 PM   #23
dropsofjupiter34
Orbinaut
Default

BrianJ, it seems to me that changing the parameters in the .cpp files is harder than I thought.

Was I only supposed to change the numbers in the "Some Vessel Parameters" section or was there more than that?
dropsofjupiter34 is offline   Reply With Quote
Old 08-06-2017, 12:36 PM   #24
BrianJ
thing
Default

Hi Barry,
Quote:
Originally Posted by barrygolden View Post
 you might tweek the drogue chutes covers a little where they pop off
In what way? Please elucidate

@dropsofjupiter34
A couple of things that might help:
The entire Falcon9 vessel is controlled by the f9_v12.dll. At stage separation, the 1st stage is spawned as a new vessel controlled by f9_v12_stg1.dll, the main vessel reconfigures to 2nd stage parameters.

To compile the main vessel f9_v12.dll, you need:
f9_v12_stg2.cpp
f9_v12_stg2.rc
DlgCtrl.lib
gcAPI.lib
OrbiterSoundSDK40.lib

For the 1st stage f9_v12_stg1.dll, you need
f9_v12_stg1.cpp

So, to change the mass/thrust/etc. of the main vessel (1st and 2nd stages "on the way up") you need to change the parameters at the top of f9_v12_stg2.cpp.

To change the 1st stage ("on the way down") modify f9_v12_stg1.cpp

Hope this helps.
Good luck! The code is a bit of a mess, I know!
Brian
BrianJ is offline   Reply With Quote
Old 08-11-2017, 03:37 AM   #25
rcraig42
Orbinaut
Default

What version of VS did you use? I'm getting a bunch of unrecognized symbols with VS 2017 Express. No missing includes or libraries though.
rcraig42 is offline   Reply With Quote
Old 08-11-2017, 12:22 PM   #26
BrianJ
thing
Default

I use MS VC++ 2010 Express - guess I'm a bit out of date!
BrianJ is offline   Reply With Quote
Thanked by:
Old 08-11-2017, 02:28 PM   #27
rcraig42
Orbinaut
Default

I had a hunch and found and dl-ed a copy of 2010... got none of the slew of warnings I had with 2017, however, still the same errors.... here they are:

Code:
1>f9_v12_stg2.obj : error LNK2019: unresolved external symbol "bool __cdecl gcEnabled(void)" (?gcEnabled@@YA_NXZ) referenced in function "public: virtual void __thiscall f9_v12_stg2::clbkSetClassCaps(void *)" (?clbkSetClassCaps@f9_v12_stg2@@UAEXPAX@Z)
1>f9_v12_stg2.obj : error LNK2019: unresolved external symbol "bool __cdecl gcInitialize(void)" (?gcInitialize@@YA_NXZ) referenced in function "public: virtual void __thiscall f9_v12_stg2::clbkSetClassCaps(void *)" (?clbkSetClassCaps@f9_v12_stg2@@UAEXPAX@Z)
1>f9_v12_stg2.obj : error LNK2019: unresolved external symbol "void __cdecl oapiRegisterCustomControls(struct HINSTANCE__ *)" (?oapiRegisterCustomControls@@YAXPAUHINSTANCE__@@@Z) referenced in function _InitModule
1>f9_v12_stg2.obj : error LNK2019: unresolved external symbol "void __cdecl oapiUnregisterCustomControls(struct HINSTANCE__ *)" (?oapiUnregisterCustomControls@@YAXPAUHINSTANCE__@@@Z) referenced in function _ExitModule
1>c:\Orbiter 2016\Modules\f9_v12.dll : fatal error LNK1120: 4 unresolved externals


There is a real good chance I am doing something wrong, I'm like a newbie to setting up VS for orbiter every 3 to 5 years when I decide to do something with it for orbiter.

This time I followed the directions I found in another post and made a new empty project, copied the property sheets from \resources, changed the orbiterroot macro to my installation folder, application type to dll, added \OrbiterSDK\include to the include directories, and added \OrbiterSDK\lib to the library directories, copied the OrbiterSoundsdk files to the \include and \lib folders, and your files to the project folder.....

What might I have missed?


(I modified the Commercial Satellites Direct TV satellite to match the specs I could find for the IntelSat 35e Satellite and added an attachment point, converted the sc3 to dll. Then edited the 6K to GTO scenario to use it and change the date. Then duplicated the GTO orbit that they had achieved, with over 500 m/s of dV remaining in the second stage. They said they burned to depletion to achieve that. I noticed the ISP of the second stage was different than what I found on WIKIpedia, and I think the 1st stage may be too light. It's usually a lot harder to match r/l performance than it was for me this time.)
rcraig42 is offline   Reply With Quote
Old 08-11-2017, 06:20 PM   #28
BrianJ
thing
Default

Hi,
1)have you installed the D3D9 package (including the sdk files)?
2)have you added gcAPI.lib and DlgCtrl.lib to your project?
I'm hopeless at compiler set up,not a clue really - but the errors relate to those two lib's.
BrianJ is offline   Reply With Quote
Old 08-11-2017, 08:21 PM   #29
rcraig42
Orbinaut
Default

Quote:
Originally Posted by BrianJ View Post
 Hi,
1)have you installed the D3D9 package (including the sdk files)?
2)have you added gcAPI.lib and DlgCtrl.lib to your project?
I'm hopeless at compiler set up,not a clue really - but the errors relate to those two lib's.
1) not sure about the SDK files, I just did the one download and unzipped into orbiter, activated the module in launchpad and it works.

2) They are both in my OrbiterSDK\lib folder and I pointed to that folder in the project properties. Should I copy them to my project folder as well? And the corresponding h fils are in OrbiterSDK\include as well. and it is pointed to in the project properties.

:\
rcraig42 is offline   Reply With Quote
Old 08-11-2017, 09:28 PM   #30
BrianJ
thing
Default

Hi,
I have to add DlgCtrl.lib, gcAPI.lib, etc. to my project "External Dependencies".
Here's a screen shot...
Click image for larger version

Name:	compiler1.jpg
Views:	10
Size:	198.7 KB
ID:	15300

DlgCtrl.lib, gcAPI.lib, orbiter.lib, Orbitersdk.lib are in my Orbiter/Orbitersdk/lib/ folder.

OrbiterSoundSDK40.lib, f9_v12_stg2.cpp, f9_v12_stg2.rc (together with f9_v12_stg2_resource.h, OrbiterSoundSDK40.h) are in their own Orbiter/Orbitersdk/Samples/Falcon9 for Orbiter2016/ folder.

Any help?
Brian
BrianJ is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > OrbitHangar Addons & Comments


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 07:25 AM.

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.