New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build 18.01-rc4: CP calculation is bonkers #387
Comments
@neilweinstock I took a look at your rocket, and there are two backward facing transitions. I'm not familiar with this particular model; are both of those supposed to be there? |
Interesting. I’ll do some more experimentation and see what I can figure out, if anything.
From: Daniel Williams [mailto:notifications@github.com]
Sent: Saturday, January 27, 2018 3:17 PM
To: openrocket/openrocket
Cc: Neil WEINSTOCK; Mention
Subject: Re: [openrocket/openrocket] Build 18.01-rc4: CP calculation is bonkers (#387)
@neilweinstock<https://github.com/neilweinstock> I took a look at your rocket, and there are two backward facing transitions. I'm not familiar with this particular model; are both of those supposed to be there?
I ask because Openrocket, correctly calculates the CP on this rocket, according to the Barrowman Equations.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#387 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAO4oDlyGW6GU8h6brJSUGLKauxKIg1dks5tO4QrgaJpZM4Rjts_>.
…________________________________
Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir des informations sensibles et/ ou confidentielles ne devant pas être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous recevez ce message par erreur), nous vous remercions de le notifier immédiatement à son expéditeur, et de détruire ce message. Toute copie, divulgation, modification, utilisation ou diffusion, non autorisée, directe ou indirecte, de tout ou partie de ce message, est strictement interdite.
This e-mail, and any document attached hereby, may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution or other use of the material or parts thereof is strictly forbidden.
|
Does it look like these would all be accurate if they were reversed, either
along the length of the rocket or 180 degrees around the CG? I have to
wonder if there is a negative number multiplication error somewhere.
Wes
…On Tue, Sep 11, 2018 at 2:08 PM Neil Weinstock ***@***.***> wrote:
Here's another example of a problem using the latest alpha that Daniel
sent me:
[image: image]
<https://user-images.githubusercontent.com/243872/45381774-4deef400-b5d4-11e8-8132-6d6f60404d58.png>
I put this file together for another issue, but again the CP is
miscalculated to be at the front of the rocket instead of closer to the
back. It also is shown in the 3D view seemingly off axis in the wrong
direction. In side view this rocket shows CP as "N/A" for some reason.
fin_decal_problem.zip
<https://github.com/openrocket/openrocket/files/2372346/fin_decal_problem.zip>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#387 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABNE_3p3bB3UN2NSfV4Uk_ej0UPghsALks5uaAoxgaJpZM4Rjts_>
.
|
I tend to doubt it but really I’m just guessing. There seem to be two separate problems here:
1. CP calculation: In this example, CP calculation is apparently failing, given that its position is reported as N/A. I’m not sure how flipping any signs would make it better, but who knows what might be going on inside the algorithm. In any case I don’t see why a design like this wouldn’t have a valid CP. And note that this particular design doesn’t have any pods.
2. CP rendering in 3D view: Usually when pods are present in the design, CP is shown off-axis. In the example I just posted, it’s possible that the CP shown in the 3D view is in fact complete nonsense and we should just ignore it, because if the program things CP position is N/A then who knows what numbers it’s actually using to calculate coordinates of the CP in 3-space. Other designs (such as shown in previous comment) which have valid CP *and* incorrect display in 3D view are probably more appropriate for diagnosing this problem. For this design I think the fact that it’s showing a CP at all is the problem.
* Neil
From: Wes Cravens <notifications@github.com>
Sent: Tuesday, September 11, 2018 3:26 PM
To: openrocket/openrocket <openrocket@noreply.github.com>
Cc: Neil WEINSTOCK <neil.weinstock@raritan.com>; Mention <mention@noreply.github.com>
Subject: Re: [openrocket/openrocket] Build 18.01-rc4: CP calculation is bonkers (#387)
Does it look like these would all be accurate if they were reversed, either
along the length of the rocket or 180 degrees around the CG? I have to
wonder if there is a negative number multiplication error somewhere.
Wes
…________________________________
Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir des informations sensibles et/ ou confidentielles ne devant pas être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous recevez ce message par erreur), nous vous remercions de le notifier immédiatement à son expéditeur, et de détruire ce message. Toute copie, divulgation, modification, utilisation ou diffusion, non autorisée, directe ou indirecte, de tout ou partie de ce message, est strictement interdite.
This e-mail, and any document attached hereby, may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution or other use of the material or parts thereof is strictly forbidden.
|
Sorry, seemed to have hit "close" by accident. |
That last design: it's neutrally stable: there is no Center of Pressure for us to calculate. I'm not sure what the expected output is, but I can't think of a better representation. |
If we're talking about the example above, with the three detached pods, the 3D CoP seems to be displayed incorrectly in 3D (it's clamped to the x-axis in 2D). I haven't calculated if the x value makes sense for that design, though. That's probably the problem. Edit: Clarification: 3d views don't work on my machines. :P |
Both the CG and CP are sometimes shown off-axis, as shown above. As for the design having no actual CP: if that's the case, then as far as I'm concerned nothing should be shown in the drawing. The red dot indicates a CP. |
On Sun, Sep 30, 2018, 8:27 PM Neil Weinstock ***@***.***> wrote:
Both the CG and CP are sometimes shown off-axis, as shown above.
As for the design having no actual CP: if that's the case, then as far as
I'm concerned nothing should be shown in the drawing. The red dot indicates
a CP.
Oh, I agree! Ypure farther ahead than me- I was trying to ascertain if
there was an underlying calculation issue, or "only" a graphical /display
issue.
… —
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#387 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFbGKSYnC29Tm0SpSXKimBpkqPMRQ43Dks5ugWFWgaJpZM4Rjts_>
.
|
Fair enough! Good luck with your search. |
Looking into this. So far it seems the 3D renderer is being told that CG and CP have a Y value, when any balanced design should be 0. |
Oh, I think I know whats going on. (this is probably related to that last
fins PR).
What's the call site where it's asking for the CP? You're looking at
BarrowmanCalculator:205 Or FinSetCalc:112 right?
P.s. You guys are just looking at an alpha III, right?
|
I started looking in where the cg & cp in the 3d view gets drawn That's as far as I can get for now. That screenshot was just one of the built in examples. |
[fixes #387] Fixes one source of off-axis CP error
Here's a version where I stripped everything out that doesn't affect the CP offset. |
…lations on instanced assemblies
…lations on instanced assemblies
I believe the CP problem has been fixed (haven't seen crazy off-axis CP in quite a while), but the off-axis CG problem is still there, so I'm going to close this and file another just for that problem. |
CP calculation is badly broken. I'm not yet sure what triggered it. See attached design; OR is showing me CP = -181 inches, which I'm pretty sure is not correct. :)
plasma_dart2_scoop_newOR.zip
The text was updated successfully, but these errors were encountered: