diff --git a/trick_sims/Cannon/SIM_cannon_numeric/RUN_graphics/input.py b/trick_sims/Cannon/SIM_cannon_numeric/RUN_graphics/input.py index 29c3520b..4cfafb49 100644 --- a/trick_sims/Cannon/SIM_cannon_numeric/RUN_graphics/input.py +++ b/trick_sims/Cannon/SIM_cannon_numeric/RUN_graphics/input.py @@ -4,14 +4,16 @@ exec(open("Modified_data/realtime.py").read()) # Start the Cannonball Graphics Client #========================================== web.server.enable = True -web.server.debug = True -web.server.port = 8888 -web.server.document_root = "www" +# web.server.debug = True +# web.server.port = 8888 +# web.server.document_root = "www" -# trick.var_server_set_port(5001); +trick.var_server_set_port(5001); varServerPort = trick.var_server_get_port(); CannonDisplay_path = "../models/graphics/dist/CannonDisplay.jar" +print("pos: ", dyn.cannon.pos[0]) + if (os.path.isfile(CannonDisplay_path)) : CannonDisplay_cmd = "java -jar " \ + CannonDisplay_path \ diff --git a/trick_sims/Cannon/models/httpMethods/handle_HTTP_GET_hello.c b/trick_sims/Cannon/models/httpMethods/handle_HTTP_GET_hello.c index 79fc7cc9..4ae22aa2 100644 --- a/trick_sims/Cannon/models/httpMethods/handle_HTTP_GET_hello.c +++ b/trick_sims/Cannon/models/httpMethods/handle_HTTP_GET_hello.c @@ -1,4 +1,5 @@ -#include "civet/CivetInclude.h" +#include "civet/CivetServer.h" +#include "civet/civetweb.h" #include void handle_HTTP_GET_hello(struct mg_connection *nc, void *hm) {