Go Back   Orbiter-Forum > Projects > ORBITER: 2010-P1 and newer > Bug
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

VESSEL::GetTotalPropellantFlowrate returns nonsense Issue Tools
issueid=947 04-29-2012 03:02 PM
shoemaker without legs
VESSEL::GetTotalPropellantFlowrate returns nonsense
At least above a certain altitude

This seems like an API bug. when I call VESSEL::GetTotalPropellantFlowrate on my vessel with currently three thrusters at 10 kN each with 2000 m/s Ve, I get back pretty random values.

The returned values usually are in the 1e-10 range or even smaller, ergo utterly impossible. It seems like the problem would go away as soon as the vessel falls below an altitude of some 628-ish kilometers, although it still seems to fluctuate impressively.

Problem persists even with "complex flightmodel" deactivated (as I first thought it might have something to do with pressure. Still think it could, but not certain at all).
Issue Details
Project ORBITER: 2010-P1 and newer
Status Fixed
Priority 5 - Medium
Affected Version 100830 (2010-P1)
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

10-02-2015 01:00 AM
Orbiter Founder
I can't reproduce this problem. If I put this at the beginning of DeltaGlider::clbkPostStep()
double v = GetTotalPropellantFlowrate ();
sprintf (oapiDebugString(), "v=%f", v);
the output looks sensible. Does this work for you? And if so, what is different in the code that produces nonsensical results?

(Make sure you test in a scenario with only one vessel of the relevant type present. Otherwise the output might be generated by a different vessel instance)
10-02-2015 02:24 AM
Orbiter Founder
Edit: strike my post above. I did now manage to reproduce this bug. Should be fixed in SVN r.30.

Issue Tools
Subscribe to this issue

All times are GMT. The time now is 05:58 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 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.