1045 Commits

Author SHA1 Message Date
Marcus Rockwell
2174e0e0fc Merge branch 'SimControlApplicationRefactor' into HeadlessJavaGUITests-AssertJ_Swing 2024-09-16 11:49:59 -04:00
Marcus Rockwell
f34be562e9 Added input validation for enabling/disabling GUIs and actions 2024-09-16 11:49:33 -04:00
Marcus Rockwell
66081ea7a6 Reorganized Connect function to shorten it and increase readability 2024-09-16 11:46:53 -04:00
Marcus Rockwell
28bece6065 Increased accessibility for a few members and functions 2024-09-16 11:44:39 -04:00
Marcus Rockwell
bfbc907a8c Cleaned non-feature related changes from branch 2024-09-16 11:13:40 -04:00
Mrockwell2
c6010829d4
Merge branch 'nasa:master' into HeadlessJavaGUITests-AssertJ_Swing 2024-09-16 09:52:12 -05:00
Marcus Rockwell
0fe1e05f22 Cleaned up Sim Control Panel test suite 2024-09-13 13:50:50 -05:00
Marcus Rockwell
25936b0301 Created test suite for Tool Bar Buttons 2024-09-09 16:02:02 -04:00
Marcus Rockwell
265aa9a59e Created test suite for Action Menu Items 2024-09-09 16:01:35 -04:00
Marcus Rockwell
a4d71e1636 Created a test for the look and feel options 2024-09-09 12:25:37 -04:00
dependabot[bot]
052d0bfedb
Bump webpack from 5.88.2 to 5.94.0 in /trick_source/web/dashboard (#1766)
Bumps [webpack](https://github.com/webpack/webpack) from 5.88.2 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.88.2...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 14:26:44 -05:00
dependabot[bot]
1f1a935228
Bump micromatch from 4.0.5 to 4.0.8 in /trick_source/web/dashboard (#1767)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-05 14:25:26 -05:00
Marcus Rockwell
ac9ff8419e Implement Status Message Menu Action Tests 2024-09-04 18:04:09 -04:00
Marcus Rockwell
2579eaf87b Finished testsuite for font testing 2024-09-04 14:05:16 -04:00
Marcus Rockwell
f9c81f25f4 increased encapsulation in FontChooser.java 2024-09-04 10:34:51 -04:00
Marcus Rockwell
8db6fa4b37 updated status message pane tests 2024-09-04 10:22:06 -04:00
Marcus Rockwell
e78884c81d Status message pane test case update 2024-08-30 10:33:59 -04:00
Pherring04
d2ec14dc02
Wiki button (#1755)
* Added a wiki button

* Removed commented code

* Updated SCP image

---------

Co-authored-by: Pherring04 <plherrin@JSLRL0523040929.ndc.nasa.gov>
2024-08-27 15:03:33 -05:00
Marcus Rockwell
6734452982 Completed test cases for all of the command panel and status messages 2024-08-23 14:16:19 -05:00
Marcus Rockwell
16a39d55da Created test case for status message pane 2024-08-23 13:56:02 -04:00
Mrockwell2
de1cb6740b
Fixed the warning and error messages when toggling monte carlo (#1761) 2024-08-20 10:47:05 -05:00
Marcus Rockwell
158c1787f2 Fixed tests for Checkpoint buttons 2024-08-15 17:40:14 -04:00
Marcus Rockwell
9d88190cf8 Removed Robot Tests from Pipeline Temporarily 2024-08-14 15:49:23 -04:00
Marcus Rockwell
675807fd36 Set up tests for JButtons 2024-08-14 15:48:38 -04:00
Thomas Brain
26f6a02e44
Added "target_integ_time" to Integrator class. It can be useful to know the integration time. (#1760)
Co-authored-by: Thomas Brain <thomas.a.brain@nasa.gov>
2024-08-13 10:51:24 -05:00
Marcus Rockwell
d4c20cd6a6 Added AssertJ Swing to pom.xml 2024-08-12 12:29:53 -04:00
Marcus Rockwell
8d328dbed5 Create a stubbed SimControl Panel 2024-08-08 15:08:21 -04:00
iamthad
92b0168b7b
Speed up Trick::ScheduledJobQueue::push (#1694)
* Speed up Trick::ScheduledJobQueue::push

* Make comparator a static function

* Use upper_bound instead

* Use explicit types

* Update comment

* Fix formatting
2024-07-23 12:16:57 -05:00
Hong Chen
f892b41d2d
Added TRICK_LDFLAGS to the rule for linking shared library for jit input. (#1745)
* Added TRICK_LDFLAGS to the rule for linking shared library so user can use TRICK_LDFLAGS for linking shared library if necessary.

* Removed the new line added by accident.
2024-07-23 11:53:33 -05:00
Marcus Rockwell
922ae5582c Fixed Real Time Toggle Test 2024-07-16 13:25:20 -05:00
Keith Vetter
f2e93ac490
Fix for assigning to non-existent variables (#1708) (#1718)
* Fix for assigning to non-existent variables (#1708)

This fix modifies Trick's convert_swig script.  It
adds a directive to not accept dynamic attributes.
The directive will ensure that modelers do not
assign to non-existent parameter in their input files.

The prior fix (issues #1288 and/or #1603) did not
cover C structures, so this commit is really an
addendum to that fix.  With this commit, the convert_swig
script will generate a non-dynamic directive foreach
class and structure.

This fix also stops generating swig interface code
for typedef structure definitions since swig only
produces an interface to the actual typedef name.
For example, with this typedef:

typedef struct StructureName {
   double  main_engine_thrust;  /* N Thrust of main engine */
   struct StructureName* next;  /* ** Next pointer */
} TypeDefName;

swig creates an interface for "TypeDefName", and not
"StructureName", so there is no need for Trick to
produce anything in regards "StructureName".

* Fix for issue with classes defined in ifndef SWIG block

convert_swig takes in the raw header and does no preprocessing,
so blocks of c/c++ header code which are meant to be skipped
by Swig are processed by convert_swig.  This causes an issue
with the generated python code that try to access classes
that are ifndef SWIGed out.

To fix this, check for class existence in the generated python
code e.g:

if 'MomMom' in globals():
    MomMom.__setattr__ = _swig_setattr_nondynamic_instance_variable(object.__setattr__)

* Fix for assignment to swig_double and swig_int primitives

The previous commit(s) on this branch fixed bad assignments
like (misspell position an attribute of BSTATE_IN):
ball.state.input.positiaaaan = 4.0

This commit fixes bad assignments to leaf/primitive attributes
like (try to add attribute to primitive/leaf double type):

ball.state.input.position.fred = 4.0

* Moved _swig_setattr_nondynamic_instance_variable to right after each class in process_class and removed duplicate _swig_setattr_nondynamic_instance_variable blocks for classes that are not in a namespace.

* Add the call for __setattr__ for class templates.

---------

Co-authored-by: Hong Chen <hong.chen-1@nasa.gov>
2024-07-16 10:34:02 -05:00
Hong Chen
f666708374
Repurposed -OO for all sim run outputs including S_sie.resource being saved in the specified directory. (#1714)
* Repurposed -OO so all sim run outputs including S_sie.resource are saved to the specified folder. The files are placed in the sub-dir either RUN_xxx or DP_Product of the specified folder.

* Updated for repurposed -OO.

* Added quoting code markdown for such as in order to show <name> as is.

* Added quoting code for missing items.

* Updated to raise an error when the --read-only-sim flag is used without the -O or -OO. Also made updates to the related document accordingly.

* Fixed the error message to be more clear.
2024-07-16 10:31:52 -05:00
Marcus Rockwell
c51254094f Merge branch 'master' into HeadlessJavaGUITests 2024-07-14 13:07:06 -05:00
Hong Chen
37e273a024
Corrected .d file path for the clean target in Makefile.input file. (#1735) 2024-06-27 10:34:44 -05:00
Mrockwell2
7bc531273c
1720 websocket freeze issue (#1724)
* fixed web server freeze issue

* Revert "fixed web server freeze issue"

This reverts commit 7883453f6abcd7a13a37c254fc5ebeec2e201385.

* Fixed Webserver freeze issue

---------

Co-authored-by: Marcus Rockwell <marcusrockwell@gmail.com>
2024-06-27 10:25:22 -05:00
dependabot[bot]
abddad8424
Bump braces from 3.0.2 to 3.0.3 in /trick_source/web/dashboard (#1734)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 15:22:52 -05:00
Pherring04
5219c1d279
message (#1712) 2024-05-23 10:29:53 -05:00
Hong Chen
d72312c602
Customize clang diagnostic handling. (#1707)
* Cutomize clang diagnostic handling.

* Removed code that was commented out.
2024-05-14 10:53:11 -05:00
Marcus Rockwell
6a8edf6771 Allow for both gui and headless testing 2024-05-12 15:21:16 -05:00
dependabot[bot]
26c18d95af
Bump ejs from 3.1.9 to 3.1.10 in /trick_source/web/dashboard (#1705)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-07 14:56:17 -05:00
Pherring04
14708ca9cc
Issue-1677 Fix (#1688)
* Added timeout to control panel to variable server connection attempts

* Updated 127.0.0.1 to localhost
2024-04-18 13:46:05 -05:00
jmpenn
5065d96a15
Pre-increment (rather than post-increment) STL iterators in for loops… (#1692)
* Pre-increment (rather than post-increment) STL iterators in for loops. #1594

* Fix a goof. #1594
2024-04-18 11:41:35 -05:00
jmpenn
04822023de
In MemoryManager change delete_var(const char*) to delete_var(std::string) (#1687) 2024-04-04 10:33:18 -05:00
Hong Chen
d40bc12570
Incorporate llvm 18 changes. (#1685)
* Incorporate llvm 18 changes.

* Fixed to set input file properly for clang3.4 or ealier.

* Fixed missing brackets and added the rule back for the condition to call clang init preprocessor which was taken out incorrectly by the last commit.
2024-04-02 13:37:00 -05:00
Marcus Rockwell
b6ff7ec3f1 Added GUI testing to the base Makefile 2024-03-28 17:17:33 -05:00
Marcus Rockwell
ab32e65068 Merge branch 'master' into HeadlessJavaGUITests 2024-03-28 16:31:29 -05:00
jmpenn
c4e60d9f9a
Proposed fix for deadlock on shutdown (#1673)
* Proposed fix for deadlock on shutdown

* Terminate C style comment.

* Added needed libs for applicable tests and updated the logic for when allowing/disallowing connections.

* Need to load additional trick libs for applicable tests for Linux.

---------

Co-authored-by: Hong Chen <hong.chen-1@nasa.gov>
2024-03-28 15:15:19 -05:00
dependabot[bot]
209984255e
Bump express from 4.18.2 to 4.19.2 in /trick_source/web/dashboard (#1678)
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 14:32:56 -05:00
Thomas Brain
48924d585a
python3 GIL locking solution (#1675)
* Implemented use of the python GIL API to replace the less portable mutex solution.

* Replaced nullptr with NULL

---------

Co-authored-by: Thomas Brain <thomas.a.brain@nasa.gov>
2024-03-27 14:20:58 -05:00
dependabot[bot]
e6daf35524
Bump webpack-dev-middleware in /trick_source/web/dashboard (#1676)
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-26 11:05:27 -05:00