Penn, John M 047828115
fee9b89a07
Make API handling more extensible, and a lot of refactoring. #847 #730
2019-08-16 18:39:45 -05:00
Penn, John M 047828115
3e1d639a3e
Synchronize web socket variable server to realtime frame. #847 #730
2019-08-13 16:27:03 -05:00
Penn, John M 047828115
e7e937eed9
Fix integer parsing in simple JSON parser. #844 #730
2019-07-22 16:20:24 -05:00
Penn, John M 047828115
0df631c41a
Implement var_clear and var_send for imbedded http server JSON variable server. #844 #730 .
2019-07-22 13:35:43 -05:00
Penn, John M 047828115
c011f27a2c
Add web socket variable server and html/javascript example app #844 #730
2019-07-18 16:35:29 -05:00
Scott Fennell
5f38ca4c37
issue #836 remove SIM_ball_default_data
2019-07-10 11:36:09 -05:00
Scott Fennell
82bae3b0d0
#836 remove all S_default.dat stuff
2019-07-09 15:58:26 -05:00
Penn, John M 047828115
e6b6312396
Add Websocket sessions to experimental mongoose-based embedded web server. Ref #828
2019-06-19 17:23:32 -05:00
Scott Fennell
fadda55abf
Log elapsed time in default_data, input_processor, and init jobs in file
...
init_log.csv
2019-06-17 14:40:01 -05:00
Penn, John M 047828115
7ccdade441
Fix S_overrides.mk #756
2019-04-24 18:50:08 -05:00
Penn, John M 047828115
cebfc174ae
Don't compile and link HTTP server by default Ref #756
2019-04-24 18:29:50 -05:00
Penn, John M 047828115
b029fae692
Add an experimental mongoose-based embedded web server to SIM_cannon_numeric #756
2019-04-17 17:26:48 -05:00
jmpenn
024cf2eb5f
Update Readme.md
2019-01-15 16:27:11 -06:00
jmpenn
6ba9fbb9cd
Update Readme.md
2019-01-15 16:26:21 -06:00
jmpenn
06002b3f4d
Update Readme.md
2019-01-15 16:25:18 -06:00
Penn, John M 047828115
d76d0e289f
Model Rocket Simulation. Ref #726
2019-01-15 16:23:12 -06:00
Scott Fennell
f0537efb0f
example sim SIM_msd add init body
2018-12-21 14:01:48 -06:00
Scott Fennell
5408b5bc44
refactor example sim SIM_msd
2018-12-21 13:48:38 -06:00
Pappy Van Winkle
121fa84081
Use correct format specifiers.
...
Used http://www.cplusplus.com/reference/cstdio/printf/ as a reference.
2018-10-11 22:52:04 -05:00
Pappy Van Winkle
af2575da5b
Remove all unused variables (style warning).
2018-10-11 22:05:50 -05:00
jmpenn
8c97db25f4
Cleanup the Cannon Readme's and Sim Tweaks of Clarity ( #659 )
...
* Delete a bunch of old png's.
* Make g (acceleration of gravity at sea-level) a parameter rather to make doc cleaner.
* Update Cannon READMEs to be more informative.
2018-08-17 17:07:06 -05:00
jmpenn
6790b27330
Fix heading
2018-07-31 19:05:23 -05:00
jmpenn
d90a979b36
Updates for Example Sims ( #655 )
...
* Move integloop initialization from input file to S_defines create_connections routine
* Add README.md to describe the ball sims.
2018-07-31 19:01:47 -05:00
John M. Penn
e8525ac796
Improved Explosion sound effect. Ref #550
2018-02-05 11:06:14 -06:00
Scott Fennell
aa36c31231
added new mass-spring-damper sim and graphics client ( #555 )
...
* added new mass-spring-damper sim and graphics client
* changed math model image for README.md
* updated math model image for README.md
2018-01-31 13:37:14 -06:00
John M. Penn
054356ec7c
Added sound effects to Cannon variable server client. Ref #550
2018-01-23 11:44:48 -06:00
John M. Penn
bac90aac14
Fix cannon_impact, by updating it to the version in the tutorial. Oops. Ref #439
2017-11-08 14:13:40 -06:00
John M. Penn
9335b9cff8
Fix variable server config in java clients. Ref #474
2017-09-12 12:52:59 -05:00
John M. Penn
0a6e1bbc64
Create a simple Java graphics client for the Ball sims. Ref #472
2017-09-08 16:33:56 -05:00
John M. Penn
821907cd73
Updated units specifications in SIM_sun and SIM_wheelbot.
2017-08-04 18:37:16 -05:00
Thadeus Fleming
bf2759c5c0
Remove deprecated dynamic exception specifiers.
...
Resolves #461
2017-07-28 20:49:42 -05:00
Christopher LaChance
2a79c4a3cd
Sim monte freeze fix. ( #451 )
...
* Extended the size of the character array to fully fit the string.
* Changed to sizeof().
2017-07-05 08:51:56 -05:00
John M. Penn
6aad66646f
Update cannon_impact function for tutorial. Ref #439
2017-06-13 15:53:44 -05:00
John M. Penn
6c73951488
fix path to SunDisplay.jar in SIM_sun/RUN_test/input.py
2017-06-06 14:28:22 -05:00
John M. Penn
11aa54d4a4
Updates for SIM_wheelbot. Ref #438
2017-06-06 14:20:12 -05:00
John M. Penn
876075e325
Use include paths relative to TRICK_HOME/include in Cannon sims. Ref #438
2017-06-06 13:04:12 -05:00
John M. Penn
f9c0b16451
More heading fixes in various README.md files
2017-05-11 17:44:43 -05:00
John M. Penn
135d49c4eb
Fix heading in SIM_parachute README.md
2017-05-11 17:27:35 -05:00
John M. Penn
02a2536a9f
Fix minor typo in SIM_wheelbot README.md
2017-05-11 17:24:45 -05:00
John M. Penn
a74282bd64
Update trick_sims gitignore to ignore the build dir, and remove gitignore file in SIM_sat2d. Ref #419
2017-05-11 16:48:01 -05:00
John M. Penn
9f7ab75a6b
Fixed gitignore rules, added SatDisplay.java, and uncapitalized SIM_sun graphics directory. Ref #419
2017-05-11 16:18:42 -05:00
Derek Bankieris
2335f6bb69
Correct Monte Carlo compiler error on CentOS 7
...
Also change the Cannon sim monte_post jobs to use mc_read/write instead
of tc_read/write
Refs #396
2017-03-24 08:11:32 -05:00
John M. Penn
1b1490a972
Add 2D Satellite Simulation. Ref #387
2017-02-28 15:49:35 -06:00
Derek Bankieris
c3b5da975a
Oops
...
Refs #369
2017-01-09 08:40:27 -06:00
Derek Bankieris
7a08829d3d
Introduce makefile variable TRICK_SYSTEM_LDFLAGS
...
Like other TRICK_SYSTEM variables, users should not modify this.
This renders TRICK_LDFLAGS and TRICK_USER_LINK_LIBS redundant. While we
would like to eventually remove TRICK_USER_LINK_LIBS, it's not likely to
ever actually happen.
Refs #369
2016-12-14 12:36:21 -06:00
John M. Penn
9ac0f64f10
Organize model functions and prototypes. Refs #338
2016-11-17 16:04:07 -06:00
Michael Vetter
18f0d7e871
Remove trailing whitespaces
...
Makes it easier to edit the files. So if we press 'end of line' we are
really at the end of line.
2016-11-08 10:25:07 +01:00
John M. Penn
8ad462cd1c
Improve organization of Cannon sim files. Ref #338
2016-11-01 18:16:26 -05:00
John M. Penn
e66fc2bbd5
Update test target because SIM_cannon_integ renamed to Sim_cannon_numeric
2016-10-27 18:11:15 -05:00
John M. Penn
906a92db66
update trick_sims test target for deleted Cannon sims
2016-10-27 17:38:14 -05:00
John M. Penn
0c5a4a07c2
Add RUN_graphics scenario to SIM_cannon_numeric
2016-10-27 14:37:14 -05:00
John M. Penn
11f52b9274
Update impact time calculation in canon analytic
2016-10-27 13:19:27 -05:00
John M. Penn
37a75bc34e
Update SIM_cannon_numeric
2016-10-20 19:12:31 -05:00
John M. Penn
8b89bac5ad
Update cannon headers
2016-10-20 19:10:58 -05:00
John M. Penn
c1a60f3c8f
Moved README.md and images from SIM_cannon_integ to SIM_cannon_numeric
2016-10-20 19:08:41 -05:00
John M. Penn
8e7285f116
Add modelTime integration to SIM_cannon_numeric
2016-10-20 17:39:32 -05:00
John M. Penn
4f9c1cdc0b
Get rid of SIM_cannon_dt and combine Sim_cannon_contact and SIM_cannon_integ
2016-10-20 17:35:27 -05:00
John M. Penn
8f585baae2
Worked out a design for the Cannonball Variable server client that I'm happy with. Ref#320
2016-10-19 18:20:32 -05:00
John M. Penn
9b1ef5404a
Update SIM_cannon_analytic and add ability to launch new graphics client. Ref #320
2016-10-19 17:39:47 -05:00
John M. Penn
aa859d1579
In DP_Solar_AZ_EL.xml file, units attributes are changed from d to degree. Ref #323
2016-10-05 14:24:44 -05:00
John M. Penn
7300c0759f
get rid of a bunch of unnecessary imports. Ref #320
2016-09-30 14:51:55 -05:00
John M. Penn
a23702b4a9
Initial commit of Java, Cannonball, variable server client. Ref #320
2016-09-30 14:33:16 -05:00
John M. Penn
ab9ff1c38e
Deleted old unmaintained graphics code
2016-09-30 11:33:07 -05:00
John M. Penn
fc77fbc216
Fix tv file which was horked somehow
2016-09-14 17:17:44 -05:00
John M. Penn
f186b91afc
Add comments that explain the coordinate systems and transformations in SunDisplay. Ref #310
2016-09-14 17:16:42 -05:00
Alex Lin
0eab3d2d4e
DP file in SIM_ball_L1 does not work #302
...
So the previous commit works with one plot widget but not the other. Now it
works for both.
2016-09-07 09:31:52 -05:00
Alex Lin
53f0e33049
DP file in SIM_ball_L1 does not work #302
...
Everything was old and now wrong in this file. Wrong start/stop times,
wrong X and Y axis min/max values, wrong units for time, and wrong
variable names.
2016-09-07 07:20:24 -05:00
Alex Lin
cddc8a585d
SIM_satellite graphics might be missing -ldl #288
...
Added -ldl to link flags.
2016-08-19 10:06:38 -05:00
Alex Lin
35cec634e5
Convert old units to udunits in test code
...
Changed all of the old units to the new udunit strings.
refs #261
2016-06-30 10:03:39 -05:00
Alex Lin
149e01a4c9
Fix warnings in cannon sims
...
Fixed a lot of warnings about missing prototypes and unused variables.
refs #245
2016-06-02 09:37:42 -05:00
John M. Penn
83fd363eb7
Update picture in the SIM_sun README file. REF: #242
2016-05-26 18:37:23 -05:00
Alex Lin
57bed25466
Split test sims and fun sims into separate directories.
...
removed SIM_target because we don't use it.
refs #191
2016-04-20 15:29:22 -05:00
John M. Penn
e7af440d8a
SunDisplay buttons with unicode chars. Ref: #208
2016-03-31 15:42:49 -05:00
John M. Penn
84f1fd0b5c
Created a graphical variable server client for SIM_sun. Refs #208
2016-03-30 17:25:08 -05:00
John M. Penn
793530250e
In Calendar_Date_to_JD and JD_to_Calendar_Date changed float params to double. Refs: #201
2016-03-14 13:15:04 -05:00
John M. Penn
cadcb2286e
Move SIM_monte into Cannon sims directory. refs #191
2016-03-03 14:36:09 -06:00
John M. Penn
54a4b57dbe
delete SIM_integ. Doesn't actually seem to test anything.
2016-03-03 14:23:38 -06:00
John M. Penn
4b1b1d451b
Update README and various other tweaks to SIM_wheelbot
2016-03-03 13:22:37 -06:00
Alex Lin
4c471eb32d
Introduce Trick ROS publish/subscribe examples.
...
Introducing a pubish and subscribe example sim. The publisher includes
a ROS msg file that is processed by ROS into a header file.
refs #190
2016-02-26 09:39:42 -06:00
Alex Lin
5a7cd1839b
Split test sims and fun sims into separate directories.
...
I created an ODE directory and moved the ODE sims into it. I moved
the Ball++ models into SIM_Ball++_L1 and flattened the directory
structure.
refs #191
2016-02-25 16:04:27 -06:00
Alex Lin
d884370175
Split test sims and fun sims into separate directories.
...
Moved SIM_segments to test.
refs #191
2016-02-23 16:53:19 -06:00
Alex Lin
9ddc786ace
Split test sims and fun sims into separate directories.
...
Moved most of the rest of the sims to test.
refs #191
2016-02-23 16:19:30 -06:00
John M. Penn
cf0ac7a5a1
Add SIM_ball_default_data to the Consolidated Ball directory and also add the required .d files. refs #191
2016-02-23 15:36:30 -06:00
Alex Lin
0144cc121a
Split test sims and fun sims into separate directories.
...
Moved more sims into the test directory.
refs #191
2016-02-23 14:38:49 -06:00
Alex Lin
0c84b8ad08
plit test sims and fun sims into separate directories
...
Moved SIM_events, test_dp, test_dr, and abstract.
refs #191
2016-02-23 13:48:59 -06:00
John M. Penn
45e515cdb3
Consolidate the C Ball sims into one directory. refs #191
2016-02-23 12:03:13 -06:00
John M. Penn
9321595d2c
Merge branch 'master' of https://github.com/nasa/Trick
2016-02-23 11:45:28 -06:00
John M. Penn
51447119b4
Consolidate all of the Cannon sims into one directory. refs #191
2016-02-23 11:44:18 -06:00
Alex Lin
cf4bbfdfe8
Split test sims and fun sims into separate directories.
...
Moved the 2 thread directories.
refs #191
2016-02-23 10:46:38 -06:00
Alex Lin
90fd0ff9f8
Split test sims and fun sims into separate directories.
...
Moved SIM_test_ip and a couple of other sims that depend on the same model set
to a new test directory. I'm doing a couple of sims at a time.
refs #191
2016-02-23 10:23:55 -06:00
John M. Penn
950e319c1b
move Satellite models to SIM_satellite and fix graphics makefile
2016-02-22 17:48:06 -06:00
John M. Penn
0a40189388
move parachute models to SIM_parachute and fix up S_overrides.mk
2016-02-22 12:41:20 -06:00
John M. Penn
486cc10784
mv helios models to SIM_sun/models/Sun
2016-02-22 12:22:27 -06:00
John M. Penn
9e481703a1
Move the Wheelbot models to the SIM_wheelbot directory
2016-02-22 11:59:11 -06:00
John M. Penn
da08efe546
Fixes #185 Add SIM_wheelbot
2016-02-18 16:14:44 -06:00
Alex Lin
446fa129d4
Revert "Functions with enumerated default arguments bad"
...
This reverts commit 20dc7b1386
.
2016-02-18 10:59:37 -06:00
Alex Lin
4ab940a691
Revert "Functions with enumerated default arguments cause bad python code to be generated"
...
This reverts commit 30fbd682ee
.
2016-02-18 10:59:36 -06:00
Alex Lin
a9e4dfabcc
Revert "Functions with enumerated default arguments cause bad python code to be generated"
...
This reverts commit 612591ce96
.
2016-02-18 10:59:26 -06:00
Alex Lin
612591ce96
Functions with enumerated default arguments cause bad python code to be generated
...
OMG, more data recording files.
refs #176
2016-02-18 10:48:14 -06:00
Alex Lin
30fbd682ee
Functions with enumerated default arguments cause bad python code to be generated
...
Found a lot more data recording groups that have the same problem.
refs #176
2016-02-18 10:21:12 -06:00
Alex Lin
20dc7b1386
Functions with enumerated default arguments bad
...
Found a side effect of SWIG's "compactdefaultargs". It highlighted an
error we had in creating the data_record group in our ball sim. We did
not release the memory from python and it was causing a double free
at exit.
refs #176
2016-02-18 09:56:11 -06:00
Alex Lin
b9c871328b
Introduce Open Dynamics Engine examples
...
Added a 3 wheeled car example from the ODE demos. I collapsed all of the separate classes
handling the world, objects, and drawings into a single class. Each world is different
and just including that with the objects for these simple examples is easier. Same goes
for the drawing.
refs #172
2016-02-02 11:19:25 -06:00
Alex Lin
fa29891ded
Introduce Open Dynamics Engine examples
...
Changed the regular expressions that removes comments in convert_swig to
try and handle C style comments found in multiline #define statements.
Also added a TRICK_ICG_NOCOMMENT line to SIM_ode to stop ICG from
trying to process non-Trick comments in the ODE directory.
refs #172
2016-01-29 09:43:43 -06:00
Alex Lin
68ffd04dff
Introduce Open Dynamics Engine examples
...
Took the ODE bouncing ball tutorial sim and interfaced it within Trick. Created classes to handle
interfacing with ODE and the DrawStuff graphics that comes with ODE. Created classes
to contain the ball and the drawstuff graphics for the ball.
refs #172
2016-01-29 09:15:00 -06:00
Alex Lin
1afac18399
Add additional thread synchronization mechanisms
...
Created a thread trigger container class to hold all of the various thread triggering
mechanisms. I wanted to avoid allocating/freeing trigger mechanisms. I added
an eventfd and futex trigger types. Updated SIM_threads_simple test sim to use
show how to set the thread trigger type.
refs #148
2015-12-02 10:35:25 -06:00
Alex Lin
57c76041f5
Get the value of a variable not parsed by SWIG in python
...
Wrote a python routine called get_value_by_ref_name that takes
a variable name string as an argument. The string is passed to
ref_attributes to find the address and returns a REF2 structure. The REF2
structure is passed to ref_to_value and the type and value of the variable
is returned in a structure. We call vval_<type> to extract the raw value
from the structure and return that to python space.
Made a couple of other bug fixes in the FieldVisior and cpp input file
example found while investigating this issue.
refs #123
2015-09-18 09:03:24 -05:00
John M. Penn
788adec487
more tweaks to SIM_cannon_analytic doc ans images
2015-09-09 17:42:57 -05:00
John M. Penn
23f9aad55b
Updates to SIM_cannon_analytic README
2015-09-08 17:05:37 -05:00
John M. Penn
120ccb49cd
Beautification tweaks to SIM_cannon_analytic README
2015-09-05 17:12:52 -05:00
John M. Penn
9035286609
Create README for SIM_cannon_analytic
2015-09-05 15:42:41 -05:00
John M. Penn
d558dbd73d
Add cannon_aero.dr to SIM_cannon_aero
2015-09-04 15:39:39 -05:00
John M. Penn
4214e32d74
restore cannon_jet_proto.h so swig doesn't have problems. Tutorial will need to be modified.
2015-09-04 14:26:43 -05:00
John M. Penn
d4cd131fa1
Add SIM_cannon_jet to sim testing.
2015-09-04 13:28:54 -05:00
John M. Penn
d0e6eb1617
Restore SIM_cannon_jet as decsribed in the tutorial.
2015-09-04 13:06:12 -05:00
John M. Penn
d160d70990
Remove SIM_jet_call, SIM_jet_event, and SIM_jet_read directories.
2015-09-04 11:13:44 -05:00
John M. Penn
6492e2509a
Add check that TRICK_HOME is set in S_overrides.mk.
2015-09-04 11:01:48 -05:00
John M. Penn
abb95b8b6c
Restore SIM_cannon_aero to its former glory.
2015-09-03 19:08:55 -05:00
John M. Penn
2683c17e0e
Remove SIM_aero_curve and SIM_aero_fast directories
2015-09-03 18:47:10 -05:00
John M. Penn
fecf03aa94
Delete the SIM_baseball directory. It's cruft.
2015-09-02 18:53:38 -05:00
John M. Penn
74f8498404
Escaped underscores to make the doc look nicer. Ref #108
2015-08-19 14:01:36 -05:00
John M. Penn
e7185a152e
Add clarifications and consistency in description and plots.
2015-08-19 12:59:44 -05:00
John M. Penn
62f3b558e0
Add SIM_sun README ( #108 )
2015-08-13 14:41:21 -05:00
John M. Penn
8fb1b72011
Ref #101 Add README.md
2015-08-04 17:25:50 -05:00
John M. Penn
ff93304b9f
Add picture to SIM_parachutist README
2015-08-04 17:13:49 -05:00
Alex Lin
a5929dbe6c
Move search for library dependencies to make_makefile
...
Moved the search for all library dependencies into make_makefile.
Made a couple of minor clean up edits as well.
refs #92
2015-07-24 16:16:22 -05:00
Alex Lin
b3d1a1d162
Trick should not modify TRICK_CFLAGS and TRICK_CXXFLAGS
...
Well sims compiled, but I forgot to test if Trick itself
would compile. It didn't. Added TRICK_SYSTEM_CFLAGS and
TRICK_SYSTEM_CXXFLAGS where needed.
refs #90
2015-07-22 15:34:54 -05:00
Alex Lin
d72555f3cc
Split CP up into components that can be called individually
...
After about 6 unsuccessful builds I decided to run the unit tests
before checking in these files. I fixed the integrator unit
test that was failing from a previous issue along with problems
with the sims.
refs #86
2015-07-21 15:10:40 -05:00
Alex Lin
5a77824638
Create a separate directory for simulation compilation.
...
Functioning build directory on Linux. Everything is going into the build directory.
All files for all steps use the full path. this change removes the need for us to
call depend_objs to fix makefile dependencies. Changed the makefile rules to use
more pattern rules reducing the size of make_makefile.pm and the makefile too.
Changed the output of make to show short commands for each compile line. Setting
the variable TRICK_VERBOSE_BUILD in the environement, command line, or in S_overrides.mk
will change the output to the full printout.
refs #80
2015-07-07 14:42:58 -05:00
Alex Lin
44736be398
Remove dupilcate stand-alone libraries
...
The test programs now need more than just -ltrick.
refs #71
2015-06-24 16:54:15 -05:00
Alex Lin
d3acfa5fc0
Test code does not work with new directory locations.
...
Adjusted all of the source code to point to the header files in their new
locations. Adjusted the makefiles for the header locations as well.
Added .gitignore files in the test directories to ignore test object code.
2015-06-22 16:11:08 -05:00
Alex Lin
83e68ef26e
JITEvents are not checkpointable
...
JITEvents all need C bindings. They need to be extern "C"ed if they are in C++.
Refs #53
2015-05-14 13:55:09 -05:00
Alex Lin
24fe5adaec
JITEvents are not checkpointable
...
Changed the way JITEvents are created and handled. Instead of taking a function pointer directly we save a name of a function to the JITEvent class. The class will dynamically look up a function that matches the name both during event creation and during checkpoint restart.
Fixes #53
2015-05-14 13:41:17 -05:00
John M. Penn
1769db5e33
A few touchups to SIM_parachute README. Fix #36
2015-03-27 16:59:30 -05:00
John M. Penn
ef5bbef665
Fix heading in SIM_parachute README. Fix #36
2015-03-27 16:35:22 -05:00
John M. Penn
68fcb0e885
Alas Github Markup doesn't appear to like MathML. Fixes #36
2015-03-27 16:26:34 -05:00
John M. Penn
c47e650d1e
Wrote a README file that clearly describes the simulation. Also updated the simulation code to be clear and consistent with the documentation. Fixes #36
2015-03-27 15:56:15 -05:00
John M. Penn
6f989c9157
Implement Felix Baumgartner parachutist simulation. Fixes #32
2015-03-25 16:23:59 -05:00
Alex Lin
14a75508a3
Cleaning up once include variables and copyright cleanup.
...
Changed all header file once include variables to follow the same naming
convention and not start with any underscores. Also deleted old
incorrect copyright notices. Also removed $Id: tags from all files.
Fixes #14 . Fixes #22 .
2015-03-23 16:03:14 -05:00
Alex Lin
2fab93da66
Added rules in the makefile to include er7_utils and fermi-ware if they exist. If they don't exist then the code that depends on them will not be compiled.
...
Also added the java GUIs to the default build rule.
Finally I added a lot of .gitignore files to ignore generated files.
Fixes #5
2015-03-03 16:08:54 -06:00
Alex Lin
35bc121403
don't run unit tests that require er7_utils. Fixes #2
2015-03-02 16:19:38 -06:00
Alex Lin
f0c594f841
Initial commit of everything.
2015-02-26 09:02:31 -06:00