Description

The Gimbal is a single-axis pointing mount that rotates an attached payload about its local Up-vector (yaw). It inherits from Motor Electrical Controlled, so when connected to a Power Bus it draws current from the EPS using the motor parameters. When not connected, it runs in standalone mode at the commanded slew rate. Gimbals can be stacked for multi-axis pointing and can be placed on spacecraft or Ground Stations. The component does not apply reaction torques or mass-property changes to the parent body; for physics-accurate coupling, use the Hinged Rigid Body.


Example Use Cases

  • Antenna Pointing: Slew an antenna to maintain line of sight to a ground target or relay.
  • Camera Mount: Stack two or three gimbals for multi-axis imaging without slewing the spacecraft.
  • Ground Station Tracking: Point a dish or sensor on a ground station toward a spacecraft pass.

Module Implementation

Each update, the gimbal optionally reads a command message, clamps the target, drives the motor toward the target, integrates the angle, and applies a yaw to the local transform when the angle change exceeds the step threshold.

Command and Limits

If a command message is connected, the target angle , desired slew rate , and lock flag are taken from that message. The target is then clamped to the configured limits:

where and are the minimum and maximum allowed angles in degrees.

Position Error and Speed Command

The position error is:

where is the current gimbal angle in degrees. A deadband is derived from the step angle :

If the gimbal is locked or , the motor speed command is set to zero. Otherwise:

where is the desired slew rate in rad/s. The motor and optional EPS solve then run through the base electrical motor model.

Effective Speed

The angle is integrated using an effective motor speed [rad/s]:

  • With Power Bus: If the circuit is open or armature current is near zero, . Otherwise the commanded back-EMF speed is used, but capped by available terminal voltage when :

If , then ; otherwise .

  • Standalone: equals the commanded back-EMF speed from the motor model.

Angle Integration

When unlocked and outside the deadband, the angle is updated as:

If the step overshoots the target, is snapped to . The angle is then clamped to . The limited flag is set when is within the deadband of either limit.

Reported velocity and shaft torque are taken from the effective speed and the motor shaft torque, respectively.

Spatial Transform

A yaw about the local Up-axis is applied only when the change from the previous applied angle meets the step threshold:

This models angle quantization: the internal angle tracks continuously (subject to limits and snap), while the transform updates in discrete steps of at least .


Assumptions/Limitations

  • Rotation is about the local Up-axis only; multi-axis pointing requires stacked gimbals.
  • Reaction torques and mass-property rates are not applied to the spacecraft; large moving masses may introduce small numerical inconsistency while the gimbal is moving.
  • With a Power Bus, motion requires closed-circuit power and sufficient terminal voltage relative to back-EMF; otherwise the gimbal does not move.
  • The step angle deadband can produce visible quantization (“jitter”) of the visual transform if is large.