neclib.simulators.antenna#
Emulator for telescope antenna motion and corresponding encoder reading.
Aliases#
AzElData(az: Any = None, el: Any = None) |
|
AzElData(az: Any = None, el: Any = None) |
|
List, specialized in parameter storing. |
- class AntennaEncoderEmulator(device_moment_of_inertia=(<function <lambda>>, <Quantity 3000. m2 kg>), motor_torque=(<Quantity 11.5 N m>, <Quantity 11.5 N m>), angular_resolution=(<Quantity 0.13728814 arcsec>, <Quantity 0.13728814 arcsec>))[source]#
Bases:
object
Emulator of antenna response for simulator.
- Parameters:
device_moment_of_inertia (Tuple[Union[Quantity, Callable[[Quantity, Quantity], Quantity]], Union[Quantity, Callable[[Quantity, Quantity], Quantity]]]) – Moment of inertia of antenna.
motor_torque (Tuple[Quantity, Quantity]) – Maximum torque the motor can exert.
angular_resolution (Tuple[Quantity, Quantity]) – Angular resolution of the encoder.
Notes
To support coordinate-dependent moment of inertia, Az. and El. axes cannot independently be implemented.
Warning
API may change, as API of encoder driver module isn’t fixed yet.
Example
>>> enc = neclib.simulators.AntennaEncoderEmulator() >>> pid_az = neclib.controllers.PIDController() >>> speed = pid_az.get_speed(30, enc.read.az) >>> enc.command(speed, "az")
- ANGLE_UNIT: ClassVar[Literal['deg', 'rad', 'arcmin', 'arcsec']] = 'deg'#
- property dt: float#
Time interval between last two call for encoder reading.