Module: rateMsgConverter

The purpose of this module is to read in the IMU sensor body message from message type IMUSensorBodyFswMsg, and store it in the output message of type NavAttIntMsg. More information is available at PDF Description.


Functions

void SelfInit_rateMsgConverter(rateMsgConverterConfig *configData, int64_t moduleID)

This method initializes the configData for this module. It checks to ensure that the inputs are sane and then creates the output message

Return

void

Parameters
  • configData: The configuration data associated with this module

  • moduleID: The Basilisk module identifier

void CrossInit_rateMsgConverter(rateMsgConverterConfig *configData, int64_t moduleID)

This method performs the second stage of initialization for this module. It’s primary function is to link the input messages that were created elsewhere.

Return

void

Parameters
  • configData: The configuration data associated with this module

  • moduleID: The Basilisk module identifier

void Update_rateMsgConverter(rateMsgConverterConfig *configData, uint64_t callTime, int64_t moduleID)

This method performs a time step update of the module.

Return

void

Parameters
  • configData: The configuration data associated with the module

  • callTime: The clock time at which the function was called (nanoseconds)

  • moduleID: The Basilisk module identifier

void Reset_rateMsgConverter(rateMsgConverterConfig *configData, uint64_t callTime, int64_t moduleID)

This method performs a complete reset of the module. Local module variables that retain time varying states between function calls are reset to their default values.

Return

void

Parameters
  • configData: The configuration data associated with the module

  • callTime: The clock time at which the function was called (nanoseconds)

  • moduleID: The Basilisk module identifier

struct rateMsgConverterConfig
#include <rateMsgConverter.h>

Top level structure for the sub-module routines.

Public Members

char navRateOutMsgName[MAX_STAT_MSG_LENGTH]

The name of the navAttIntMsg output message*/.

int32_t navRateOutMsgID

ID for the outgoing message */.

char imuRateInMsgName[MAX_STAT_MSG_LENGTH]

The name of the imuSensorBody Input message*/.

int32_t imuRateInMsgID

ID for the incoming message */.

BSKLogger *bskLogger

BSK Logging.