ASTT Component Manager API

The ASTTComponentManager class is responsible for managing ASTT components.

class src.component_managers.astt_comp_manager.ASTTComponentManager[source]
clear_all_logs()[source]

Clear all the logs in app_dev.log.

connect_to_network()[source]

Connect to the CAN0.

connect_to_plc_node()[source]

Connect to the C++ antenna simulator.

gen_mode_state_enums(name_of_enum, value)[source]

Generate enum values for transmitted values.

get_antenna_app_state()[source]

Return the antenna application.

get_antenna_func_state()[source]

Return the antenna functional state.

get_antenna_mode()[source]

Return the antenna mode.

get_antenna_stow_sensor_state()[source]

Return the antenna stow sensor state.

get_plc_state()[source]

Return node state.

is_az_allowed(az)[source]

Allow Azimuth of [-127,127].

is_el_allowed(el)[source]

Allow elevation of [-15,92].

point_to_coordinates(timestamp, az, el)[source]

Commands the simulator to point az/el.

position_change_callback(incoming_object)[source]

Transmit PDO callback .

set_idle_mode()[source]

Commands the ASTT Antenna to idle mode.

set_plc_node_to_operational()[source]

Change all the nodes state to OPERATIONAL.

set_plc_node_to_preoperational()[source]

Change all the nodes state to PRE-OPERATIONAL.

set_point_mode()[source]

Commands the ASTT Antenna to point mode.

set_stow_mode()[source]

Commands the ASTT Antenna to stow mode.

store_initial_position()[source]

Return starting position’s of timestamp, azi, and ele.

subscribe_to_az_change()[source]

Canopen Subscription to the Azimuth.

subscribe_to_el_change()[source]

Canopen Subscription to the Elevation.

subscribe_to_func_state_and_mode()[source]

Canopen Subscription to the functional state and mode.

subscribe_to_mode_command_obj()[source]

Canopen Subscription to the mode command obj .

subscribe_to_stow_sensor()[source]

Canopen Subscription to stow sensors.

subscribe_to_timestamp()[source]

Canopen Subscription to the Timestamp.

track_sun(duration_time, az_speed=None, el_speed=None)[source]

Calculate Sun’s Az and El.

trigger_transmission()[source]

Triggers the transmission of Az/El.