Skip to content

Commit

Permalink
add missing rw enums and bitfields
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Oct 28, 2024
1 parent fbe50fa commit f4bd504
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion oresat_configs/base/reaction_wheel.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
objects:
- index: 0x4000
name: ctrl_stat
name: ctrl_stat
description: reaction wheel controller status
object_type: record
subindexes:
Expand All @@ -9,6 +9,24 @@ objects:
data_type: uint8
description: controller state
access_type: ro
value_descriptions:
none: 0
idle: 1
system_error: 2
controller_error: 3
torque_control: 4
vel_control: 5
pos_control: 6
motor_resistance_cal: 7
motor_inductance_cal: 8
encoder_dir_cal: 9
encoder_offset_cal: 10
encoder_test: 11
open_loop_control: 12
clear_errors: 13
encoder_validation: 14
shitty_offset_cal: 15
vel_ramp_control: 16

- subindex: 0x2
name: procedure_result
Expand All @@ -21,6 +39,29 @@ objects:
data_type: uint32
description: system error bitmask
access_type: ro
bit_definitions:
inverter_calibration_invalid: 0
phase_currents_invalid: 1
phase_currents_measurement_missing: 2
pwm_timing_invalid: 3
pwm_timing_update_missing: 4
vbus_overvoltage: 5
vbus_undervoltage: 6
ibus_overcurrent: 7
motor_overcurrent: 8
motor_phase_leakage: 9
motor_resistance_out_of_range: 10
motor_inductance_out_of_range: 11
encoder_reading_missing: 12
encoder_estimate_missing: 13
encoder_reading_invalid: 14
encoder_failure: 15
phase_current_usage_missing: 16
pwm_timing_usage_missing: 17
phase_current_leakage: 18
encoder_reading_usage_missing: 19
motor_unbalanced_phases: 20
modulation: 21

- index: 0x4001
name: motor
Expand Down

0 comments on commit f4bd504

Please sign in to comment.