Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Beta Topics related to Beta releases of Orbiter and Orbiter development.

Reply
 
Thread Tools
Old 11-11-2016, 07:45 PM   #1
jedidia
shoemaker without legs
 
jedidia's Avatar
Default stock autopilots in r64

Did the stock autopilots change in the latest revision (it's already a while ago, but I'm just now getting around to investigating some issues I'm having developing on it that weren't around in the release version).

It almost seems to me that the AP is trying to make some predictions on the maneuverability of the vessel now, which would be a cool thing, except... IMS2 vessels wrap their entire RCS handling to dynamically create a firing solution that prevents unwanted rotation or translation artifacts induced by shifting CoG (not to mention that I have no idea where people put their rcs thrusters in the first place... ). So basically all anybody querrying the RCS groups would see is that the vessel can't rotate, period.

I'm mostly posting this here for two reasons: a) I'm trying to get confirmation for a suspicion that has solidified during testing and bughunting, but is still possibly wrong.
And b) Might it be possible to release the source code of the stock autopilots (even just the old ones, if they have indeed changed)? I know we can now override stock autopilots with our own in our add-ons, but I have no idea how to code one, although I know that sooner or later I'll have to make one anyways (the stock autopilots didn't handle heavy slugish vessels very well). Having the code of the stock autopilots as a jumping-off point might be a good jumping-off point for many people wanting to customise autopilots for their vessels.

Last edited by jedidia; 12-04-2016 at 10:06 AM.
jedidia is offline   Reply With Quote
Old 11-11-2016, 08:48 PM   #2
fred18
Addon Developer

Default

the new vessel4 allows to overload the default autopilots:
Code:
virtual int VESSEL4::clbkNavProcess  ( int  mode )  
 virtual  


Processing of navigation autopilot programmes. 
Parameters
mode Bit-flags for active nav programmes (see Navigation mode bitflags)  
ReturnsModified nav programme bitflags (see notes) Default action:Does nothing and returns mode (i.e. leaves all navmode processing to the default Orbiter core routines. NoteThis method is called at each frame while at least one nav programme is active. It is only called once per frame even if multiple programmes are active. Check the mode parameter to see which. The module is free to process all, a subset, or none of the active programmes. The return value indicates to Orbiter which of the programmes have been processed: clear the flags for all processed programmes, and leave the flags for any skipped programmes. You cannot set any flags in the return value that were not set already in the input parameter. Activating/deactivating navmodes should be done via VESSEL::ActivateNavmode, VESSEL::DeactivateNavmode, VESSEL::ToggleNavmode
fred18 is offline   Reply With Quote
Thanked by:
Old 11-11-2016, 09:42 PM   #3
Hlynkacg
Aspiring rocket scientist
 
Hlynkacg's Avatar


Default

@ Jedida,

Yes. and see fred's comment above.
Hlynkacg is offline   Reply With Quote
Thanked by:
Old 11-11-2016, 11:56 PM   #4
jedidia
shoemaker without legs
 
jedidia's Avatar
Default

Quote:
Originally Posted by fred18 View Post
 the new vessel4 allows to overload the default autopilots:
Code:
virtual int VESSEL4::clbkNavProcess  ( int  mode )  
 virtual  


Processing of navigation autopilot programmes. 
Parameters
mode Bit-flags for active nav programmes (see Navigation mode bitflags)  
ReturnsModified nav programme bitflags (see notes) Default action:Does nothing and returns mode (i.e. leaves all navmode processing to the default Orbiter core routines. NoteThis method is called at each frame while at least one nav programme is active. It is only called once per frame even if multiple programmes are active. Check the mode parameter to see which. The module is free to process all, a subset, or none of the active programmes. The return value indicates to Orbiter which of the programmes have been processed: clear the flags for all processed programmes, and leave the flags for any skipped programmes. You cannot set any flags in the return value that were not set already in the input parameter. Activating/deactivating navmodes should be done via VESSEL::ActivateNavmode, VESSEL::DeactivateNavmode, VESSEL::ToggleNavmode
Thanks, I'm aware of that, as mentioned. What I don't have is a good baseline to jump off of. I don't have the first clue about structuring an autopilot...

Quote:
Yes.
Is that a "yes, the autopilots have changed in the last revision?"
jedidia is offline   Reply With Quote
Old 11-12-2016, 03:23 AM   #5
Hlynkacg
Aspiring rocket scientist
 
Hlynkacg's Avatar


Default

Yes it is.

Im on my phone atm but i can help you with autopilot code if you like.
Hlynkacg is offline   Reply With Quote
Old 11-25-2016, 12:20 AM   #6
martins
Orbiter Founder
Default

Quote:
Originally Posted by jedidia View Post
 Did the stock autopilots change in the latest revision (it's already a while ago, but I'm just now getting around to investigating some issues I'm having developing on it that weren't around in the release version).
Can you please check if the problem is still present in SVN r.65? I did fix a thruster-related bug that could have a bearing on this.
martins is offline   Reply With Quote
Old 12-04-2016, 10:05 AM   #7
jedidia
shoemaker without legs
 
jedidia's Avatar
Default

Quote:
Originally Posted by martins View Post
 Can you please check if the problem is still present in SVN r.65? I did fix a thruster-related bug that could have a bearing on this.
EDIT: Apparently I'm so senile already that I forgett to update the revision before running tests. Yes, AP-behavior in r65 is consistent again with 2016 release.

Last edited by jedidia; 12-04-2016 at 10:13 AM.
jedidia is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta


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 11:29 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 - 2012, Orbiter-Forum.com. All rights reserved.