Commit Graph

2153 Commits

Author SHA1 Message Date
Pherring04
72a9e0eaae Fixed merge issues 2024-07-17 09:56:10 -05:00
Pherring04
b8c3ed74fc Merging master 2024-07-16 15:54:55 -05:00
Pherring04
7b4253d703
Added swig support for templates with array parameters (#1742)
* Added support for templates with array parameters

* Added test case for array templates
2024-07-16 10:44:04 -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
Pherring04
de19060859 Merge branch 'master' into SWIG-4-Template-Changes 2024-07-11 11:54:00 -05:00
Pherring04
bc44a652b9
Merge pull request #1739 from nasa/CentOS-7-CI-round2
CentOS 7 CI Failures - Run CentOS CI with Node 16 instead of 20
2024-07-11 11:03:55 -05:00
Pherring04
08c1259d2e Updated convert_swig to account for template directive changes in SWIG 4 2024-07-11 10:34:46 -05:00
Pherring04
c75a71579c Clean up 2024-07-10 15:15:10 -05:00
Pherring04
928bec15b0 CentOS 7 CI Testing 2024-07-10 14:52:50 -05:00
Pherring04
21458bf30e CentOS 7 CI Testing 2024-07-10 12:09:56 -05:00
Pherring04
3686191e6a CentOS 7 CI Testing 2024-07-10 11:52:33 -05:00
Pherring04
d0a12c885f CentOS 7 CI Testing 2024-07-10 11:32:35 -05:00
Pherring04
29cb2ad7d5 Changed checkout from v3 to v4 2024-07-10 11:25:58 -05:00
Pherring04
03246a5137 CentOS 7 CI Testing 2024-07-10 09:17:58 -05:00
Pherring04
3835379acb
Merge pull request #1738 from nasa/CentOS-Mirrorlink-Fix
CentOS CI Fix
2024-07-02 14:59:31 -05:00
Pherring04
5ff32b1622 CI testing 2024-07-02 13:02:36 -05:00
Pherring04
7d663a7f32 CI testing 2024-07-02 12:47:00 -05:00
Pherring04
1f6cebfc3c CI testing 2024-07-02 12:42:38 -05:00
Pherring04
f3c0fbd0a6 CI testing 2024-07-02 12:40:53 -05:00
Pherring04
2b3718e112 Change CentOS to base url 2024-07-02 12:36:06 -05:00
Pherring04
3030603298 Change CentOS to base url 2024-07-02 12:33:43 -05:00
Pherring04
47dad0028b Change CentOS to base url 2024-07-02 12:21:24 -05:00
Pherring04
03c6729819 Change CentOS to base url 2024-07-02 12:18:13 -05:00
Pherring04
69326b6279 Change CentOS to base url 2024-07-02 10:51:34 -05:00
Pherring04
3fb87b8f9c ci testing 2024-07-02 09:16:04 -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 7883453f6a.

* 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
Hong Chen
aab65cf803
Merge pull request #1733 from nasa/Fix-MacOS-CI-dependencies-install
Updated the MacOS CI workflow so that bash won't exit with brew upgrade exits with non-zero exit code.
2024-06-20 13:36:28 -05:00
Hong Chen
23b1c7d74d Updated the MacOS CI workflow so that bash won't exit with brew upgrade exits with non-zero exit code. 2024-06-19 10:03:14 -05:00
Cody Martin
b3c825d026
Fix typo in Realtime Best Practices (#1732)
Remove a duplicate _frame from a plain text version of a filename
2024-06-18 15:05:58 -05:00
Hong Chen
c2c068a04a
Made updates for macOS especially for Apple Silicon. (#1721) 2024-06-05 11:58:03 -05:00
Mrockwell2
10831cee66
Merge pull request #1723 from nasa/1722-documentation-placeholder-instead-of-link
1722 documentation placeholder instead of link
2024-05-29 11:13:44 -05:00
Mrockwell2
e044d1f13a
Fixed links 2024-05-29 10:41:04 -05:00
Mrockwell2
982a434957
Update Simulation-Definition-File.md
Added an actual link instead of a placeholder
2024-05-29 10:29:58 -05:00
Hong Chen
a1d151c4c3
Updated not to always pass disown flag for swig pointer conversion instead base on "own" value of the input object. (#1690) 2024-05-23 10:37:27 -05:00
Pherring04
d997759a6d
Water Clock Cleanup (#1711)
* Cleaned up Water Clock and added C interface support for message subscriptions

* Added support for message publishers in C interface

* Revert "Added support for message publishers in C interface"

This reverts commit e3233891d7.
2024-05-23 10:30:56 -05:00
Pherring04
5219c1d279
message (#1712) 2024-05-23 10:29:53 -05:00
Hong Chen
27e4264c2a
Removed double quotes for port number and added some inline code syntax highlighting with back-ticks. (#1717)
* Removed double quotes for port number and added some inline code syntax highlighting with back-ticks.

* Added one more inline code syntax highlighting.
2024-05-23 10:13:50 -05:00
jmpenn
ee2f824550
Disable unneeded SimObjects from default_trick_sys.sm in Trick exampl… (#1719)
* Disable unneeded SimObjects from default_trick_sys.sm in Trick example sims.

* Take out unit test disable. Add some S_defines I forgot.
2024-05-23 10:12:27 -05:00
jmpenn
fdb2bb20b9
Update Realtime-Best-Practices.md
Add "Did I mention you should buy more memory?" to 3.5 instead of "Buy more memory! Do it!" Makes it clear that it's intentional.
2024-05-21 11:48:48 -05:00
jmpenn
0c8bc45a84
Update Realtime-Best-Practices.md
Fix link format
2024-05-20 13:16:43 -05:00
jmpenn
4744408762
Update Realtime-Best-Practices.md
Fix example heading format:
Added space between ##### and title
2024-05-20 11:06:59 -05:00
jmpenn
95f357a937
Update How-To-Guides.md
Fix Link:
Change  .../RealTime-Best-Practices.md" to Realtime-Best-Practices.md"
2024-05-20 10:57:58 -05:00
Hong Chen
4d621e015a
Merge pull request #1710 from nasa/Realtime-Best-Practices
Wrote a Real-time Best Practices HOW TO
2024-05-20 10:39:30 -05:00
John M. Penn
5b994e687d Fixed link to figure. 2024-05-16 21:17:25 -05:00
John M. Penn
92f1234deb Fix review issues. 2024-05-16 21:08:46 -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
John M. Penn
12d483f094 Mark down formating fixes to Realtime-Best-Practices.md 2024-05-13 14:44:17 -05:00