_fswTemplateFolder¶
General Purpose¶
The purpose of this folder is to provide a Basilisk module template. While this example is for a C-based module, the general guidelines apply to C++ modules as well.
A module folder can contain a series of related module folders.  By adding a *.rst file to this folder the purpose of a folder can be documented.  The *.rst file name should be the same as the parent folder.
The sub-folder called “_GeneralModuleFiles” contains support *.c/h files that are used by all modules. As a minimum, a file is required that defines the Module specific output message type
Usage¶
To use this template:
- make a copy of this sub-folder 
- rename the sub-folder name 
- rename the - *.c,- *.h,- *.iand- *.rstfiles inside this sub-folder with the same module name
- rerun Cmake on the Basilisk project to create an updated Xcode or MS Studio Project file 
- edit the - *.ifile first- replace - fswModuleTemplatetext inside this- *.ifile with the new sub-module name
- include the proper module output message definition - *.hfile
 
- edit the - *.hfile next- provide a unique sub-module MACRO name at the top of the file 
- replace - fswModuleTemplatetext inside this- *.hfile
- add any needed Module configuration data states and remove the dummy variable 
- add any needed output or input message interface variables 
- add any needed sub-module specific support subroutine interface definitions 
 
- edit the - *.cfile last- update comment with the module name and description 
- replace - fswModuleTemplatetext inside this- *.cfile
- add any needed - *.hinclusions at the top.
- edit the Update() routine introductory comment to describe what this module does 
 
- edit the - *.rstfile to document this module
- in the - _UnitTestfolder,- replace - fswModuleTemplatetext inside- test_xxx.pyfiles
- update the unit test to provide an I/O unit test of this module 
- update the test method doc-string to report on what is being tested 
 
Directories: