Commit Graph

63 Commits

Author SHA1 Message Date
Scott Fennell
0d5aa45c20
Python3 exec open (#907)
* update .gitignore

* #906 change all python execfile() to exec(open().read())
2019-11-14 13:35:57 -06:00
Penn, John M 047828115
20a8d5c462 Delete mongoose_httpd model in Cannon sims dir. 2019-11-05 09:49:08 -06:00
jmpenn
95c6659733
Incorporate Webserver into Trick, so one only has to include HttpServ… (#886)
* Incorporate Webserver into Trick, so one only has to include HttpServer.sm

* Tweaks in default index.html file

* Rename HTTPServer.sm to WebServer.sm

* Rename http_server to WebServer

* Add --retry to curl invocations in HttpServer makefile.

* Fix #include in VariableServerVariable.hh

* Include cleanup and curl tweaks in the hopes of making Jenkins happy.

* Doh! problem in makefile masked by preinstalled mongoose in usr/local/lib

* DIE Make Bug DIE

* Fix include in WebServer.sm

* WebServer.sm constructor name

* Don't SWIG mongoose.h

* Compile with -std=c++11

* Attempt to fix race condition in makefile

* makefie tweek

* Fix trick library name problem for Centos and Redhat
2019-10-23 11:58:19 -05:00
Penn, John M 047828115
e1a67195d2 Create a default http document root if one doesn't exist. #885 2019-10-15 15:18:45 -05:00
Penn, John M 047828115
bf288636cb Efficiently handle time-consistent and non-time consistent message modes in web server, plus lots of refactoring. ref #883 2019-10-08 14:14:18 -05:00
Scott Fennell
c43ba55edf add an element to get a font to the react app 2019-09-04 12:51:52 -05:00
Scott Fennell
d3ca4c4781 remove fonts 2019-09-03 09:13:26 -05:00
Scott Fennell
de490a5dfa
Merge pull request #853 from nasa/react-app
React App Example for Embedded Web Server
2019-08-30 13:22:54 -05:00
Scott Fennell
9d4e0343c4 issues #851 #852 add while around mg_mgr_poll to process all events before waiting for next frame 2019-08-30 11:22:34 -05:00
Scott Fennell
d8717059f5 #851 complete a basic mockup with some features of the React-based sim-control UI 2019-08-27 13:10:18 -05:00
John M. Penn
ed64e40803 Tweaks to comments in embedded web server code. 2019-08-26 13:40:11 -05:00
John M. Penn
d0cbd1f2b5 Fix a deadlock problem created when ws initiated on linux #847 #730 2019-08-22 15:35:17 -05:00
Penn, John M 047828115
2afa2b3e38 Add VariableServerSession command to have ip_parse interpret python code. 2019-08-21 12:27:46 -05:00
Penn, John M 047828115
63605da069 Comments and rearrangment for clarity. 2019-08-21 10:52:48 -05:00
Penn, John M 047828115
2e08379e42 Add the ability to add new types of WebSocketSessions to make server extensible 2019-08-20 18:14:47 -05:00
Penn, John M 047828115
2998180231 Fix renaming misses. 2019-08-19 16:57:46 -05:00
Penn, John M 047828115
d966f21f51 Rename WSSession class to VariableServerSession 2019-08-19 16:50:24 -05:00
Penn, John M 047828115
9656b4fcb2 change #includes for http_server.hh rename. 2019-08-19 15:22:20 -05:00
Penn, John M 047828115
776614997e rename http_server.h -> http_server.hh 2019-08-19 15:19:27 -05:00
Penn, John M 047828115
2428ef3392 Add the WebSocketSession base class. #847 #730 2019-08-19 15:17:14 -05:00
Penn, John M 047828115
c1cbb2ffaa Create WebSocketSession base class and make variable server session a derivative of it. #847 #730 2019-08-19 15:15:33 -05:00
Penn, John M 047828115
c633c4cddd More refactoring. #847 #730 2019-08-16 20:16:27 -05:00
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
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
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
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
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
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
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
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
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
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