- The
GyroSensorclass simulates a gyro sensor. - The
GyroSensorclass 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
Componentclass - Parameters for the
Sensorclass - Parameters for the
PowerPortclass
- Parameters for the
- Create an instance by using the initialization function
InitGyroSensor - Use the
Get*function to get angular velocity information.
- The
MainRoutinefunction converts the angular velocity coordinate from the body to the component and adds noises using the feature of theSensorclass.
- NA
- NA
- The output result obtained by the default initial settings.
- The figure is generated by the Python script.
