2136 Commits

Author SHA1 Message Date
Daniel_M_Williams
02aefc6b6e [fix] Fixed RocketTest Failure 2016-10-22 22:58:41 -04:00
Daniel_M_Williams
c556cf93a7 [fix] Cloned flight Configurations now display correct name 2016-10-22 22:58:41 -04:00
Daniel_M_Williams
443b4b9a35 [Doc] Updated function Javadocs 2016-10-22 22:58:41 -04:00
Daniel_M_Williams
6d70cc61f1 [Fix][Issue #294] Multiple fixes to ensure undo & redo function correctly
- The Rocket#trackStages function needs to handle being updated with the same stage id#, but different instance
- Rocket#update now updates the stageMap
- FlightConfigurations refactored to use stage numbers instead of references.
2016-10-22 22:58:23 -04:00
Daniel_M_Williams
31938d69d7 [refine] removed ~40% excess configuration clones while creating undo point. 2016-10-22 18:56:39 -04:00
Luiz Victor Linhares Rocha
9f10b8cec1 adds documentation to some document package and rocketcomponents 2016-10-19 15:22:28 -02:00
Daniel_M_Williams
1c326c88c3 [fix] fixed MotorConfiguration copy constructor to copy motor as well 2016-10-17 21:46:30 -04:00
Daniel_M_Williams
746024cced [minor] renamed constructor variable to correctly indicate purpose 2016-10-17 21:44:24 -04:00
Daniel_M_Williams
f3413f9a98 [Minor] Removed extra whitespace in debug statements 2016-10-17 21:43:11 -04:00
Luiz Victor Linhares Rocha
b708520364 adds documentation and refactoring for many files 2016-10-17 16:41:17 -02:00
Vicilu
7c5de3f4da adds documentation for appearance builder 2016-10-14 11:50:58 -03:00
Vicilu
466619d296 Adds documentation to appearance file 2016-10-14 11:00:11 -03:00
Daniel_M_Williams
445e6caac3 [Refactor] Rocket inherits from ComponentAssembly instead of RocketComponent
- conceptually, a rocket *IS A* ComponentAssembly.
- reduces code duplication:  7 redundant functions
- rocket still inherits all the RocketComponent methods

- Also:  changed Coordinate.NUL -> Coordinate.ZERO to better reflect our intent.
-- Nitpick: Coordinate.NUL is *not* null. It's zero.  These are different!
-- Null is an error condition.
-- Zero is a valid coordinate.  Zero means something is located at the origin.  Like the rocket, and the nosecone.
2016-10-13 16:30:42 -04:00
Daniel_M_Williams
59a596520a [Non-func] Removed dead code, reformatted comments for javadoc 2016-10-13 16:06:01 -04:00
Daniel_M_Williams
93ccc180b8 [Cleanup][Warnings][Non-Func] Fixes numerous but trivial warnings
Warnings fixed:
-"JComboBox is a raw type. References to generic type JComboBox<E> should be parameterized"
-- fix: Add a <T> type specifier to each generic, (or occasionally <?>)

- "The serializable class WarningDialog does not declare a static final serialVersionUID field of type long"
-- fix: add annotation: '@SuppressWarnings("serial")'

- "Unnecessary @SuppressWarnings("unchecked")"
-- fix: remove annotation
2016-10-13 15:54:26 -04:00
Luiz Victor Linhares Rocha
38f21e1b05 fixes build bug by non ASCII character 2016-10-13 15:47:53 -03:00
Luiz Victor Linhares Rocha
ecb467db36 fixes little bug found at github build and adds a little more docs 2016-10-13 15:42:08 -03:00
Luiz Victor Linhares Rocha
c9dadc10fa adds documentation to aerodynmics package and some refactoring of classes 2016-10-13 15:04:03 -03:00
Kevin Ruland
e0c7c34cb0 Fixes from unit tests.
Don't serializemotors during ci builds.  This will likely pound
thrustcurve.org too much.  Couple of bugs found by unittests :)
2016-10-11 16:23:39 -05:00
Kevin Ruland
6532743c3f Revising previous commit to include the missing files. 2016-10-10 19:50:17 -05:00
kruland2607
aeb2a3cd97 Merge pull request #286 from Vicilu/addDoxy2
adds doxyfile for doxygen documentation
2016-10-10 17:27:46 -05:00
Kevin Ruland
f121def910 Significantly modified management of motor information provided by
OpenRocket.  At build time, it will utilize the Thrustcurve.org xml api
to download the current information (curve files and supplemental
information).  OpenRocket uses the supplemental information to populate
case-info, propellant type, availability as well as correct diameters
and length. Modified motor search dialog to hide unavailable motors and
show case-info.
2016-10-10 17:27:25 -05:00
Luiz Victor Linhares Rocha
e05062e389 adds doxyfile for doxygen documentation 2016-10-10 18:02:48 -03:00
kruland2607
05d439bd1e Merge pull request #280 from teyrana/axialoffsetfix
[Refactor] Replaced redundant method: 'PositionValue(...)' with 'AxialOffset(...)'
2016-10-07 19:28:17 -05:00
kruland2607
d837bbbe22 Merge pull request #279 from Vicilu/viciluChange
fixes tests giving false negative for comma decimal locale
2016-09-28 14:25:09 -05:00
kruland2607
b158485a2d Merge pull request #281 from teyrana/massfix
Cleaning up the code from: PR #273
2016-09-28 14:23:47 -05:00
kruland2607
4024324bab Merge pull request #276 from wcravens/move-tech-docs
Put technical documents in one place
2016-09-28 14:16:48 -05:00
Daniel_M_Williams
c1e2ed0c28 [Refactor] Replaced redundant method: 'PositionValue(...)' with 'AxialOffset(...)'
- These two methods did the same thing, so this patch removes the former from RocketComponent and descendants
- Wherever used, "PositionValue(...)" was replace with "AxialOffset(...)"
- Removed some extraneous redirect definitions of PositionValue(...)
- Fixed some UI references to the old method
2016-09-28 10:05:35 -04:00
Daniel_M_Williams
9d07aaff5c [Minor] Removed dead / debug code from mass calculation code 2016-09-28 09:51:35 -04:00
Daniel_M_Williams
6698dbfc67 [Minor] added exception throws upon detected invalid inertia values during simulation. 2016-09-28 09:32:37 -04:00
Luiz Victor Linhares Rocha
a126d76e3a fixes false negative tests for comma decimal locale 2016-09-28 00:06:17 -03:00
Wes Cravens
13615351bd Put technical documents in one place 2016-09-27 08:10:59 -05:00
kruland2607
f5e3baa003 Merge pull request #273 from teyrana/massfix
Motor mass calculation fixes
2016-09-15 17:48:22 -05:00
kruland2607
a32d22a0f2 Merge pull request #271 from ChrisMickelson/master
Add transparent render capability to RealisticRenderer.java
2016-09-15 16:52:26 -05:00
Daniel_M_Williams
04c0914d0a [bugfix] Overhauled MassCalculator Methods.
- Rocket total mass is split into 'dryMass' and 'propellantMass'
    -- each mass type has a corresponding calculation method in MassCalculator
  - Calculating Inertias and Center-of-Mass FOR MOTORS assume:
    - time-invariant x-coordinate
    - time-decreasing density
  - mass correctly tracks propellant usage, as measured by thrustCurves
  - elimated MassCalcType enum: was not actually solving a problem.
     - simply use motorTime: 0 for launch Double.MAX_VALUE for burnout
     - NO_MOTORS is represented by a configuration without attached motors
       -- try:  "rocket.setSelectedConfiguration( rocket.getEmptyConfiguration())"
     - 'dry mass' vs 'total mass': 90% of the time, a caller wanted 'total mass'
     - total_mass = dry_mass + propellant_mass
     - mass @ simulation time wasn't represented by the enum, had existing overloads anyway
  - get vs calculate methods:
    -- gets revalidate the cache, then retreive specific information
    -- calculate simple calculate the desired information, and ignore the cache.
       --- I'm particularly confident about cache reliability:
           particularly as it doesn't account for changing time during simulation.
  - reduced / simplified debugging messages
