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

class to generate draft Basilisk modules

checkPathToNewFolderLocation()[source]

Make sure the supplied module destination path is correct

createCModule()[source]

Create a C Basilisk module

createCppModule()[source]

Create a C++ Basilisk module

createNewModuleFolder()[source]

Create the new module folder

createRstFile()[source]

Create the Module RST documentation draft.

createTestFile(type)[source]

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]

Read the Basilisk license file