Post · 1 min read· pp. 412–413

makeDraftModule 

makeDraftModule

This script is used to create a Basilisk module folder given the basic I/O and naming information.

  • Modify either fillCppInfo() or fillCInfo() to contain the desired information for the new BSK module.
  • edit the __main__ routine at the end of the file to call the desired module type with createCppModule() or createCModule.
  • run the script from the command line using python3 makeDraftModule.py

makeDraftModule.fillCInfo(module)[source] : Fill in the C module information. This should be edited before running to meet the new module needs.

makeDraftModule.fillCppInfo(module)[source] : Fill in the C++ module information. This should be edited before running to meet the new module needs.

class makeDraftModule.moduleGenerator[source] : Bases: object

code
class to generate draft Basilisk modules

checkPathToNewFolderLocation()[[source]](https://avslab.github.io/basilisk/_modules/makeDraftModule.html#moduleGenerator.checkPathToNewFolderLocation)
:   Make sure the supplied module destination path is correct

createCModule()[[source]](https://avslab.github.io/basilisk/_modules/makeDraftModule.html#moduleGenerator.createCModule)
:   Create a C Basilisk module

createCppModule()[[source]](https://avslab.github.io/basilisk/_modules/makeDraftModule.html#moduleGenerator.createCppModule)
:   Create a C++ Basilisk module

createNewModuleFolder()[[source]](https://avslab.github.io/basilisk/_modules/makeDraftModule.html#moduleGenerator.createNewModuleFolder)
:   Create the new module folder

createRstFile(*moduleType*)[[source]](https://avslab.github.io/basilisk/_modules/makeDraftModule.html#moduleGenerator.createRstFile)
:   Create the Module RST documentation draft.

createTestFile(*type*)[[source]](https://avslab.github.io/basilisk/_modules/makeDraftModule.html#moduleGenerator.createTestFile)
:   Create a functioning python unit test file that loads the new module, creates and connect blank
    input messages, and sets up recorder modules for each output message.

readLicense()[[source]](https://avslab.github.io/basilisk/_modules/makeDraftModule.html#moduleGenerator.readLicense)
:   Read the Basilisk license file