2016-07-01 16:26:02 -04:00
Daniel_M_Williams
56463b02fc [Bugfix] ThrustCurve motor interpolation fixed. 2016-06-25 11:11:28 -04:00
Daniel_M_Williams
7b2e195392 [Cleanup] Cleaned up the ThrustCurveMotor class Interface
- Cleaned up the ThrustCurveMotor api interface
  -- Converted 'getTimePoints().length' -> 'getSampleSize()'
  -- Unified ThrustCurveMotor gets to the form getXXXX(double motorTime)
  -- Restricted access for several methods from public -> protected
- Updated ThrustCurveMotorTest.java
2016-06-25 11:09:45 -04:00
ChrisMickelson
aa4f94be9f Merge pull request #1 from ChrisMickelson/ChrisMickelson-transparent-render
Add transparent render capability to RealisticRenderer.java
2016-06-09 13:48:10 -04:00
ChrisMickelson
c0597e71a2 Add transparent render capability to RealisticRenderer.java
Current limitations: Alpha value does not seem to be saved in .ork file, Depends on color chooser having alpha capability. Does not show up as transparent in "3D Unfinished"
2016-06-09 13:45:20 -04:00
kruland2607
14860ee51c Merge pull request #270 from kruland2607/unstable
Use actual burn time for determination of burnout event.  Compute
2016-06-07 20:58:23 -05:00
Kevin Ruland
a5b083ade7 Use actual burn time for determination of burnout event. Compute
average thrust while simulating.
2016-06-07 20:54:10 -05:00
kruland2607
7e68a01780 Merge pull request #269 from teyrana/configfix
Moved 'no motors' text to translation system.
2016-05-23 14:16:07 -05:00
Daniel_M_Williams
a6990dddc5 [Bugfix] Fixed additional Translation, Configuration Issues
- Fixed translation messages
   - FlightConfiguration, MotorConfiguration
   - correctly display under debug & production
- Fixed exception throw when adding empty-MotorConfiguration to a FlightConfig
2016-05-20 18:46:47 -04:00
Daniel_M_Williams
2ee7464038 [Bugfix] FlightConfiguration now uses i8n for its empty-motors description 2016-04-27 21:36:31 -04:00
kruland2607
1a3b5efb74 Merge pull request #268 from teyrana/configfix
Multiple Configuration Fixes
2016-04-26 09:30:13 -05:00
Daniel_M_Williams
5f9eb87fde [Bugfix] resolved classpath errors in Eclipse 2016-04-24 14:04:20 -04:00
Daniel_M_Williams
a94e14c2a6 [Bugfix] Main Window Config chooser now updates for new Configurations
-
2016-04-24 14:04:20 -04:00
Daniel_M_Williams
915d401370 [Bugfix] Configuration Selection ComboBox now correctly updates
- adjusted some type cast warnings
- Added 'ignore if new==current' paths in rocket configuration functions
  -- These if paths break potential infinite loops
- added update code for the main-window selected configuration dropdown
  -- now updates when the currently-selected configuration is removed.
2016-04-24 14:04:20 -04:00
Daniel_M_Williams
3362c03279 [bugfix] Fixed several FlightConfiguration bugs
- adjusted some class member names to be more descriptive
- When a component lacks an entry for the currently selected FC
  -- Code would sometimes fail to create a new motor entry
- removing a flight configuration from a rocket
  -- removes all component configurations tied to that configuration Id
2016-04-24 14:04:20 -04:00
Daniel_M_Williams
f7090afd79 [bugfix] Removing the selected configuration selects the default 2016-04-24 14:04:20 -04:00