-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
I have two requests.
- I wolud like to have a quick action buttons for 'grip_hwp' and 'ungrip_hwp'.
- Encoder Summary last update is not woking, we need fix. The corresponding data feed 'encoder_last_updated' was added to hwp_supervisor in this PR (hwp-supervisor: make IBootState compatible with synaccess. socs#693) and it's been working. I paste the example below.
{'session_id': 0,
'op_name': 'monitor',
'op_code': 3,
'status': 'running',
'degraded': False,
'success': None,
'start_time': 1726171659.4323902,
'end_time': None,
'data': {'timestamp': 1727223174.7388256,
'monitored_sessions': {'temperature': {'agent_id': 'cryo-ls240-lsa2k4g',
'op_name': 'acq',
'timestamp': 1727223174.7388356,
'data': {'fields': {'Channel_1': {'T': 48.648, 'V': 1.0752},
'Channel_2': {'T': 48.463, 'V': 1.0757}},
'timestamp': 1727223174.6316366},
'status': 'ok'},
'encoder': {'agent_id': 'hwp-bbb-a1',
'op_name': 'acq',
'timestamp': 1727223174.7449653,
'data': {'approx_hwp_freq': 2.106526801065021,
'encoder_last_updated': 1727223173.038372,
'irig_time': 1727223173,
'irig_last_updated': 1727223173.9998853,
'last_quad': 0,
'last_quad_time': 1727223173.0384293},
'status': 'ok'},
'pmx': {'agent_id': 'hwp-pmx',
'op_name': 'main',
'timestamp': 1727223174.7526803,
'data': {'curr': 0.3396,
'volt': 12.605,
'prot': 0,
'prot_msg': '',
'source': 'VOLT',
'last_updated': 1727223170.4030426},
'status': 'ok'},
'pid': {'agent_id': 'hwp-pid',
'op_name': 'main',
'timestamp': 1727223174.7577546,
'data': {'current_freq': 2.003,
'target_freq': 2.0,
'direction': 0,
'last_updated': 1727223173.0717185},
'status': 'ok'},
'ups': {'agent_id': 'power-ups-hk',
'op_name': 'acq',
'timestamp': 1727223174.7630773,
'data': {'upsIdentManufacturer_0': {'status': 'Falcon Electric',
'description': 'Falcon Electric'},
'ups_connection': {'last_attempt': 1727223159.9833007, 'connected': True},
'timestamp': 1727223159.916621,
'upsIdentModel_0': {'status': 'SSG3KRM2 ', 'description': 'SSG3KRM2 '},
'upsBatteryStatus_0': {'status': 2, 'description': 'batteryNormal'},
'upsSecondsOnBattery_0': {'status': 0, 'description': '0'},
'upsEstimatedMinutesRemaining_0': {'status': 0, 'description': '0'},
'upsEstimatedChargeRemaining_0': {'status': 100, 'description': '100'},
'upsBatteryVoltage_0': {'status': 139, 'description': '139'},
'upsBatteryCurrent_0': {'status': 0, 'description': '0'},
'upsBatteryTemperature_0': {'status': 14, 'description': '14'},
'upsOutputSource_0': {'status': 3, 'description': 'normal'},
'upsInputVoltage_1': {'status': 226, 'description': '226'},
'upsInputCurrent_1': {'status': 0, 'description': '0'},
'upsInputTruePower_1': {'status': 0, 'description': '0'},
'upsOutputVoltage_1': {'status': 239, 'description': '239'},
'upsOutputCurrent_1': {'status': 0, 'description': '0'},
'upsOutputPower_1': {'status': 0, 'description': '0'},
'upsOutputPercentLoad_1': {'status': 300, 'description': '300'}},
'status': 'ok'}},
'hwp_state': {'temp': 48.648,
'temp_status': 'ok',
'temp_thresh': 60.0,
'temp_field': 'Channel_1',
'ups_output_source': 'normal',
'ups_estimated_minutes_remaining': 0,
'ups_estimated_charge_remaining': 100,
'ups_battery_voltage': 139,
'ups_battery_current': 0,
'ups_minutes_remaining_thresh': None,
'ups_connected': True,
'ups_last_connection_attempt': 1727223159.9833007,
'pid_current_freq': 2.003,
'pid_target_freq': 2.0,
'pid_direction': 0,
'pid_last_updated': 1727223173.0717185,
'pid_max_time_since_update': 60.0,
'pmx_current': 0.3396,
'pmx_voltage': 12.605,
'pmx_source': 'VOLT',
'pmx_last_updated': 1727223170.4030426,
'enc_freq': 2.106526801065021,
'last_quad': 0,
'last_quad_time': 1727223173.0384293,
'gripper_iboot': {'instance_id': 'hwp-synaccess-1',
'outlets': [1, 2],
'agent_type': 'synaccess',
'outlet_state': {'1': 1, '2': 1},
'op_data': {'agent_id': 'hwp-synaccess-1',
'op_name': 'acq',
'timestamp': 1727223174.7727315,
'data': {'fields': {'0': {'status': 1, 'name': 'outlet1'},
'1': {'status': 1, 'name': 'outlet2'},
'2': {'status': 1, 'name': 'outlet3'},
'3': {'status': 1, 'name': 'outlet4'},
'4': {'status': 1, 'name': 'outlet5'}},
'timestamp': 1727223174.1279612},
'status': 'ok'}},
'driver_iboot': {'instance_id': 'hwp-synaccess-1',
'outlets': [4, 5],
'agent_type': 'synaccess',
'outlet_state': {'4': 1, '5': 1},
'op_data': {'agent_id': 'hwp-synaccess-1',
'op_name': 'acq',
'timestamp': 1727223174.7683678,
'data': {'fields': {'0': {'status': 1, 'name': 'outlet1'},
'1': {'status': 1, 'name': 'outlet2'},
'2': {'status': 1, 'name': 'outlet3'},
'3': {'status': 1, 'name': 'outlet4'},
'4': {'status': 1, 'name': 'outlet5'}},
'timestamp': 1727223174.1279612},
'status': 'ok'}},
'acu': {'instance_id': 'acu',
'min_el': 48.0,
'max_el': 70.0,
'max_time_since_update': 30.0,
'mount_velocity_grip_thresh': 0.005,
'grip_max_boresight_angle': 1.0,
'last_updated': 1727223174.7830014,
'el_current_position': 60.0002,
'el_commanded_position': 60.0003,
'el_current_velocity': -0.0009,
'az_current_velocity': 0.501,
'bor_current_position': -0.0103,
'bor_commanded_position': -0.0103,
'request_block_motion': False,
'request_block_motion_timestamp': 0.0,
'ACU_motion_blocked': None,
'use_acu_blocking': False,
'block_motion_timeout': 60.0},
'supervisor_control_state': {'state_type': 'Idle',
'start_time': 1727223091.2366035,
'last_update_time': 1727223174.3628798}},
'actions': {'pmx': 'ok', 'gripper': 'ok'}},
'messages': [[1726171659.4323902, 'Status is now "starting".'],
[1726171659.433627, 'Status is now "running".']]}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
