39 Commits

Author SHA1 Message Date
Vince Woo
48e4720419
Created new SerialBufferBase as a parent of SerializeBufferBase (now renamed LinearBufferBase). (#4288)
* Created new SerialBufferBase as a parent of SerializeBufferBase. Renaming interface functions to be less confusing.

* Deprecating copyRawOffset. No direct use-cases in F' core.

* Make SerialBufferBase a true pure virtual interface.

* Changing Serializable to work with SerialBufferBase parent interface.

* Changing copyRaw and copyRawOffset to work with SerialBufferBase

* Updating documentation for SerialBufferBase usage

* Adding some documentation. Adding missing ASSERT in copyRaw. Fixing some bugs that new ASSERT uncovered.

* Renaming SerializeBufferBase to LinearBufferBase. Add a using declaration to maintain backwards compatability. Properly mark LinearBufferBase functions as override.

* Filling in the rest of the docstrings for the classes in Serializable

* Removing redundant virtual keyword on override function

* Applying clang formatting

* Incorporating PR comments

* Fix compile issues

* Bump version to alpha

* Format

* v

---------

Co-authored-by: M Starch <LeStarch@googlemail.com>
2025-11-06 16:23:20 -08:00
Vince Woo
3422cfa117
Mark legacy serialize and deserialize methods as DEPRECATED. Upgrade remaining references to legacy methods. (#4145)
* Mark legacy serialize and deserialize functions as deprecated. Clean up of remaining legacy references.

* Upgrading serialization in FppTestProject and Ref

* Fixed formatting issues
2025-09-22 07:57:34 -07:00
Thomas Boyer-Chammard
ab58cf18fb
Format Fw and add to CI (#3976)
* Format Fw and add to CI

* Fix include of HPP file instead of H in extern C

* Fix format strings
2025-08-04 12:56:02 -07:00
M Starch
292476b0c0
Purge PlatformIntType and PlatformUIntType (#3719)
* Purging PlatformIntType and PlatformUIntType

* CI fixes

* Fixing review requirements

* Fix CI error

* Fix CI cmake test regression

* Fix RHEL8 regression
2025-06-16 17:44:24 -07:00
Mishaal
eea6aca8fa
Switch the type of the Task priority to FwTaskPriorityType (#3617)
* Change the type of the Task priority to FwTaskPriorityType

* Fix missed UT arg update

---------

Co-authored-by: Mishaal Aleem <aleem@fprime-fsw-0.jpl.nasa.gov>
Co-authored-by: Rob Bocchino <bocchino@jpl.nasa.gov>
2025-05-21 14:24:49 -07:00
M Starch
0659f0940b
Refactored type organization (#3422)
* Refactored type organization

* Creating better configuration/types header hierarchy

* Replace FpConfig type aliases with FPP generated aliases

* Add the aliases to the FPP model

* Config + Type Aliases builds

* Renamed Fw/Types.h,hpp to Fw/FPrimeBasicTypes.h,hpp

* Updating to FPP-a7

* Adding newline

* sp

* Fixing minor nit from review

* Spurious ;

---------

Co-authored-by: Andrei Tumbar <andrei.tumbar@jpl.nasa.gov>
2025-04-03 12:11:36 -07:00
M Starch
ec08d43dd3
Removes NATIVE_INT_TYPE, NATIVE_UINT_TYPE, and POINTER_CAST from Fw (#3286)
* NATIVE_INT_TYPE use in toString

* NATIVE_INT_TYPE use in SimpleObjRegistry

* NATIVE_INT_TYPE use in Asserts

* NATIVE_INT_TYPE use in Fw/Comp

* NATIVE_INT_TYPE use in getCapacity

* NATIVE_INT_TYPE use in getEntries

* NATIVE_INT_TYPE use in size/length

* NATIVE_INT_TYPE use in FILE_NAME_ARG

* NATIVE_INT_TYPE use in Fw (misc)

* NATIVE_INT_TYPE use in identifier

* NATIVE_INT_TYPE use in Fw (misc II)

* POINTER_CAST in Buffer

* POINTER_CAST in Serializable

* sp

* Removing no longer used DefaultTypes.hpp

* Fixes to accomidate Fw refactor

* Unit-test and CI fixes

* Fixing review comments - pt 1
2025-03-04 14:42:48 -08:00
M Starch
fa9a3d7958
Converting NATIVE_INT_TYPE in assert casts (#3238) 2025-02-14 13:56:43 -08:00
M Starch
d13c7bf529
Fixes #1708 by Completing the work In Fw (#3173)
* Making string formatting into a fprime implementation choice

* Removing printf from Fw and cleaning-up toString methods

* Fixes to get UTs to compile

* Reverting test change to assert

* Removing error console and restoring assert functionality

* Create empty library to avoid 3.16 limitations on interface libs

* Turning off unused check on intentionally unused variable

* sp

* Fixing recursive calls and other CI problems

* Fixing compile issues
2025-02-11 17:44:45 -08:00
M Starch
706fadf966
Removing DEBUG_PRINT like statements. Part of: #1708 (#3140)
* Removing DEBUG_PRINT like statements. Part of: #1708

* Review update: CIRCULAR_DEBUG
2025-01-23 16:11:48 -08:00
Cel Skeggs
a16f260701
Fix format string specifiers for queue names (#3146) 2025-01-21 13:00:22 -08:00
M Starch
d034786bc6
Refactor Os::Queue into CMake selection (#2895)
* Initial interface tests

* Initial working rules tests

* Moving MaxHeap to Types; Fixing minor bugs

* Basic ConditionVariables, Queue blocking, and UTs

* Queue updates for Ref

* Queue build all WIP

* UTs compile

* Passing UTs

* Removing unupdated linux queue implementations

* Fixing linux specific build issues

* Fixing task regression

* Fixing queue test memory leak

* Spelling, comments, formating, and todos

* Condition variable tests

* Minor edits from review

* Condition variable interface tests, fixes

* sp

* ci fixes

* Minor condition variable fix

* Fixing post merge issues

* Final review fixes

* Fixing FS stubs

* Fixing max heap failures

* Linux fixes

* Fixing issues w.r.t. CI
2024-09-30 12:42:50 -07:00
Ryder Dettloff
5170217278
refactored FW_OBJ_NAME, FW_QUEUE_NAME, and FW_TASK_NAME. (#2751)
Co-authored-by: kayleyyoung253 <kayley.young253@gmail.com>
2024-06-04 10:12:37 -07:00
M Starch
640cf44c80
Os task refactor issue 2526 (#2672)
* Task refactor WIP -- compiles, but does not link

* Adding isCooperative method - WIP

* more WIP

* Initial Os::Posix::Task implementaion

* Adding makeDelegate functions; Fixing existing UTs

* Touching up comments

* Fixing Linux issues

* Adding type_traits import

* Removing TaskId and reworking handle storage

* Do not need to assert that a reference is not nullptr; compiler will get angry

* Starting UT development

* Start test works

* Working start and join rules; random test

* Adding state, delay, and count tests

* Adding stub interface tests

* sp

* Registry tests

* Fixing UTs

* Fixing PTHREAD_MIN_STACK for linux

* Missing newlines

* Fixing GPIO driver's task

* More build fixes

* Fixes for CI

* Correcting errors in GNU only code

* Fixing review comments

* Fixing sp

* Fixing RPI (again)

* Removing divergent open rules from interface testing. Fixes #2733

* Fixing review comments

---------

Co-authored-by: Kevin F. Ortega <kevin.f.ortega@jpl.nasa.gov>
2024-05-22 16:38:18 -07:00
Johan Bertrand
d5181219d0
Fixed conversion warnings on framework tests (#2606)
---------

Co-authored-by: Michael D Starch <Michael.D.Starch@jpl.nasa.gov>
2024-04-29 18:39:20 -07:00
Rob Bocchino
c02f35145e
Remove FPP dependencies on native int types (#2548)
* Remove FPP dependencies on native int types

* Revise FpConfig

* Fix errors in FpConfig

* Revise types

Add size type alias to Serializable
Remove type aliases for generated code
2024-03-04 19:34:23 -08:00
Thomas Boyer-Chammard
bdfe2419b5
Add Fw::ObjectName to hold Fw::ObjBase name (#2497)
* Implement Fw::ObjectName

* format

* Add test case

* Fix PolyDb UT and spelling

* Explicit constructor and use CHAR

* Revise ObjBase.hpp

Don't include ObjectName header unless object names are enabled

* Update requirements.txt for fpp==2.1.0a4

* Fix static code analysis warnings

* cast string_copy return value to void

* Resolve unchecked argument

---------

Co-authored-by: Robert L. Bocchino Jr <bocchino@jpl.nasa.gov>
2024-03-04 19:31:59 -08:00
Johan Bertrand
7d13cbd8b8
Fix pedantic warnings (#2441)
* Fix macro pedantic warning

* Fixed pedantic warnings
2024-01-04 17:02:36 -08:00
M Starch
adc5623c5e
Merge pull request #1155 from nasa/devel
Fixes from devel.
2021-12-13 12:42:10 -08:00
Fabrizio Sandri
0471c3d53d
Remove redundant null terminate (#1151)
* Remove redundant null terminate

* Null terminate with size check
2021-12-13 12:17:23 -08:00
M Starch
c263a81132 mstarch: merging devel into v3.0.0 2021-10-04 18:19:29 -07:00
Joshua Anderson
234bb5d176
Replace NULL with nullptr (#1049) 2021-09-29 09:04:52 -07:00
M Starch
a08dd11292
lestarch: reworking posix tasks (#992)
* lestarch: reworking posix tasks

* lestarch: correcting macOS issues; using deprecate instead of logger warnings

* lestarch: cleaning up task rework

* lestarch: fixing .start in UTs, docs, templates

* lestarch: cleaning-up non-default driver start calls

* lestarch: fixing stubbed implementation signature

* lestarch: moving reconnect up in order of args to socket read task
2021-09-16 15:33:47 -07:00
Joshua Anderson
f1f5d499c0 Remove deprecated C style headers 2021-08-31 11:36:16 -07:00
Joshua Anderson
d6cc93fadb Fw: Convert C style casts to C++ style casts 2021-08-31 10:19:35 -07:00
Joshua Anderson
9c4f2cc6c8
Backport 80char replacement (#923)
* Backport replacement of EightyCharacterString with Fw::String

* Remove test usage of 80 charater strings
2021-08-20 16:05:52 -07:00
Joshua Anderson
4cd74518ad
Replace usage of 80 Char String with FixLengthString (#893) 2021-08-10 12:53:38 -07:00
Joshua Anderson
1b9c785ce6
Remove void from parameterless functions (#811) 2021-07-14 12:54:01 -07:00
Josh Soref
5da3aff0b6 spelling: iteration
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-03-07 14:48:31 -05:00
Joshua Anderson
3cccd731d9
Refactor FW_OBJECT_NAMES switches and fix building without object names
Instead of adding the name argument to a constructor when FW_OBJECT_NAMES
is enabled, always supply a name argument.

Add a marco that conditionally sets the name to "" if FW_OBJECT_NAMES is not set.
This cleans up a lot of the conditional compilation switches that weren't being tested
and would silently break, while still stripping the strings from the binary.
2020-10-07 17:19:05 -07:00
Michael D Starch
02fa437829 mstarch: moving configuration files to a specified place 2020-07-13 14:35:02 -07:00
M Starch
a1de4527a8 lestarch: baremetal compilation fixes 2020-03-27 14:53:08 -07:00
Michael D Starch
6cc871610d mstarch: fixing reviewed items for baremetal 2019-11-14 16:21:17 -08:00
Michael D Starch
d0b98fc007 mstarch: minor cleaning to baremetal code, and release README update 2019-11-14 12:59:03 -08:00
M Starch
4825c5f100 lestarch: latest F prime merge 2019-09-11 08:51:25 -07:00
M Starch
b38a22cd44 lestarch: regressing VirtualComponent friend test 2019-03-02 01:15:21 -08:00
M Starch
3c616410d2 lestarch: adding baremetal thread scheduler 2019-03-02 01:05:54 -08:00
Timothy Canham
84afa1b95e Merge Autocoder/framework/Gse fixes from helicopter 2019-02-27 10:56:36 -08:00
Timothy Canham
6d9c4c2d06 Initial check-in 2017-06-16 08:25:38 -07:00