- The
GyroSensor
class simulates a gyro sensor. - The
GyroSensor
class calculates and returns the observed angular velocity with noise.
gyro_sensor.cpp, gyro_sensor.hpp
: Definitions and declarations of the classgyro_sensor.ini
: Initialization fileplot_gyro_sensor.py
: An example of a Python script to plot gyro sensor output
- Set the parameters in
gyro_sensor.ini
.quaternion_b2c
: Frame conversion quaternion from body to component frame.- Other parameters
- Parameters for the
Component
class - Parameters for the
Sensor
class - Parameters for the
PowerPort
class
- Parameters for the
- Create an instance by using the initialization function
InitGyroSensor
- Use the
Get*
function to get angular velocity information.
- The
MainRoutine
function converts the angular velocity coordinate from the body to the component and adds noises using the feature of theSensor
class.
- NA
- NA
- The output result obtained by the default initial settings.
- The figure is generated by the Python script.