diff --git a/mavlink_lib.py b/mavlink_lib.py index 5f82a89b08e427862aaacbd6ffa1d8ff86cb7b19..6fc9dd01a4d57ef3f69ab51f4410b9e87db6a61b 100644 --- a/mavlink_lib.py +++ b/mavlink_lib.py @@ -1257,8 +1257,8 @@ class MAVLink_conrig_state_tc_message(MAVLink_message): ''' id = MAVLINK_MSG_ID_CONRIG_STATE_TC name = 'CONRIG_STATE_TC' - fieldnames = ['ignition_btn', 'n2o_filling_btn', 'n2o_release_btn', 'n2o_detach_btn', 'n2o_venting_btn', 'n2_filling_btn', 'n2_release_btn', 'n2_detach_btn', 'n2_quenching_btn', 'n2_3way_btn', 'tars_btn', 'nitrogen_btn', 'arm_switch'] - ordered_fieldnames = ['ignition_btn', 'n2o_filling_btn', 'n2o_release_btn', 'n2o_detach_btn', 'n2o_venting_btn', 'n2_filling_btn', 'n2_release_btn', 'n2_detach_btn', 'n2_quenching_btn', 'n2_3way_btn', 'tars_btn', 'nitrogen_btn', 'arm_switch'] + fieldnames = ['n2o_filling_btn', 'n2o_release_btn', 'n2o_detach_btn', 'n2o_venting_btn', 'n2_filling_btn', 'n2_release_btn', 'n2_detach_btn', 'n2_quenching_btn', 'n2_3way_btn', 'tars_btn', 'nitrogen_btn', 'ignition_btn', 'arm_switch'] + ordered_fieldnames = ['n2o_filling_btn', 'n2o_release_btn', 'n2o_detach_btn', 'n2o_venting_btn', 'n2_filling_btn', 'n2_release_btn', 'n2_detach_btn', 'n2_quenching_btn', 'n2_3way_btn', 'tars_btn', 'nitrogen_btn', 'ignition_btn', 'arm_switch'] fieldtypes = ['uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t'] fielddisplays_by_name = {} fieldenums_by_name = {} @@ -1268,17 +1268,16 @@ class MAVLink_conrig_state_tc_message(MAVLink_message): orders = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] - crc_extra = 225 + crc_extra = 163 unpacker = struct.Struct('<BBBBBBBBBBBBB') instance_field = None instance_offset = -1 - def __init__(self, ignition_btn, n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, arm_switch): + def __init__(self, n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, ignition_btn, arm_switch): MAVLink_message.__init__(self, MAVLink_conrig_state_tc_message.id, MAVLink_conrig_state_tc_message.name) self._fieldnames = MAVLink_conrig_state_tc_message.fieldnames self._instance_field = MAVLink_conrig_state_tc_message.instance_field self._instance_offset = MAVLink_conrig_state_tc_message.instance_offset - self.ignition_btn = ignition_btn self.n2o_filling_btn = n2o_filling_btn self.n2o_release_btn = n2o_release_btn self.n2o_detach_btn = n2o_detach_btn @@ -1290,10 +1289,11 @@ class MAVLink_conrig_state_tc_message(MAVLink_message): self.n2_3way_btn = n2_3way_btn self.tars_btn = tars_btn self.nitrogen_btn = nitrogen_btn + self.ignition_btn = ignition_btn self.arm_switch = arm_switch def pack(self, mav, force_mavlink1=False): - return MAVLink_message.pack(self, mav, 225, struct.pack('<BBBBBBBBBBBBB', self.ignition_btn, self.n2o_filling_btn, self.n2o_release_btn, self.n2o_detach_btn, self.n2o_venting_btn, self.n2_filling_btn, self.n2_release_btn, self.n2_detach_btn, self.n2_quenching_btn, self.n2_3way_btn, self.tars_btn, self.nitrogen_btn, self.arm_switch), force_mavlink1=force_mavlink1) + return MAVLink_message.pack(self, mav, 163, struct.pack('<BBBBBBBBBBBBB', self.n2o_filling_btn, self.n2o_release_btn, self.n2o_detach_btn, self.n2o_venting_btn, self.n2_filling_btn, self.n2_release_btn, self.n2_detach_btn, self.n2_quenching_btn, self.n2_3way_btn, self.tars_btn, self.nitrogen_btn, self.ignition_btn, self.arm_switch), force_mavlink1=force_mavlink1) class MAVLink_set_ignition_time_tc_message(MAVLink_message): ''' @@ -2985,37 +2985,47 @@ class MAVLink_gse_tm_message(MAVLink_message): ''' id = MAVLINK_MSG_ID_GSE_TM name = 'GSE_TM' - fieldnames = ['timestamp', 'loadcell_rocket', 'loadcell_vessel', 'filling_pressure', 'vessel_pressure', 'filling_valve_state', 'venting_valve_state', 'release_valve_state', 'main_valve_state', 'nitrogen_valve_state', 'gmm_state', 'tars_state', 'arming_state', 'cpu_load', 'free_heap', 'battery_voltage', 'current_consumption', 'umbilical_current_consumption', 'main_board_state', 'payload_board_state', 'motor_board_state', 'main_can_status', 'payload_can_status', 'motor_can_status', 'log_number', 'log_good'] - ordered_fieldnames = ['timestamp', 'loadcell_rocket', 'loadcell_vessel', 'filling_pressure', 'vessel_pressure', 'cpu_load', 'free_heap', 'battery_voltage', 'current_consumption', 'umbilical_current_consumption', 'log_good', 'log_number', 'filling_valve_state', 'venting_valve_state', 'release_valve_state', 'main_valve_state', 'nitrogen_valve_state', 'gmm_state', 'tars_state', 'arming_state', 'main_board_state', 'payload_board_state', 'motor_board_state', 'main_can_status', 'payload_can_status', 'motor_can_status'] - fieldtypes = ['uint64_t', 'float', 'float', 'float', 'float', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'float', 'uint32_t', 'float', 'float', 'float', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'int16_t', 'int32_t'] + fieldnames = ['timestamp', 'rocket_mass', 'n2o_vessel_mass', 'n2o_filling_pressure', 'n2o_vessel_pressure', 'n2_filling_pressure', 'n2_vessel_1_pressure', 'n2_vessel_2_pressure', 'n2o_filling_valve_state', 'n2o_release_valve_state', 'n2o_detach_state', 'n2o_venting_valve_state', 'n2_filling_valve_state', 'n2_release_valve_state', 'n2_detach_state', 'n2_quenching_valve_state', 'n2_3way_valve_state', 'main_valve_state', 'nitrogen_valve_state', 'ignition_state', 'gmm_state', 'tars_state', 'arming_state', 'cpu_load', 'free_heap', 'battery_voltage', 'current_consumption', 'umbilical_current_consumption', 'main_board_state', 'payload_board_state', 'motor_board_state', 'main_can_status', 'payload_can_status', 'motor_can_status', 'log_number', 'log_good'] + ordered_fieldnames = ['timestamp', 'rocket_mass', 'n2o_vessel_mass', 'n2o_filling_pressure', 'n2o_vessel_pressure', 'n2_filling_pressure', 'n2_vessel_1_pressure', 'n2_vessel_2_pressure', 'cpu_load', 'free_heap', 'battery_voltage', 'current_consumption', 'umbilical_current_consumption', 'log_good', 'log_number', 'n2o_filling_valve_state', 'n2o_release_valve_state', 'n2o_detach_state', 'n2o_venting_valve_state', 'n2_filling_valve_state', 'n2_release_valve_state', 'n2_detach_state', 'n2_quenching_valve_state', 'n2_3way_valve_state', 'main_valve_state', 'nitrogen_valve_state', 'ignition_state', 'gmm_state', 'tars_state', 'arming_state', 'main_board_state', 'payload_board_state', 'motor_board_state', 'main_can_status', 'payload_can_status', 'motor_can_status'] + fieldtypes = ['uint64_t', 'float', 'float', 'float', 'float', 'float', 'float', 'float', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'float', 'uint32_t', 'float', 'float', 'float', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'uint8_t', 'int16_t', 'int32_t'] fielddisplays_by_name = {} fieldenums_by_name = {} - fieldunits_by_name = {"timestamp": "us", "loadcell_rocket": "kg", "loadcell_vessel": "kg", "filling_pressure": "Bar", "vessel_pressure": "Bar", "current_consumption": "A", "umbilical_current_consumption": "A"} - format = '<QfffffIfffihBBBBBBBBBBBBBB' - native_format = bytearray('<QfffffIfffihBBBBBBBBBBBBBB', 'ascii') - orders = [0, 1, 2, 3, 4, 12, 13, 14, 15, 16, 17, 18, 19, 5, 6, 7, 8, 9, 20, 21, 22, 23, 24, 25, 11, 10] - lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] - array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] - crc_extra = 87 - unpacker = struct.Struct('<QfffffIfffihBBBBBBBBBBBBBB') + fieldunits_by_name = {"timestamp": "us", "rocket_mass": "kg", "n2o_vessel_mass": "kg", "n2o_filling_pressure": "Bar", "n2o_vessel_pressure": "Bar", "n2_filling_pressure": "Bar", "n2_vessel_1_pressure": "Bar", "n2_vessel_2_pressure": "Bar", "current_consumption": "A", "umbilical_current_consumption": "A"} + format = '<QffffffffIfffihBBBBBBBBBBBBBBBBBBBBB' + native_format = bytearray('<QffffffffIfffihBBBBBBBBBBBBBBBBBBBBB', 'ascii') + orders = [0, 1, 2, 3, 4, 5, 6, 7, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 8, 9, 10, 11, 12, 30, 31, 32, 33, 34, 35, 14, 13] + lengths = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] + array_lengths = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + crc_extra = 196 + unpacker = struct.Struct('<QffffffffIfffihBBBBBBBBBBBBBBBBBBBBB') instance_field = None instance_offset = -1 - def __init__(self, timestamp, loadcell_rocket, loadcell_vessel, filling_pressure, vessel_pressure, filling_valve_state, venting_valve_state, release_valve_state, main_valve_state, nitrogen_valve_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good): + def __init__(self, timestamp, rocket_mass, n2o_vessel_mass, n2o_filling_pressure, n2o_vessel_pressure, n2_filling_pressure, n2_vessel_1_pressure, n2_vessel_2_pressure, n2o_filling_valve_state, n2o_release_valve_state, n2o_detach_state, n2o_venting_valve_state, n2_filling_valve_state, n2_release_valve_state, n2_detach_state, n2_quenching_valve_state, n2_3way_valve_state, main_valve_state, nitrogen_valve_state, ignition_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good): MAVLink_message.__init__(self, MAVLink_gse_tm_message.id, MAVLink_gse_tm_message.name) self._fieldnames = MAVLink_gse_tm_message.fieldnames self._instance_field = MAVLink_gse_tm_message.instance_field self._instance_offset = MAVLink_gse_tm_message.instance_offset self.timestamp = timestamp - self.loadcell_rocket = loadcell_rocket - self.loadcell_vessel = loadcell_vessel - self.filling_pressure = filling_pressure - self.vessel_pressure = vessel_pressure - self.filling_valve_state = filling_valve_state - self.venting_valve_state = venting_valve_state - self.release_valve_state = release_valve_state + self.rocket_mass = rocket_mass + self.n2o_vessel_mass = n2o_vessel_mass + self.n2o_filling_pressure = n2o_filling_pressure + self.n2o_vessel_pressure = n2o_vessel_pressure + self.n2_filling_pressure = n2_filling_pressure + self.n2_vessel_1_pressure = n2_vessel_1_pressure + self.n2_vessel_2_pressure = n2_vessel_2_pressure + self.n2o_filling_valve_state = n2o_filling_valve_state + self.n2o_release_valve_state = n2o_release_valve_state + self.n2o_detach_state = n2o_detach_state + self.n2o_venting_valve_state = n2o_venting_valve_state + self.n2_filling_valve_state = n2_filling_valve_state + self.n2_release_valve_state = n2_release_valve_state + self.n2_detach_state = n2_detach_state + self.n2_quenching_valve_state = n2_quenching_valve_state + self.n2_3way_valve_state = n2_3way_valve_state self.main_valve_state = main_valve_state self.nitrogen_valve_state = nitrogen_valve_state + self.ignition_state = ignition_state self.gmm_state = gmm_state self.tars_state = tars_state self.arming_state = arming_state @@ -3034,7 +3044,7 @@ class MAVLink_gse_tm_message(MAVLink_message): self.log_good = log_good def pack(self, mav, force_mavlink1=False): - return MAVLink_message.pack(self, mav, 87, struct.pack('<QfffffIfffihBBBBBBBBBBBBBB', self.timestamp, self.loadcell_rocket, self.loadcell_vessel, self.filling_pressure, self.vessel_pressure, self.cpu_load, self.free_heap, self.battery_voltage, self.current_consumption, self.umbilical_current_consumption, self.log_good, self.log_number, self.filling_valve_state, self.venting_valve_state, self.release_valve_state, self.main_valve_state, self.nitrogen_valve_state, self.gmm_state, self.tars_state, self.arming_state, self.main_board_state, self.payload_board_state, self.motor_board_state, self.main_can_status, self.payload_can_status, self.motor_can_status), force_mavlink1=force_mavlink1) + return MAVLink_message.pack(self, mav, 196, struct.pack('<QffffffffIfffihBBBBBBBBBBBBBBBBBBBBB', self.timestamp, self.rocket_mass, self.n2o_vessel_mass, self.n2o_filling_pressure, self.n2o_vessel_pressure, self.n2_filling_pressure, self.n2_vessel_1_pressure, self.n2_vessel_2_pressure, self.cpu_load, self.free_heap, self.battery_voltage, self.current_consumption, self.umbilical_current_consumption, self.log_good, self.log_number, self.n2o_filling_valve_state, self.n2o_release_valve_state, self.n2o_detach_state, self.n2o_venting_valve_state, self.n2_filling_valve_state, self.n2_release_valve_state, self.n2_detach_state, self.n2_quenching_valve_state, self.n2_3way_valve_state, self.main_valve_state, self.nitrogen_valve_state, self.ignition_state, self.gmm_state, self.tars_state, self.arming_state, self.main_board_state, self.payload_board_state, self.motor_board_state, self.main_can_status, self.payload_can_status, self.motor_can_status), force_mavlink1=force_mavlink1) class MAVLink_motor_tm_message(MAVLink_message): ''' @@ -4020,11 +4030,10 @@ class MAVLink(object): ''' return self.send(self.set_valve_maximum_aperture_tc_encode(servo_id, maximum_aperture), force_mavlink1=force_mavlink1) - def conrig_state_tc_encode(self, ignition_btn, n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, arm_switch): + def conrig_state_tc_encode(self, n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, ignition_btn, arm_switch): ''' Send the state of the conRIG. - ignition_btn : Ignition button state (type:uint8_t) n2o_filling_btn : N2O filling valve button state (type:uint8_t) n2o_release_btn : N2O release line pressure valve button state (type:uint8_t) n2o_detach_btn : N2O quick connector detach button state (type:uint8_t) @@ -4036,16 +4045,16 @@ class MAVLink(object): n2_3way_btn : N2 3-way valve button state (type:uint8_t) tars_btn : TARS algorithm button state (type:uint8_t) nitrogen_btn : Nitrogen valve button state (type:uint8_t) + ignition_btn : Ignition button state (type:uint8_t) arm_switch : Arming switch state (type:uint8_t) ''' - return MAVLink_conrig_state_tc_message(ignition_btn, n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, arm_switch) + return MAVLink_conrig_state_tc_message(n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, ignition_btn, arm_switch) - def conrig_state_tc_send(self, ignition_btn, n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, arm_switch, force_mavlink1=False): + def conrig_state_tc_send(self, n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, ignition_btn, arm_switch, force_mavlink1=False): ''' Send the state of the conRIG. - ignition_btn : Ignition button state (type:uint8_t) n2o_filling_btn : N2O filling valve button state (type:uint8_t) n2o_release_btn : N2O release line pressure valve button state (type:uint8_t) n2o_detach_btn : N2O quick connector detach button state (type:uint8_t) @@ -4057,10 +4066,11 @@ class MAVLink(object): n2_3way_btn : N2 3-way valve button state (type:uint8_t) tars_btn : TARS algorithm button state (type:uint8_t) nitrogen_btn : Nitrogen valve button state (type:uint8_t) + ignition_btn : Ignition button state (type:uint8_t) arm_switch : Arming switch state (type:uint8_t) ''' - return self.send(self.conrig_state_tc_encode(ignition_btn, n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, arm_switch), force_mavlink1=force_mavlink1) + return self.send(self.conrig_state_tc_encode(n2o_filling_btn, n2o_release_btn, n2o_detach_btn, n2o_venting_btn, n2_filling_btn, n2_release_btn, n2_detach_btn, n2_quenching_btn, n2_3way_btn, tars_btn, nitrogen_btn, ignition_btn, arm_switch), force_mavlink1=force_mavlink1) def set_ignition_time_tc_encode(self, timing): ''' @@ -5542,31 +5552,41 @@ class MAVLink(object): ''' return self.send(self.payload_stats_tm_encode(timestamp, liftoff_ts, liftoff_max_acc_ts, liftoff_max_acc, max_speed_ts, max_speed, max_speed_altitude, max_mach_ts, max_mach, apogee_ts, apogee_lat, apogee_lon, apogee_alt, apogee_max_acc_ts, apogee_max_acc, wing_target_lat, wing_target_lon, wing_active_target_n, wing_active_target_e, wing_algorithm, dpl_ts, dpl_alt, dpl_max_acc_ts, dpl_max_acc, ref_lat, ref_lon, ref_alt, min_pressure, cpu_load, free_heap, nas_state, wnc_state, pin_launch, pin_nosecone, cutter_presence, log_number, log_good, main_board_state, motor_board_state, main_can_status, motor_can_status, rig_can_status, hil_state), force_mavlink1=force_mavlink1) - def gse_tm_encode(self, timestamp, loadcell_rocket, loadcell_vessel, filling_pressure, vessel_pressure, filling_valve_state, venting_valve_state, release_valve_state, main_valve_state, nitrogen_valve_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good): + def gse_tm_encode(self, timestamp, rocket_mass, n2o_vessel_mass, n2o_filling_pressure, n2o_vessel_pressure, n2_filling_pressure, n2_vessel_1_pressure, n2_vessel_2_pressure, n2o_filling_valve_state, n2o_release_valve_state, n2o_detach_state, n2o_venting_valve_state, n2_filling_valve_state, n2_release_valve_state, n2_detach_state, n2_quenching_valve_state, n2_3way_valve_state, main_valve_state, nitrogen_valve_state, ignition_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good): ''' Ground Segment Equipment telemetry timestamp : Timestamp in microseconds [us] (type:uint64_t) - loadcell_rocket : Rocket weight [kg] (type:float) - loadcell_vessel : External tank weight [kg] (type:float) - filling_pressure : Refueling line pressure [Bar] (type:float) - vessel_pressure : Vessel tank pressure [Bar] (type:float) - filling_valve_state : 1 If the filling valve is open (type:uint8_t) - venting_valve_state : 1 If the venting valve is open (type:uint8_t) - release_valve_state : 1 If the release valve is open (type:uint8_t) - main_valve_state : 1 If the main valve is open (type:uint8_t) - nitrogen_valve_state : 1 If the nitrogen valve is open (type:uint8_t) + rocket_mass : Rocket mass loadcell measurement [kg] (type:float) + n2o_vessel_mass : N2O vessel tank mass loadcell measurement [kg] (type:float) + n2o_filling_pressure : N2O refueling line pressure [Bar] (type:float) + n2o_vessel_pressure : N2O vessel tank pressure [Bar] (type:float) + n2_filling_pressure : N2 refueling line pressure [Bar] (type:float) + n2_vessel_1_pressure : N2 vessel 1 tank pressure [Bar] (type:float) + n2_vessel_2_pressure : N2 vessel 2 tank pressure [Bar] (type:float) + n2o_filling_valve_state : N2O filling valve state (1: open, 0: close) (type:uint8_t) + n2o_release_valve_state : N2O release line pressure valve state (1: open, 0: close) (type:uint8_t) + n2o_detach_state : N2O quick connector detach state (1: open, 0: close) (type:uint8_t) + n2o_venting_valve_state : N2O venting valve state (1: open, 0: close) (type:uint8_t) + n2_filling_valve_state : N2 filling valve state (1: open, 0: close) (type:uint8_t) + n2_release_valve_state : N2 release line pressure valve state (1: open, 0: close) (type:uint8_t) + n2_detach_state : N2 quick connector detach state (1: open, 0: close) (type:uint8_t) + n2_quenching_valve_state : N2 quenching valve state (1: open, 0: close) (type:uint8_t) + n2_3way_valve_state : N2 3-way valve state (1: open, 0: close) (type:uint8_t) + main_valve_state : Rocket main N2O valve state (1: open, 0: close) (type:uint8_t) + nitrogen_valve_state : Rocket main N2 valve state (1: open, 0: close) (type:uint8_t) + ignition_state : Ignition relay logical state (1: enabled, 0: disabled) (type:uint8_t) gmm_state : State of the GroundModeManager (type:uint8_t) - tars_state : State of Tars (type:uint8_t) - arming_state : Arming state (1 if armed, 0 otherwise) (type:uint8_t) + tars_state : State of TARS (type:uint8_t) + arming_state : Arming state (1: armed, 0: otherwise) (type:uint8_t) cpu_load : CPU load in percentage (type:float) - free_heap : Amount of available heap in memory (type:uint32_t) + free_heap : Amount of available heap memory (type:uint32_t) battery_voltage : Battery voltage (type:float) current_consumption : RIG current [A] (type:float) umbilical_current_consumption : Umbilical current [A] (type:float) - main_board_state : Main board fmm state (type:uint8_t) - payload_board_state : Payload board fmm state (type:uint8_t) - motor_board_state : Motor board fmm state (type:uint8_t) + main_board_state : Main board FMM state (type:uint8_t) + payload_board_state : Payload board FMM state (type:uint8_t) + motor_board_state : Motor board FMM state (type:uint8_t) main_can_status : Main CAN status (type:uint8_t) payload_can_status : Payload CAN status (type:uint8_t) motor_can_status : Motor CAN status (type:uint8_t) @@ -5574,33 +5594,43 @@ class MAVLink(object): log_good : 0 if log failed, 1 otherwise (type:int32_t) ''' - return MAVLink_gse_tm_message(timestamp, loadcell_rocket, loadcell_vessel, filling_pressure, vessel_pressure, filling_valve_state, venting_valve_state, release_valve_state, main_valve_state, nitrogen_valve_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good) + return MAVLink_gse_tm_message(timestamp, rocket_mass, n2o_vessel_mass, n2o_filling_pressure, n2o_vessel_pressure, n2_filling_pressure, n2_vessel_1_pressure, n2_vessel_2_pressure, n2o_filling_valve_state, n2o_release_valve_state, n2o_detach_state, n2o_venting_valve_state, n2_filling_valve_state, n2_release_valve_state, n2_detach_state, n2_quenching_valve_state, n2_3way_valve_state, main_valve_state, nitrogen_valve_state, ignition_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good) - def gse_tm_send(self, timestamp, loadcell_rocket, loadcell_vessel, filling_pressure, vessel_pressure, filling_valve_state, venting_valve_state, release_valve_state, main_valve_state, nitrogen_valve_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good, force_mavlink1=False): + def gse_tm_send(self, timestamp, rocket_mass, n2o_vessel_mass, n2o_filling_pressure, n2o_vessel_pressure, n2_filling_pressure, n2_vessel_1_pressure, n2_vessel_2_pressure, n2o_filling_valve_state, n2o_release_valve_state, n2o_detach_state, n2o_venting_valve_state, n2_filling_valve_state, n2_release_valve_state, n2_detach_state, n2_quenching_valve_state, n2_3way_valve_state, main_valve_state, nitrogen_valve_state, ignition_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good, force_mavlink1=False): ''' Ground Segment Equipment telemetry timestamp : Timestamp in microseconds [us] (type:uint64_t) - loadcell_rocket : Rocket weight [kg] (type:float) - loadcell_vessel : External tank weight [kg] (type:float) - filling_pressure : Refueling line pressure [Bar] (type:float) - vessel_pressure : Vessel tank pressure [Bar] (type:float) - filling_valve_state : 1 If the filling valve is open (type:uint8_t) - venting_valve_state : 1 If the venting valve is open (type:uint8_t) - release_valve_state : 1 If the release valve is open (type:uint8_t) - main_valve_state : 1 If the main valve is open (type:uint8_t) - nitrogen_valve_state : 1 If the nitrogen valve is open (type:uint8_t) + rocket_mass : Rocket mass loadcell measurement [kg] (type:float) + n2o_vessel_mass : N2O vessel tank mass loadcell measurement [kg] (type:float) + n2o_filling_pressure : N2O refueling line pressure [Bar] (type:float) + n2o_vessel_pressure : N2O vessel tank pressure [Bar] (type:float) + n2_filling_pressure : N2 refueling line pressure [Bar] (type:float) + n2_vessel_1_pressure : N2 vessel 1 tank pressure [Bar] (type:float) + n2_vessel_2_pressure : N2 vessel 2 tank pressure [Bar] (type:float) + n2o_filling_valve_state : N2O filling valve state (1: open, 0: close) (type:uint8_t) + n2o_release_valve_state : N2O release line pressure valve state (1: open, 0: close) (type:uint8_t) + n2o_detach_state : N2O quick connector detach state (1: open, 0: close) (type:uint8_t) + n2o_venting_valve_state : N2O venting valve state (1: open, 0: close) (type:uint8_t) + n2_filling_valve_state : N2 filling valve state (1: open, 0: close) (type:uint8_t) + n2_release_valve_state : N2 release line pressure valve state (1: open, 0: close) (type:uint8_t) + n2_detach_state : N2 quick connector detach state (1: open, 0: close) (type:uint8_t) + n2_quenching_valve_state : N2 quenching valve state (1: open, 0: close) (type:uint8_t) + n2_3way_valve_state : N2 3-way valve state (1: open, 0: close) (type:uint8_t) + main_valve_state : Rocket main N2O valve state (1: open, 0: close) (type:uint8_t) + nitrogen_valve_state : Rocket main N2 valve state (1: open, 0: close) (type:uint8_t) + ignition_state : Ignition relay logical state (1: enabled, 0: disabled) (type:uint8_t) gmm_state : State of the GroundModeManager (type:uint8_t) - tars_state : State of Tars (type:uint8_t) - arming_state : Arming state (1 if armed, 0 otherwise) (type:uint8_t) + tars_state : State of TARS (type:uint8_t) + arming_state : Arming state (1: armed, 0: otherwise) (type:uint8_t) cpu_load : CPU load in percentage (type:float) - free_heap : Amount of available heap in memory (type:uint32_t) + free_heap : Amount of available heap memory (type:uint32_t) battery_voltage : Battery voltage (type:float) current_consumption : RIG current [A] (type:float) umbilical_current_consumption : Umbilical current [A] (type:float) - main_board_state : Main board fmm state (type:uint8_t) - payload_board_state : Payload board fmm state (type:uint8_t) - motor_board_state : Motor board fmm state (type:uint8_t) + main_board_state : Main board FMM state (type:uint8_t) + payload_board_state : Payload board FMM state (type:uint8_t) + motor_board_state : Motor board FMM state (type:uint8_t) main_can_status : Main CAN status (type:uint8_t) payload_can_status : Payload CAN status (type:uint8_t) motor_can_status : Motor CAN status (type:uint8_t) @@ -5608,7 +5638,7 @@ class MAVLink(object): log_good : 0 if log failed, 1 otherwise (type:int32_t) ''' - return self.send(self.gse_tm_encode(timestamp, loadcell_rocket, loadcell_vessel, filling_pressure, vessel_pressure, filling_valve_state, venting_valve_state, release_valve_state, main_valve_state, nitrogen_valve_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good), force_mavlink1=force_mavlink1) + return self.send(self.gse_tm_encode(timestamp, rocket_mass, n2o_vessel_mass, n2o_filling_pressure, n2o_vessel_pressure, n2_filling_pressure, n2_vessel_1_pressure, n2_vessel_2_pressure, n2o_filling_valve_state, n2o_release_valve_state, n2o_detach_state, n2o_venting_valve_state, n2_filling_valve_state, n2_release_valve_state, n2_detach_state, n2_quenching_valve_state, n2_3way_valve_state, main_valve_state, nitrogen_valve_state, ignition_state, gmm_state, tars_state, arming_state, cpu_load, free_heap, battery_voltage, current_consumption, umbilical_current_consumption, main_board_state, payload_board_state, motor_board_state, main_can_status, payload_can_status, motor_can_status, log_number, log_good), force_mavlink1=force_mavlink1) def motor_tm_encode(self, timestamp, top_tank_pressure, bottom_tank_pressure, combustion_chamber_pressure, tank_temperature, main_valve_state, venting_valve_state, battery_voltage, log_number, log_good, hil_state): ''' diff --git a/mavlink_lib/orion/mavlink.h b/mavlink_lib/orion/mavlink.h index 20b70845d6748557e7f5f4f0cbce83fd89eb6dba..afa57b4149f3a99354fce84d35ed7979b381420a 100644 --- a/mavlink_lib/orion/mavlink.h +++ b/mavlink_lib/orion/mavlink.h @@ -6,7 +6,7 @@ #ifndef MAVLINK_H #define MAVLINK_H -#define MAVLINK_PRIMARY_XML_HASH 8590756781382699195 +#define MAVLINK_PRIMARY_XML_HASH 1806179654423543365 #ifndef MAVLINK_STX #define MAVLINK_STX 254 diff --git a/mavlink_lib/orion/mavlink_msg_conrig_state_tc.h b/mavlink_lib/orion/mavlink_msg_conrig_state_tc.h index 72a0faf813c98e106e754120abbfae103825e781..6df4560524264e67635035f8c6d3a13ac5f2370f 100644 --- a/mavlink_lib/orion/mavlink_msg_conrig_state_tc.h +++ b/mavlink_lib/orion/mavlink_msg_conrig_state_tc.h @@ -5,7 +5,6 @@ typedef struct __mavlink_conrig_state_tc_t { - uint8_t ignition_btn; /*< Ignition button state*/ uint8_t n2o_filling_btn; /*< N2O filling valve button state*/ uint8_t n2o_release_btn; /*< N2O release line pressure valve button state*/ uint8_t n2o_detach_btn; /*< N2O quick connector detach button state*/ @@ -17,6 +16,7 @@ typedef struct __mavlink_conrig_state_tc_t { uint8_t n2_3way_btn; /*< N2 3-way valve button state*/ uint8_t tars_btn; /*< TARS algorithm button state*/ uint8_t nitrogen_btn; /*< Nitrogen valve button state*/ + uint8_t ignition_btn; /*< Ignition button state*/ uint8_t arm_switch; /*< Arming switch state*/ } mavlink_conrig_state_tc_t; @@ -25,8 +25,8 @@ typedef struct __mavlink_conrig_state_tc_t { #define MAVLINK_MSG_ID_32_LEN 13 #define MAVLINK_MSG_ID_32_MIN_LEN 13 -#define MAVLINK_MSG_ID_CONRIG_STATE_TC_CRC 225 -#define MAVLINK_MSG_ID_32_CRC 225 +#define MAVLINK_MSG_ID_CONRIG_STATE_TC_CRC 163 +#define MAVLINK_MSG_ID_32_CRC 163 @@ -35,18 +35,18 @@ typedef struct __mavlink_conrig_state_tc_t { 32, \ "CONRIG_STATE_TC", \ 13, \ - { { "ignition_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_conrig_state_tc_t, ignition_btn) }, \ - { "n2o_filling_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_conrig_state_tc_t, n2o_filling_btn) }, \ - { "n2o_release_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_conrig_state_tc_t, n2o_release_btn) }, \ - { "n2o_detach_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_conrig_state_tc_t, n2o_detach_btn) }, \ - { "n2o_venting_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_conrig_state_tc_t, n2o_venting_btn) }, \ - { "n2_filling_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_conrig_state_tc_t, n2_filling_btn) }, \ - { "n2_release_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_conrig_state_tc_t, n2_release_btn) }, \ - { "n2_detach_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_conrig_state_tc_t, n2_detach_btn) }, \ - { "n2_quenching_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_conrig_state_tc_t, n2_quenching_btn) }, \ - { "n2_3way_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_conrig_state_tc_t, n2_3way_btn) }, \ - { "tars_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_conrig_state_tc_t, tars_btn) }, \ - { "nitrogen_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_conrig_state_tc_t, nitrogen_btn) }, \ + { { "n2o_filling_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_conrig_state_tc_t, n2o_filling_btn) }, \ + { "n2o_release_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_conrig_state_tc_t, n2o_release_btn) }, \ + { "n2o_detach_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_conrig_state_tc_t, n2o_detach_btn) }, \ + { "n2o_venting_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_conrig_state_tc_t, n2o_venting_btn) }, \ + { "n2_filling_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_conrig_state_tc_t, n2_filling_btn) }, \ + { "n2_release_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_conrig_state_tc_t, n2_release_btn) }, \ + { "n2_detach_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_conrig_state_tc_t, n2_detach_btn) }, \ + { "n2_quenching_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_conrig_state_tc_t, n2_quenching_btn) }, \ + { "n2_3way_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_conrig_state_tc_t, n2_3way_btn) }, \ + { "tars_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_conrig_state_tc_t, tars_btn) }, \ + { "nitrogen_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_conrig_state_tc_t, nitrogen_btn) }, \ + { "ignition_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_conrig_state_tc_t, ignition_btn) }, \ { "arm_switch", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_conrig_state_tc_t, arm_switch) }, \ } \ } @@ -54,18 +54,18 @@ typedef struct __mavlink_conrig_state_tc_t { #define MAVLINK_MESSAGE_INFO_CONRIG_STATE_TC { \ "CONRIG_STATE_TC", \ 13, \ - { { "ignition_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_conrig_state_tc_t, ignition_btn) }, \ - { "n2o_filling_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_conrig_state_tc_t, n2o_filling_btn) }, \ - { "n2o_release_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_conrig_state_tc_t, n2o_release_btn) }, \ - { "n2o_detach_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_conrig_state_tc_t, n2o_detach_btn) }, \ - { "n2o_venting_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_conrig_state_tc_t, n2o_venting_btn) }, \ - { "n2_filling_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_conrig_state_tc_t, n2_filling_btn) }, \ - { "n2_release_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_conrig_state_tc_t, n2_release_btn) }, \ - { "n2_detach_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_conrig_state_tc_t, n2_detach_btn) }, \ - { "n2_quenching_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_conrig_state_tc_t, n2_quenching_btn) }, \ - { "n2_3way_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_conrig_state_tc_t, n2_3way_btn) }, \ - { "tars_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_conrig_state_tc_t, tars_btn) }, \ - { "nitrogen_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_conrig_state_tc_t, nitrogen_btn) }, \ + { { "n2o_filling_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_conrig_state_tc_t, n2o_filling_btn) }, \ + { "n2o_release_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_conrig_state_tc_t, n2o_release_btn) }, \ + { "n2o_detach_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_conrig_state_tc_t, n2o_detach_btn) }, \ + { "n2o_venting_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 3, offsetof(mavlink_conrig_state_tc_t, n2o_venting_btn) }, \ + { "n2_filling_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_conrig_state_tc_t, n2_filling_btn) }, \ + { "n2_release_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_conrig_state_tc_t, n2_release_btn) }, \ + { "n2_detach_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 6, offsetof(mavlink_conrig_state_tc_t, n2_detach_btn) }, \ + { "n2_quenching_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 7, offsetof(mavlink_conrig_state_tc_t, n2_quenching_btn) }, \ + { "n2_3way_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_conrig_state_tc_t, n2_3way_btn) }, \ + { "tars_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_conrig_state_tc_t, tars_btn) }, \ + { "nitrogen_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_conrig_state_tc_t, nitrogen_btn) }, \ + { "ignition_btn", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_conrig_state_tc_t, ignition_btn) }, \ { "arm_switch", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_conrig_state_tc_t, arm_switch) }, \ } \ } @@ -77,7 +77,6 @@ typedef struct __mavlink_conrig_state_tc_t { * @param component_id ID of this component (e.g. 200 for IMU) * @param msg The MAVLink message to compress the data into * - * @param ignition_btn Ignition button state * @param n2o_filling_btn N2O filling valve button state * @param n2o_release_btn N2O release line pressure valve button state * @param n2o_detach_btn N2O quick connector detach button state @@ -89,32 +88,32 @@ typedef struct __mavlink_conrig_state_tc_t { * @param n2_3way_btn N2 3-way valve button state * @param tars_btn TARS algorithm button state * @param nitrogen_btn Nitrogen valve button state + * @param ignition_btn Ignition button state * @param arm_switch Arming switch state * @return length of the message in bytes (excluding serial stream start sign) */ static inline uint16_t mavlink_msg_conrig_state_tc_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, - uint8_t ignition_btn, uint8_t n2o_filling_btn, uint8_t n2o_release_btn, uint8_t n2o_detach_btn, uint8_t n2o_venting_btn, uint8_t n2_filling_btn, uint8_t n2_release_btn, uint8_t n2_detach_btn, uint8_t n2_quenching_btn, uint8_t n2_3way_btn, uint8_t tars_btn, uint8_t nitrogen_btn, uint8_t arm_switch) + uint8_t n2o_filling_btn, uint8_t n2o_release_btn, uint8_t n2o_detach_btn, uint8_t n2o_venting_btn, uint8_t n2_filling_btn, uint8_t n2_release_btn, uint8_t n2_detach_btn, uint8_t n2_quenching_btn, uint8_t n2_3way_btn, uint8_t tars_btn, uint8_t nitrogen_btn, uint8_t ignition_btn, uint8_t arm_switch) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char buf[MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN]; - _mav_put_uint8_t(buf, 0, ignition_btn); - _mav_put_uint8_t(buf, 1, n2o_filling_btn); - _mav_put_uint8_t(buf, 2, n2o_release_btn); - _mav_put_uint8_t(buf, 3, n2o_detach_btn); - _mav_put_uint8_t(buf, 4, n2o_venting_btn); - _mav_put_uint8_t(buf, 5, n2_filling_btn); - _mav_put_uint8_t(buf, 6, n2_release_btn); - _mav_put_uint8_t(buf, 7, n2_detach_btn); - _mav_put_uint8_t(buf, 8, n2_quenching_btn); - _mav_put_uint8_t(buf, 9, n2_3way_btn); - _mav_put_uint8_t(buf, 10, tars_btn); - _mav_put_uint8_t(buf, 11, nitrogen_btn); + _mav_put_uint8_t(buf, 0, n2o_filling_btn); + _mav_put_uint8_t(buf, 1, n2o_release_btn); + _mav_put_uint8_t(buf, 2, n2o_detach_btn); + _mav_put_uint8_t(buf, 3, n2o_venting_btn); + _mav_put_uint8_t(buf, 4, n2_filling_btn); + _mav_put_uint8_t(buf, 5, n2_release_btn); + _mav_put_uint8_t(buf, 6, n2_detach_btn); + _mav_put_uint8_t(buf, 7, n2_quenching_btn); + _mav_put_uint8_t(buf, 8, n2_3way_btn); + _mav_put_uint8_t(buf, 9, tars_btn); + _mav_put_uint8_t(buf, 10, nitrogen_btn); + _mav_put_uint8_t(buf, 11, ignition_btn); _mav_put_uint8_t(buf, 12, arm_switch); memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN); #else mavlink_conrig_state_tc_t packet; - packet.ignition_btn = ignition_btn; packet.n2o_filling_btn = n2o_filling_btn; packet.n2o_release_btn = n2o_release_btn; packet.n2o_detach_btn = n2o_detach_btn; @@ -126,6 +125,7 @@ static inline uint16_t mavlink_msg_conrig_state_tc_pack(uint8_t system_id, uint8 packet.n2_3way_btn = n2_3way_btn; packet.tars_btn = tars_btn; packet.nitrogen_btn = nitrogen_btn; + packet.ignition_btn = ignition_btn; packet.arm_switch = arm_switch; memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN); @@ -141,7 +141,6 @@ static inline uint16_t mavlink_msg_conrig_state_tc_pack(uint8_t system_id, uint8 * @param component_id ID of this component (e.g. 200 for IMU) * @param chan The MAVLink channel this message will be sent over * @param msg The MAVLink message to compress the data into - * @param ignition_btn Ignition button state * @param n2o_filling_btn N2O filling valve button state * @param n2o_release_btn N2O release line pressure valve button state * @param n2o_detach_btn N2O quick connector detach button state @@ -153,33 +152,33 @@ static inline uint16_t mavlink_msg_conrig_state_tc_pack(uint8_t system_id, uint8 * @param n2_3way_btn N2 3-way valve button state * @param tars_btn TARS algorithm button state * @param nitrogen_btn Nitrogen valve button state + * @param ignition_btn Ignition button state * @param arm_switch Arming switch state * @return length of the message in bytes (excluding serial stream start sign) */ static inline uint16_t mavlink_msg_conrig_state_tc_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, - uint8_t ignition_btn,uint8_t n2o_filling_btn,uint8_t n2o_release_btn,uint8_t n2o_detach_btn,uint8_t n2o_venting_btn,uint8_t n2_filling_btn,uint8_t n2_release_btn,uint8_t n2_detach_btn,uint8_t n2_quenching_btn,uint8_t n2_3way_btn,uint8_t tars_btn,uint8_t nitrogen_btn,uint8_t arm_switch) + uint8_t n2o_filling_btn,uint8_t n2o_release_btn,uint8_t n2o_detach_btn,uint8_t n2o_venting_btn,uint8_t n2_filling_btn,uint8_t n2_release_btn,uint8_t n2_detach_btn,uint8_t n2_quenching_btn,uint8_t n2_3way_btn,uint8_t tars_btn,uint8_t nitrogen_btn,uint8_t ignition_btn,uint8_t arm_switch) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char buf[MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN]; - _mav_put_uint8_t(buf, 0, ignition_btn); - _mav_put_uint8_t(buf, 1, n2o_filling_btn); - _mav_put_uint8_t(buf, 2, n2o_release_btn); - _mav_put_uint8_t(buf, 3, n2o_detach_btn); - _mav_put_uint8_t(buf, 4, n2o_venting_btn); - _mav_put_uint8_t(buf, 5, n2_filling_btn); - _mav_put_uint8_t(buf, 6, n2_release_btn); - _mav_put_uint8_t(buf, 7, n2_detach_btn); - _mav_put_uint8_t(buf, 8, n2_quenching_btn); - _mav_put_uint8_t(buf, 9, n2_3way_btn); - _mav_put_uint8_t(buf, 10, tars_btn); - _mav_put_uint8_t(buf, 11, nitrogen_btn); + _mav_put_uint8_t(buf, 0, n2o_filling_btn); + _mav_put_uint8_t(buf, 1, n2o_release_btn); + _mav_put_uint8_t(buf, 2, n2o_detach_btn); + _mav_put_uint8_t(buf, 3, n2o_venting_btn); + _mav_put_uint8_t(buf, 4, n2_filling_btn); + _mav_put_uint8_t(buf, 5, n2_release_btn); + _mav_put_uint8_t(buf, 6, n2_detach_btn); + _mav_put_uint8_t(buf, 7, n2_quenching_btn); + _mav_put_uint8_t(buf, 8, n2_3way_btn); + _mav_put_uint8_t(buf, 9, tars_btn); + _mav_put_uint8_t(buf, 10, nitrogen_btn); + _mav_put_uint8_t(buf, 11, ignition_btn); _mav_put_uint8_t(buf, 12, arm_switch); memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN); #else mavlink_conrig_state_tc_t packet; - packet.ignition_btn = ignition_btn; packet.n2o_filling_btn = n2o_filling_btn; packet.n2o_release_btn = n2o_release_btn; packet.n2o_detach_btn = n2o_detach_btn; @@ -191,6 +190,7 @@ static inline uint16_t mavlink_msg_conrig_state_tc_pack_chan(uint8_t system_id, packet.n2_3way_btn = n2_3way_btn; packet.tars_btn = tars_btn; packet.nitrogen_btn = nitrogen_btn; + packet.ignition_btn = ignition_btn; packet.arm_switch = arm_switch; memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN); @@ -210,7 +210,7 @@ static inline uint16_t mavlink_msg_conrig_state_tc_pack_chan(uint8_t system_id, */ static inline uint16_t mavlink_msg_conrig_state_tc_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_conrig_state_tc_t* conrig_state_tc) { - return mavlink_msg_conrig_state_tc_pack(system_id, component_id, msg, conrig_state_tc->ignition_btn, conrig_state_tc->n2o_filling_btn, conrig_state_tc->n2o_release_btn, conrig_state_tc->n2o_detach_btn, conrig_state_tc->n2o_venting_btn, conrig_state_tc->n2_filling_btn, conrig_state_tc->n2_release_btn, conrig_state_tc->n2_detach_btn, conrig_state_tc->n2_quenching_btn, conrig_state_tc->n2_3way_btn, conrig_state_tc->tars_btn, conrig_state_tc->nitrogen_btn, conrig_state_tc->arm_switch); + return mavlink_msg_conrig_state_tc_pack(system_id, component_id, msg, conrig_state_tc->n2o_filling_btn, conrig_state_tc->n2o_release_btn, conrig_state_tc->n2o_detach_btn, conrig_state_tc->n2o_venting_btn, conrig_state_tc->n2_filling_btn, conrig_state_tc->n2_release_btn, conrig_state_tc->n2_detach_btn, conrig_state_tc->n2_quenching_btn, conrig_state_tc->n2_3way_btn, conrig_state_tc->tars_btn, conrig_state_tc->nitrogen_btn, conrig_state_tc->ignition_btn, conrig_state_tc->arm_switch); } /** @@ -224,14 +224,13 @@ static inline uint16_t mavlink_msg_conrig_state_tc_encode(uint8_t system_id, uin */ static inline uint16_t mavlink_msg_conrig_state_tc_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_conrig_state_tc_t* conrig_state_tc) { - return mavlink_msg_conrig_state_tc_pack_chan(system_id, component_id, chan, msg, conrig_state_tc->ignition_btn, conrig_state_tc->n2o_filling_btn, conrig_state_tc->n2o_release_btn, conrig_state_tc->n2o_detach_btn, conrig_state_tc->n2o_venting_btn, conrig_state_tc->n2_filling_btn, conrig_state_tc->n2_release_btn, conrig_state_tc->n2_detach_btn, conrig_state_tc->n2_quenching_btn, conrig_state_tc->n2_3way_btn, conrig_state_tc->tars_btn, conrig_state_tc->nitrogen_btn, conrig_state_tc->arm_switch); + return mavlink_msg_conrig_state_tc_pack_chan(system_id, component_id, chan, msg, conrig_state_tc->n2o_filling_btn, conrig_state_tc->n2o_release_btn, conrig_state_tc->n2o_detach_btn, conrig_state_tc->n2o_venting_btn, conrig_state_tc->n2_filling_btn, conrig_state_tc->n2_release_btn, conrig_state_tc->n2_detach_btn, conrig_state_tc->n2_quenching_btn, conrig_state_tc->n2_3way_btn, conrig_state_tc->tars_btn, conrig_state_tc->nitrogen_btn, conrig_state_tc->ignition_btn, conrig_state_tc->arm_switch); } /** * @brief Send a conrig_state_tc message * @param chan MAVLink channel to send the message * - * @param ignition_btn Ignition button state * @param n2o_filling_btn N2O filling valve button state * @param n2o_release_btn N2O release line pressure valve button state * @param n2o_detach_btn N2O quick connector detach button state @@ -243,32 +242,32 @@ static inline uint16_t mavlink_msg_conrig_state_tc_encode_chan(uint8_t system_id * @param n2_3way_btn N2 3-way valve button state * @param tars_btn TARS algorithm button state * @param nitrogen_btn Nitrogen valve button state + * @param ignition_btn Ignition button state * @param arm_switch Arming switch state */ #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS -static inline void mavlink_msg_conrig_state_tc_send(mavlink_channel_t chan, uint8_t ignition_btn, uint8_t n2o_filling_btn, uint8_t n2o_release_btn, uint8_t n2o_detach_btn, uint8_t n2o_venting_btn, uint8_t n2_filling_btn, uint8_t n2_release_btn, uint8_t n2_detach_btn, uint8_t n2_quenching_btn, uint8_t n2_3way_btn, uint8_t tars_btn, uint8_t nitrogen_btn, uint8_t arm_switch) +static inline void mavlink_msg_conrig_state_tc_send(mavlink_channel_t chan, uint8_t n2o_filling_btn, uint8_t n2o_release_btn, uint8_t n2o_detach_btn, uint8_t n2o_venting_btn, uint8_t n2_filling_btn, uint8_t n2_release_btn, uint8_t n2_detach_btn, uint8_t n2_quenching_btn, uint8_t n2_3way_btn, uint8_t tars_btn, uint8_t nitrogen_btn, uint8_t ignition_btn, uint8_t arm_switch) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char buf[MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN]; - _mav_put_uint8_t(buf, 0, ignition_btn); - _mav_put_uint8_t(buf, 1, n2o_filling_btn); - _mav_put_uint8_t(buf, 2, n2o_release_btn); - _mav_put_uint8_t(buf, 3, n2o_detach_btn); - _mav_put_uint8_t(buf, 4, n2o_venting_btn); - _mav_put_uint8_t(buf, 5, n2_filling_btn); - _mav_put_uint8_t(buf, 6, n2_release_btn); - _mav_put_uint8_t(buf, 7, n2_detach_btn); - _mav_put_uint8_t(buf, 8, n2_quenching_btn); - _mav_put_uint8_t(buf, 9, n2_3way_btn); - _mav_put_uint8_t(buf, 10, tars_btn); - _mav_put_uint8_t(buf, 11, nitrogen_btn); + _mav_put_uint8_t(buf, 0, n2o_filling_btn); + _mav_put_uint8_t(buf, 1, n2o_release_btn); + _mav_put_uint8_t(buf, 2, n2o_detach_btn); + _mav_put_uint8_t(buf, 3, n2o_venting_btn); + _mav_put_uint8_t(buf, 4, n2_filling_btn); + _mav_put_uint8_t(buf, 5, n2_release_btn); + _mav_put_uint8_t(buf, 6, n2_detach_btn); + _mav_put_uint8_t(buf, 7, n2_quenching_btn); + _mav_put_uint8_t(buf, 8, n2_3way_btn); + _mav_put_uint8_t(buf, 9, tars_btn); + _mav_put_uint8_t(buf, 10, nitrogen_btn); + _mav_put_uint8_t(buf, 11, ignition_btn); _mav_put_uint8_t(buf, 12, arm_switch); _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONRIG_STATE_TC, buf, MAVLINK_MSG_ID_CONRIG_STATE_TC_MIN_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_CRC); #else mavlink_conrig_state_tc_t packet; - packet.ignition_btn = ignition_btn; packet.n2o_filling_btn = n2o_filling_btn; packet.n2o_release_btn = n2o_release_btn; packet.n2o_detach_btn = n2o_detach_btn; @@ -280,6 +279,7 @@ static inline void mavlink_msg_conrig_state_tc_send(mavlink_channel_t chan, uint packet.n2_3way_btn = n2_3way_btn; packet.tars_btn = tars_btn; packet.nitrogen_btn = nitrogen_btn; + packet.ignition_btn = ignition_btn; packet.arm_switch = arm_switch; _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONRIG_STATE_TC, (const char *)&packet, MAVLINK_MSG_ID_CONRIG_STATE_TC_MIN_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_CRC); @@ -294,7 +294,7 @@ static inline void mavlink_msg_conrig_state_tc_send(mavlink_channel_t chan, uint static inline void mavlink_msg_conrig_state_tc_send_struct(mavlink_channel_t chan, const mavlink_conrig_state_tc_t* conrig_state_tc) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS - mavlink_msg_conrig_state_tc_send(chan, conrig_state_tc->ignition_btn, conrig_state_tc->n2o_filling_btn, conrig_state_tc->n2o_release_btn, conrig_state_tc->n2o_detach_btn, conrig_state_tc->n2o_venting_btn, conrig_state_tc->n2_filling_btn, conrig_state_tc->n2_release_btn, conrig_state_tc->n2_detach_btn, conrig_state_tc->n2_quenching_btn, conrig_state_tc->n2_3way_btn, conrig_state_tc->tars_btn, conrig_state_tc->nitrogen_btn, conrig_state_tc->arm_switch); + mavlink_msg_conrig_state_tc_send(chan, conrig_state_tc->n2o_filling_btn, conrig_state_tc->n2o_release_btn, conrig_state_tc->n2o_detach_btn, conrig_state_tc->n2o_venting_btn, conrig_state_tc->n2_filling_btn, conrig_state_tc->n2_release_btn, conrig_state_tc->n2_detach_btn, conrig_state_tc->n2_quenching_btn, conrig_state_tc->n2_3way_btn, conrig_state_tc->tars_btn, conrig_state_tc->nitrogen_btn, conrig_state_tc->ignition_btn, conrig_state_tc->arm_switch); #else _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONRIG_STATE_TC, (const char *)conrig_state_tc, MAVLINK_MSG_ID_CONRIG_STATE_TC_MIN_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_CRC); #endif @@ -308,28 +308,27 @@ static inline void mavlink_msg_conrig_state_tc_send_struct(mavlink_channel_t cha is usually the receive buffer for the channel, and allows a reply to an incoming message with minimum stack space usage. */ -static inline void mavlink_msg_conrig_state_tc_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t ignition_btn, uint8_t n2o_filling_btn, uint8_t n2o_release_btn, uint8_t n2o_detach_btn, uint8_t n2o_venting_btn, uint8_t n2_filling_btn, uint8_t n2_release_btn, uint8_t n2_detach_btn, uint8_t n2_quenching_btn, uint8_t n2_3way_btn, uint8_t tars_btn, uint8_t nitrogen_btn, uint8_t arm_switch) +static inline void mavlink_msg_conrig_state_tc_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t n2o_filling_btn, uint8_t n2o_release_btn, uint8_t n2o_detach_btn, uint8_t n2o_venting_btn, uint8_t n2_filling_btn, uint8_t n2_release_btn, uint8_t n2_detach_btn, uint8_t n2_quenching_btn, uint8_t n2_3way_btn, uint8_t tars_btn, uint8_t nitrogen_btn, uint8_t ignition_btn, uint8_t arm_switch) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char *buf = (char *)msgbuf; - _mav_put_uint8_t(buf, 0, ignition_btn); - _mav_put_uint8_t(buf, 1, n2o_filling_btn); - _mav_put_uint8_t(buf, 2, n2o_release_btn); - _mav_put_uint8_t(buf, 3, n2o_detach_btn); - _mav_put_uint8_t(buf, 4, n2o_venting_btn); - _mav_put_uint8_t(buf, 5, n2_filling_btn); - _mav_put_uint8_t(buf, 6, n2_release_btn); - _mav_put_uint8_t(buf, 7, n2_detach_btn); - _mav_put_uint8_t(buf, 8, n2_quenching_btn); - _mav_put_uint8_t(buf, 9, n2_3way_btn); - _mav_put_uint8_t(buf, 10, tars_btn); - _mav_put_uint8_t(buf, 11, nitrogen_btn); + _mav_put_uint8_t(buf, 0, n2o_filling_btn); + _mav_put_uint8_t(buf, 1, n2o_release_btn); + _mav_put_uint8_t(buf, 2, n2o_detach_btn); + _mav_put_uint8_t(buf, 3, n2o_venting_btn); + _mav_put_uint8_t(buf, 4, n2_filling_btn); + _mav_put_uint8_t(buf, 5, n2_release_btn); + _mav_put_uint8_t(buf, 6, n2_detach_btn); + _mav_put_uint8_t(buf, 7, n2_quenching_btn); + _mav_put_uint8_t(buf, 8, n2_3way_btn); + _mav_put_uint8_t(buf, 9, tars_btn); + _mav_put_uint8_t(buf, 10, nitrogen_btn); + _mav_put_uint8_t(buf, 11, ignition_btn); _mav_put_uint8_t(buf, 12, arm_switch); _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONRIG_STATE_TC, buf, MAVLINK_MSG_ID_CONRIG_STATE_TC_MIN_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_CRC); #else mavlink_conrig_state_tc_t *packet = (mavlink_conrig_state_tc_t *)msgbuf; - packet->ignition_btn = ignition_btn; packet->n2o_filling_btn = n2o_filling_btn; packet->n2o_release_btn = n2o_release_btn; packet->n2o_detach_btn = n2o_detach_btn; @@ -341,6 +340,7 @@ static inline void mavlink_msg_conrig_state_tc_send_buf(mavlink_message_t *msgbu packet->n2_3way_btn = n2_3way_btn; packet->tars_btn = tars_btn; packet->nitrogen_btn = nitrogen_btn; + packet->ignition_btn = ignition_btn; packet->arm_switch = arm_switch; _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONRIG_STATE_TC, (const char *)packet, MAVLINK_MSG_ID_CONRIG_STATE_TC_MIN_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN, MAVLINK_MSG_ID_CONRIG_STATE_TC_CRC); @@ -353,16 +353,6 @@ static inline void mavlink_msg_conrig_state_tc_send_buf(mavlink_message_t *msgbu // MESSAGE CONRIG_STATE_TC UNPACKING -/** - * @brief Get field ignition_btn from conrig_state_tc message - * - * @return Ignition button state - */ -static inline uint8_t mavlink_msg_conrig_state_tc_get_ignition_btn(const mavlink_message_t* msg) -{ - return _MAV_RETURN_uint8_t(msg, 0); -} - /** * @brief Get field n2o_filling_btn from conrig_state_tc message * @@ -370,7 +360,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_ignition_btn(const mavlink */ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2o_filling_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 1); + return _MAV_RETURN_uint8_t(msg, 0); } /** @@ -380,7 +370,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2o_filling_btn(const mavl */ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2o_release_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 2); + return _MAV_RETURN_uint8_t(msg, 1); } /** @@ -390,7 +380,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2o_release_btn(const mavl */ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2o_detach_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 3); + return _MAV_RETURN_uint8_t(msg, 2); } /** @@ -400,7 +390,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2o_detach_btn(const mavli */ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2o_venting_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 4); + return _MAV_RETURN_uint8_t(msg, 3); } /** @@ -410,7 +400,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2o_venting_btn(const mavl */ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_filling_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 5); + return _MAV_RETURN_uint8_t(msg, 4); } /** @@ -420,7 +410,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_filling_btn(const mavli */ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_release_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 6); + return _MAV_RETURN_uint8_t(msg, 5); } /** @@ -430,7 +420,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_release_btn(const mavli */ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_detach_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 7); + return _MAV_RETURN_uint8_t(msg, 6); } /** @@ -440,7 +430,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_detach_btn(const mavlin */ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_quenching_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 8); + return _MAV_RETURN_uint8_t(msg, 7); } /** @@ -450,7 +440,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_quenching_btn(const mav */ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_3way_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 9); + return _MAV_RETURN_uint8_t(msg, 8); } /** @@ -460,7 +450,7 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_n2_3way_btn(const mavlink_ */ static inline uint8_t mavlink_msg_conrig_state_tc_get_tars_btn(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 10); + return _MAV_RETURN_uint8_t(msg, 9); } /** @@ -469,6 +459,16 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_tars_btn(const mavlink_mes * @return Nitrogen valve button state */ static inline uint8_t mavlink_msg_conrig_state_tc_get_nitrogen_btn(const mavlink_message_t* msg) +{ + return _MAV_RETURN_uint8_t(msg, 10); +} + +/** + * @brief Get field ignition_btn from conrig_state_tc message + * + * @return Ignition button state + */ +static inline uint8_t mavlink_msg_conrig_state_tc_get_ignition_btn(const mavlink_message_t* msg) { return _MAV_RETURN_uint8_t(msg, 11); } @@ -492,7 +492,6 @@ static inline uint8_t mavlink_msg_conrig_state_tc_get_arm_switch(const mavlink_m static inline void mavlink_msg_conrig_state_tc_decode(const mavlink_message_t* msg, mavlink_conrig_state_tc_t* conrig_state_tc) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS - conrig_state_tc->ignition_btn = mavlink_msg_conrig_state_tc_get_ignition_btn(msg); conrig_state_tc->n2o_filling_btn = mavlink_msg_conrig_state_tc_get_n2o_filling_btn(msg); conrig_state_tc->n2o_release_btn = mavlink_msg_conrig_state_tc_get_n2o_release_btn(msg); conrig_state_tc->n2o_detach_btn = mavlink_msg_conrig_state_tc_get_n2o_detach_btn(msg); @@ -504,6 +503,7 @@ static inline void mavlink_msg_conrig_state_tc_decode(const mavlink_message_t* m conrig_state_tc->n2_3way_btn = mavlink_msg_conrig_state_tc_get_n2_3way_btn(msg); conrig_state_tc->tars_btn = mavlink_msg_conrig_state_tc_get_tars_btn(msg); conrig_state_tc->nitrogen_btn = mavlink_msg_conrig_state_tc_get_nitrogen_btn(msg); + conrig_state_tc->ignition_btn = mavlink_msg_conrig_state_tc_get_ignition_btn(msg); conrig_state_tc->arm_switch = mavlink_msg_conrig_state_tc_get_arm_switch(msg); #else uint8_t len = msg->len < MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN? msg->len : MAVLINK_MSG_ID_CONRIG_STATE_TC_LEN; diff --git a/mavlink_lib/orion/mavlink_msg_gse_tm.h b/mavlink_lib/orion/mavlink_msg_gse_tm.h index 01381833f25aee999c037ed570927498b8fddbda..3a5b0bb2050375f94b97bcf2f89a123b7a6fe06e 100644 --- a/mavlink_lib/orion/mavlink_msg_gse_tm.h +++ b/mavlink_lib/orion/mavlink_msg_gse_tm.h @@ -6,40 +6,50 @@ typedef struct __mavlink_gse_tm_t { uint64_t timestamp; /*< [us] Timestamp in microseconds*/ - float loadcell_rocket; /*< [kg] Rocket weight*/ - float loadcell_vessel; /*< [kg] External tank weight*/ - float filling_pressure; /*< [Bar] Refueling line pressure*/ - float vessel_pressure; /*< [Bar] Vessel tank pressure*/ + float rocket_mass; /*< [kg] Rocket mass loadcell measurement*/ + float n2o_vessel_mass; /*< [kg] N2O vessel tank mass loadcell measurement*/ + float n2o_filling_pressure; /*< [Bar] N2O refueling line pressure*/ + float n2o_vessel_pressure; /*< [Bar] N2O vessel tank pressure*/ + float n2_filling_pressure; /*< [Bar] N2 refueling line pressure*/ + float n2_vessel_1_pressure; /*< [Bar] N2 vessel 1 tank pressure*/ + float n2_vessel_2_pressure; /*< [Bar] N2 vessel 2 tank pressure*/ float cpu_load; /*< CPU load in percentage*/ - uint32_t free_heap; /*< Amount of available heap in memory*/ + uint32_t free_heap; /*< Amount of available heap memory*/ float battery_voltage; /*< Battery voltage*/ float current_consumption; /*< [A] RIG current*/ float umbilical_current_consumption; /*< [A] Umbilical current*/ int32_t log_good; /*< 0 if log failed, 1 otherwise*/ int16_t log_number; /*< Currently active log file, -1 if the logger is inactive*/ - uint8_t filling_valve_state; /*< 1 If the filling valve is open*/ - uint8_t venting_valve_state; /*< 1 If the venting valve is open*/ - uint8_t release_valve_state; /*< 1 If the release valve is open*/ - uint8_t main_valve_state; /*< 1 If the main valve is open*/ - uint8_t nitrogen_valve_state; /*< 1 If the nitrogen valve is open*/ + uint8_t n2o_filling_valve_state; /*< N2O filling valve state (1: open, 0: close)*/ + uint8_t n2o_release_valve_state; /*< N2O release line pressure valve state (1: open, 0: close)*/ + uint8_t n2o_detach_state; /*< N2O quick connector detach state (1: open, 0: close)*/ + uint8_t n2o_venting_valve_state; /*< N2O venting valve state (1: open, 0: close)*/ + uint8_t n2_filling_valve_state; /*< N2 filling valve state (1: open, 0: close)*/ + uint8_t n2_release_valve_state; /*< N2 release line pressure valve state (1: open, 0: close)*/ + uint8_t n2_detach_state; /*< N2 quick connector detach state (1: open, 0: close)*/ + uint8_t n2_quenching_valve_state; /*< N2 quenching valve state (1: open, 0: close)*/ + uint8_t n2_3way_valve_state; /*< N2 3-way valve state (1: open, 0: close)*/ + uint8_t main_valve_state; /*< Rocket main N2O valve state (1: open, 0: close)*/ + uint8_t nitrogen_valve_state; /*< Rocket main N2 valve state (1: open, 0: close)*/ + uint8_t ignition_state; /*< Ignition relay logical state (1: enabled, 0: disabled)*/ uint8_t gmm_state; /*< State of the GroundModeManager*/ - uint8_t tars_state; /*< State of Tars*/ - uint8_t arming_state; /*< Arming state (1 if armed, 0 otherwise)*/ - uint8_t main_board_state; /*< Main board fmm state*/ - uint8_t payload_board_state; /*< Payload board fmm state*/ - uint8_t motor_board_state; /*< Motor board fmm state*/ + uint8_t tars_state; /*< State of TARS*/ + uint8_t arming_state; /*< Arming state (1: armed, 0: otherwise)*/ + uint8_t main_board_state; /*< Main board FMM state*/ + uint8_t payload_board_state; /*< Payload board FMM state*/ + uint8_t motor_board_state; /*< Motor board FMM state*/ uint8_t main_can_status; /*< Main CAN status*/ uint8_t payload_can_status; /*< Payload CAN status*/ uint8_t motor_can_status; /*< Motor CAN status*/ } mavlink_gse_tm_t; -#define MAVLINK_MSG_ID_GSE_TM_LEN 64 -#define MAVLINK_MSG_ID_GSE_TM_MIN_LEN 64 -#define MAVLINK_MSG_ID_212_LEN 64 -#define MAVLINK_MSG_ID_212_MIN_LEN 64 +#define MAVLINK_MSG_ID_GSE_TM_LEN 83 +#define MAVLINK_MSG_ID_GSE_TM_MIN_LEN 83 +#define MAVLINK_MSG_ID_212_LEN 83 +#define MAVLINK_MSG_ID_212_MIN_LEN 83 -#define MAVLINK_MSG_ID_GSE_TM_CRC 87 -#define MAVLINK_MSG_ID_212_CRC 87 +#define MAVLINK_MSG_ID_GSE_TM_CRC 196 +#define MAVLINK_MSG_ID_212_CRC 196 @@ -47,65 +57,85 @@ typedef struct __mavlink_gse_tm_t { #define MAVLINK_MESSAGE_INFO_GSE_TM { \ 212, \ "GSE_TM", \ - 26, \ + 36, \ { { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_gse_tm_t, timestamp) }, \ - { "loadcell_rocket", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_gse_tm_t, loadcell_rocket) }, \ - { "loadcell_vessel", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_gse_tm_t, loadcell_vessel) }, \ - { "filling_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_gse_tm_t, filling_pressure) }, \ - { "vessel_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_gse_tm_t, vessel_pressure) }, \ - { "filling_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 50, offsetof(mavlink_gse_tm_t, filling_valve_state) }, \ - { "venting_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 51, offsetof(mavlink_gse_tm_t, venting_valve_state) }, \ - { "release_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 52, offsetof(mavlink_gse_tm_t, release_valve_state) }, \ - { "main_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 53, offsetof(mavlink_gse_tm_t, main_valve_state) }, \ - { "nitrogen_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 54, offsetof(mavlink_gse_tm_t, nitrogen_valve_state) }, \ - { "gmm_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 55, offsetof(mavlink_gse_tm_t, gmm_state) }, \ - { "tars_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 56, offsetof(mavlink_gse_tm_t, tars_state) }, \ - { "arming_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 57, offsetof(mavlink_gse_tm_t, arming_state) }, \ - { "cpu_load", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_gse_tm_t, cpu_load) }, \ - { "free_heap", NULL, MAVLINK_TYPE_UINT32_T, 0, 28, offsetof(mavlink_gse_tm_t, free_heap) }, \ - { "battery_voltage", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_gse_tm_t, battery_voltage) }, \ - { "current_consumption", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_gse_tm_t, current_consumption) }, \ - { "umbilical_current_consumption", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_gse_tm_t, umbilical_current_consumption) }, \ - { "main_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 58, offsetof(mavlink_gse_tm_t, main_board_state) }, \ - { "payload_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 59, offsetof(mavlink_gse_tm_t, payload_board_state) }, \ - { "motor_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 60, offsetof(mavlink_gse_tm_t, motor_board_state) }, \ - { "main_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 61, offsetof(mavlink_gse_tm_t, main_can_status) }, \ - { "payload_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 62, offsetof(mavlink_gse_tm_t, payload_can_status) }, \ - { "motor_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 63, offsetof(mavlink_gse_tm_t, motor_can_status) }, \ - { "log_number", NULL, MAVLINK_TYPE_INT16_T, 0, 48, offsetof(mavlink_gse_tm_t, log_number) }, \ - { "log_good", NULL, MAVLINK_TYPE_INT32_T, 0, 44, offsetof(mavlink_gse_tm_t, log_good) }, \ + { "rocket_mass", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_gse_tm_t, rocket_mass) }, \ + { "n2o_vessel_mass", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_gse_tm_t, n2o_vessel_mass) }, \ + { "n2o_filling_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_gse_tm_t, n2o_filling_pressure) }, \ + { "n2o_vessel_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_gse_tm_t, n2o_vessel_pressure) }, \ + { "n2_filling_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_gse_tm_t, n2_filling_pressure) }, \ + { "n2_vessel_1_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_gse_tm_t, n2_vessel_1_pressure) }, \ + { "n2_vessel_2_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_gse_tm_t, n2_vessel_2_pressure) }, \ + { "n2o_filling_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 62, offsetof(mavlink_gse_tm_t, n2o_filling_valve_state) }, \ + { "n2o_release_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 63, offsetof(mavlink_gse_tm_t, n2o_release_valve_state) }, \ + { "n2o_detach_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 64, offsetof(mavlink_gse_tm_t, n2o_detach_state) }, \ + { "n2o_venting_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 65, offsetof(mavlink_gse_tm_t, n2o_venting_valve_state) }, \ + { "n2_filling_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 66, offsetof(mavlink_gse_tm_t, n2_filling_valve_state) }, \ + { "n2_release_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 67, offsetof(mavlink_gse_tm_t, n2_release_valve_state) }, \ + { "n2_detach_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 68, offsetof(mavlink_gse_tm_t, n2_detach_state) }, \ + { "n2_quenching_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 69, offsetof(mavlink_gse_tm_t, n2_quenching_valve_state) }, \ + { "n2_3way_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 70, offsetof(mavlink_gse_tm_t, n2_3way_valve_state) }, \ + { "main_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 71, offsetof(mavlink_gse_tm_t, main_valve_state) }, \ + { "nitrogen_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 72, offsetof(mavlink_gse_tm_t, nitrogen_valve_state) }, \ + { "ignition_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 73, offsetof(mavlink_gse_tm_t, ignition_state) }, \ + { "gmm_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 74, offsetof(mavlink_gse_tm_t, gmm_state) }, \ + { "tars_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 75, offsetof(mavlink_gse_tm_t, tars_state) }, \ + { "arming_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 76, offsetof(mavlink_gse_tm_t, arming_state) }, \ + { "cpu_load", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_gse_tm_t, cpu_load) }, \ + { "free_heap", NULL, MAVLINK_TYPE_UINT32_T, 0, 40, offsetof(mavlink_gse_tm_t, free_heap) }, \ + { "battery_voltage", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_gse_tm_t, battery_voltage) }, \ + { "current_consumption", NULL, MAVLINK_TYPE_FLOAT, 0, 48, offsetof(mavlink_gse_tm_t, current_consumption) }, \ + { "umbilical_current_consumption", NULL, MAVLINK_TYPE_FLOAT, 0, 52, offsetof(mavlink_gse_tm_t, umbilical_current_consumption) }, \ + { "main_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 77, offsetof(mavlink_gse_tm_t, main_board_state) }, \ + { "payload_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 78, offsetof(mavlink_gse_tm_t, payload_board_state) }, \ + { "motor_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 79, offsetof(mavlink_gse_tm_t, motor_board_state) }, \ + { "main_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 80, offsetof(mavlink_gse_tm_t, main_can_status) }, \ + { "payload_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 81, offsetof(mavlink_gse_tm_t, payload_can_status) }, \ + { "motor_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 82, offsetof(mavlink_gse_tm_t, motor_can_status) }, \ + { "log_number", NULL, MAVLINK_TYPE_INT16_T, 0, 60, offsetof(mavlink_gse_tm_t, log_number) }, \ + { "log_good", NULL, MAVLINK_TYPE_INT32_T, 0, 56, offsetof(mavlink_gse_tm_t, log_good) }, \ } \ } #else #define MAVLINK_MESSAGE_INFO_GSE_TM { \ "GSE_TM", \ - 26, \ + 36, \ { { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_gse_tm_t, timestamp) }, \ - { "loadcell_rocket", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_gse_tm_t, loadcell_rocket) }, \ - { "loadcell_vessel", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_gse_tm_t, loadcell_vessel) }, \ - { "filling_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_gse_tm_t, filling_pressure) }, \ - { "vessel_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_gse_tm_t, vessel_pressure) }, \ - { "filling_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 50, offsetof(mavlink_gse_tm_t, filling_valve_state) }, \ - { "venting_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 51, offsetof(mavlink_gse_tm_t, venting_valve_state) }, \ - { "release_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 52, offsetof(mavlink_gse_tm_t, release_valve_state) }, \ - { "main_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 53, offsetof(mavlink_gse_tm_t, main_valve_state) }, \ - { "nitrogen_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 54, offsetof(mavlink_gse_tm_t, nitrogen_valve_state) }, \ - { "gmm_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 55, offsetof(mavlink_gse_tm_t, gmm_state) }, \ - { "tars_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 56, offsetof(mavlink_gse_tm_t, tars_state) }, \ - { "arming_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 57, offsetof(mavlink_gse_tm_t, arming_state) }, \ - { "cpu_load", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_gse_tm_t, cpu_load) }, \ - { "free_heap", NULL, MAVLINK_TYPE_UINT32_T, 0, 28, offsetof(mavlink_gse_tm_t, free_heap) }, \ - { "battery_voltage", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_gse_tm_t, battery_voltage) }, \ - { "current_consumption", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_gse_tm_t, current_consumption) }, \ - { "umbilical_current_consumption", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_gse_tm_t, umbilical_current_consumption) }, \ - { "main_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 58, offsetof(mavlink_gse_tm_t, main_board_state) }, \ - { "payload_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 59, offsetof(mavlink_gse_tm_t, payload_board_state) }, \ - { "motor_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 60, offsetof(mavlink_gse_tm_t, motor_board_state) }, \ - { "main_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 61, offsetof(mavlink_gse_tm_t, main_can_status) }, \ - { "payload_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 62, offsetof(mavlink_gse_tm_t, payload_can_status) }, \ - { "motor_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 63, offsetof(mavlink_gse_tm_t, motor_can_status) }, \ - { "log_number", NULL, MAVLINK_TYPE_INT16_T, 0, 48, offsetof(mavlink_gse_tm_t, log_number) }, \ - { "log_good", NULL, MAVLINK_TYPE_INT32_T, 0, 44, offsetof(mavlink_gse_tm_t, log_good) }, \ + { "rocket_mass", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_gse_tm_t, rocket_mass) }, \ + { "n2o_vessel_mass", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_gse_tm_t, n2o_vessel_mass) }, \ + { "n2o_filling_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_gse_tm_t, n2o_filling_pressure) }, \ + { "n2o_vessel_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_gse_tm_t, n2o_vessel_pressure) }, \ + { "n2_filling_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_gse_tm_t, n2_filling_pressure) }, \ + { "n2_vessel_1_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_gse_tm_t, n2_vessel_1_pressure) }, \ + { "n2_vessel_2_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_gse_tm_t, n2_vessel_2_pressure) }, \ + { "n2o_filling_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 62, offsetof(mavlink_gse_tm_t, n2o_filling_valve_state) }, \ + { "n2o_release_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 63, offsetof(mavlink_gse_tm_t, n2o_release_valve_state) }, \ + { "n2o_detach_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 64, offsetof(mavlink_gse_tm_t, n2o_detach_state) }, \ + { "n2o_venting_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 65, offsetof(mavlink_gse_tm_t, n2o_venting_valve_state) }, \ + { "n2_filling_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 66, offsetof(mavlink_gse_tm_t, n2_filling_valve_state) }, \ + { "n2_release_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 67, offsetof(mavlink_gse_tm_t, n2_release_valve_state) }, \ + { "n2_detach_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 68, offsetof(mavlink_gse_tm_t, n2_detach_state) }, \ + { "n2_quenching_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 69, offsetof(mavlink_gse_tm_t, n2_quenching_valve_state) }, \ + { "n2_3way_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 70, offsetof(mavlink_gse_tm_t, n2_3way_valve_state) }, \ + { "main_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 71, offsetof(mavlink_gse_tm_t, main_valve_state) }, \ + { "nitrogen_valve_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 72, offsetof(mavlink_gse_tm_t, nitrogen_valve_state) }, \ + { "ignition_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 73, offsetof(mavlink_gse_tm_t, ignition_state) }, \ + { "gmm_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 74, offsetof(mavlink_gse_tm_t, gmm_state) }, \ + { "tars_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 75, offsetof(mavlink_gse_tm_t, tars_state) }, \ + { "arming_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 76, offsetof(mavlink_gse_tm_t, arming_state) }, \ + { "cpu_load", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_gse_tm_t, cpu_load) }, \ + { "free_heap", NULL, MAVLINK_TYPE_UINT32_T, 0, 40, offsetof(mavlink_gse_tm_t, free_heap) }, \ + { "battery_voltage", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_gse_tm_t, battery_voltage) }, \ + { "current_consumption", NULL, MAVLINK_TYPE_FLOAT, 0, 48, offsetof(mavlink_gse_tm_t, current_consumption) }, \ + { "umbilical_current_consumption", NULL, MAVLINK_TYPE_FLOAT, 0, 52, offsetof(mavlink_gse_tm_t, umbilical_current_consumption) }, \ + { "main_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 77, offsetof(mavlink_gse_tm_t, main_board_state) }, \ + { "payload_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 78, offsetof(mavlink_gse_tm_t, payload_board_state) }, \ + { "motor_board_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 79, offsetof(mavlink_gse_tm_t, motor_board_state) }, \ + { "main_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 80, offsetof(mavlink_gse_tm_t, main_can_status) }, \ + { "payload_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 81, offsetof(mavlink_gse_tm_t, payload_can_status) }, \ + { "motor_can_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 82, offsetof(mavlink_gse_tm_t, motor_can_status) }, \ + { "log_number", NULL, MAVLINK_TYPE_INT16_T, 0, 60, offsetof(mavlink_gse_tm_t, log_number) }, \ + { "log_good", NULL, MAVLINK_TYPE_INT32_T, 0, 56, offsetof(mavlink_gse_tm_t, log_good) }, \ } \ } #endif @@ -117,26 +147,36 @@ typedef struct __mavlink_gse_tm_t { * @param msg The MAVLink message to compress the data into * * @param timestamp [us] Timestamp in microseconds - * @param loadcell_rocket [kg] Rocket weight - * @param loadcell_vessel [kg] External tank weight - * @param filling_pressure [Bar] Refueling line pressure - * @param vessel_pressure [Bar] Vessel tank pressure - * @param filling_valve_state 1 If the filling valve is open - * @param venting_valve_state 1 If the venting valve is open - * @param release_valve_state 1 If the release valve is open - * @param main_valve_state 1 If the main valve is open - * @param nitrogen_valve_state 1 If the nitrogen valve is open + * @param rocket_mass [kg] Rocket mass loadcell measurement + * @param n2o_vessel_mass [kg] N2O vessel tank mass loadcell measurement + * @param n2o_filling_pressure [Bar] N2O refueling line pressure + * @param n2o_vessel_pressure [Bar] N2O vessel tank pressure + * @param n2_filling_pressure [Bar] N2 refueling line pressure + * @param n2_vessel_1_pressure [Bar] N2 vessel 1 tank pressure + * @param n2_vessel_2_pressure [Bar] N2 vessel 2 tank pressure + * @param n2o_filling_valve_state N2O filling valve state (1: open, 0: close) + * @param n2o_release_valve_state N2O release line pressure valve state (1: open, 0: close) + * @param n2o_detach_state N2O quick connector detach state (1: open, 0: close) + * @param n2o_venting_valve_state N2O venting valve state (1: open, 0: close) + * @param n2_filling_valve_state N2 filling valve state (1: open, 0: close) + * @param n2_release_valve_state N2 release line pressure valve state (1: open, 0: close) + * @param n2_detach_state N2 quick connector detach state (1: open, 0: close) + * @param n2_quenching_valve_state N2 quenching valve state (1: open, 0: close) + * @param n2_3way_valve_state N2 3-way valve state (1: open, 0: close) + * @param main_valve_state Rocket main N2O valve state (1: open, 0: close) + * @param nitrogen_valve_state Rocket main N2 valve state (1: open, 0: close) + * @param ignition_state Ignition relay logical state (1: enabled, 0: disabled) * @param gmm_state State of the GroundModeManager - * @param tars_state State of Tars - * @param arming_state Arming state (1 if armed, 0 otherwise) + * @param tars_state State of TARS + * @param arming_state Arming state (1: armed, 0: otherwise) * @param cpu_load CPU load in percentage - * @param free_heap Amount of available heap in memory + * @param free_heap Amount of available heap memory * @param battery_voltage Battery voltage * @param current_consumption [A] RIG current * @param umbilical_current_consumption [A] Umbilical current - * @param main_board_state Main board fmm state - * @param payload_board_state Payload board fmm state - * @param motor_board_state Motor board fmm state + * @param main_board_state Main board FMM state + * @param payload_board_state Payload board FMM state + * @param motor_board_state Motor board FMM state * @param main_can_status Main CAN status * @param payload_can_status Payload CAN status * @param motor_can_status Motor CAN status @@ -145,45 +185,58 @@ typedef struct __mavlink_gse_tm_t { * @return length of the message in bytes (excluding serial stream start sign) */ static inline uint16_t mavlink_msg_gse_tm_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, - uint64_t timestamp, float loadcell_rocket, float loadcell_vessel, float filling_pressure, float vessel_pressure, uint8_t filling_valve_state, uint8_t venting_valve_state, uint8_t release_valve_state, uint8_t main_valve_state, uint8_t nitrogen_valve_state, uint8_t gmm_state, uint8_t tars_state, uint8_t arming_state, float cpu_load, uint32_t free_heap, float battery_voltage, float current_consumption, float umbilical_current_consumption, uint8_t main_board_state, uint8_t payload_board_state, uint8_t motor_board_state, uint8_t main_can_status, uint8_t payload_can_status, uint8_t motor_can_status, int16_t log_number, int32_t log_good) + uint64_t timestamp, float rocket_mass, float n2o_vessel_mass, float n2o_filling_pressure, float n2o_vessel_pressure, float n2_filling_pressure, float n2_vessel_1_pressure, float n2_vessel_2_pressure, uint8_t n2o_filling_valve_state, uint8_t n2o_release_valve_state, uint8_t n2o_detach_state, uint8_t n2o_venting_valve_state, uint8_t n2_filling_valve_state, uint8_t n2_release_valve_state, uint8_t n2_detach_state, uint8_t n2_quenching_valve_state, uint8_t n2_3way_valve_state, uint8_t main_valve_state, uint8_t nitrogen_valve_state, uint8_t ignition_state, uint8_t gmm_state, uint8_t tars_state, uint8_t arming_state, float cpu_load, uint32_t free_heap, float battery_voltage, float current_consumption, float umbilical_current_consumption, uint8_t main_board_state, uint8_t payload_board_state, uint8_t motor_board_state, uint8_t main_can_status, uint8_t payload_can_status, uint8_t motor_can_status, int16_t log_number, int32_t log_good) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char buf[MAVLINK_MSG_ID_GSE_TM_LEN]; _mav_put_uint64_t(buf, 0, timestamp); - _mav_put_float(buf, 8, loadcell_rocket); - _mav_put_float(buf, 12, loadcell_vessel); - _mav_put_float(buf, 16, filling_pressure); - _mav_put_float(buf, 20, vessel_pressure); - _mav_put_float(buf, 24, cpu_load); - _mav_put_uint32_t(buf, 28, free_heap); - _mav_put_float(buf, 32, battery_voltage); - _mav_put_float(buf, 36, current_consumption); - _mav_put_float(buf, 40, umbilical_current_consumption); - _mav_put_int32_t(buf, 44, log_good); - _mav_put_int16_t(buf, 48, log_number); - _mav_put_uint8_t(buf, 50, filling_valve_state); - _mav_put_uint8_t(buf, 51, venting_valve_state); - _mav_put_uint8_t(buf, 52, release_valve_state); - _mav_put_uint8_t(buf, 53, main_valve_state); - _mav_put_uint8_t(buf, 54, nitrogen_valve_state); - _mav_put_uint8_t(buf, 55, gmm_state); - _mav_put_uint8_t(buf, 56, tars_state); - _mav_put_uint8_t(buf, 57, arming_state); - _mav_put_uint8_t(buf, 58, main_board_state); - _mav_put_uint8_t(buf, 59, payload_board_state); - _mav_put_uint8_t(buf, 60, motor_board_state); - _mav_put_uint8_t(buf, 61, main_can_status); - _mav_put_uint8_t(buf, 62, payload_can_status); - _mav_put_uint8_t(buf, 63, motor_can_status); + _mav_put_float(buf, 8, rocket_mass); + _mav_put_float(buf, 12, n2o_vessel_mass); + _mav_put_float(buf, 16, n2o_filling_pressure); + _mav_put_float(buf, 20, n2o_vessel_pressure); + _mav_put_float(buf, 24, n2_filling_pressure); + _mav_put_float(buf, 28, n2_vessel_1_pressure); + _mav_put_float(buf, 32, n2_vessel_2_pressure); + _mav_put_float(buf, 36, cpu_load); + _mav_put_uint32_t(buf, 40, free_heap); + _mav_put_float(buf, 44, battery_voltage); + _mav_put_float(buf, 48, current_consumption); + _mav_put_float(buf, 52, umbilical_current_consumption); + _mav_put_int32_t(buf, 56, log_good); + _mav_put_int16_t(buf, 60, log_number); + _mav_put_uint8_t(buf, 62, n2o_filling_valve_state); + _mav_put_uint8_t(buf, 63, n2o_release_valve_state); + _mav_put_uint8_t(buf, 64, n2o_detach_state); + _mav_put_uint8_t(buf, 65, n2o_venting_valve_state); + _mav_put_uint8_t(buf, 66, n2_filling_valve_state); + _mav_put_uint8_t(buf, 67, n2_release_valve_state); + _mav_put_uint8_t(buf, 68, n2_detach_state); + _mav_put_uint8_t(buf, 69, n2_quenching_valve_state); + _mav_put_uint8_t(buf, 70, n2_3way_valve_state); + _mav_put_uint8_t(buf, 71, main_valve_state); + _mav_put_uint8_t(buf, 72, nitrogen_valve_state); + _mav_put_uint8_t(buf, 73, ignition_state); + _mav_put_uint8_t(buf, 74, gmm_state); + _mav_put_uint8_t(buf, 75, tars_state); + _mav_put_uint8_t(buf, 76, arming_state); + _mav_put_uint8_t(buf, 77, main_board_state); + _mav_put_uint8_t(buf, 78, payload_board_state); + _mav_put_uint8_t(buf, 79, motor_board_state); + _mav_put_uint8_t(buf, 80, main_can_status); + _mav_put_uint8_t(buf, 81, payload_can_status); + _mav_put_uint8_t(buf, 82, motor_can_status); memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GSE_TM_LEN); #else mavlink_gse_tm_t packet; packet.timestamp = timestamp; - packet.loadcell_rocket = loadcell_rocket; - packet.loadcell_vessel = loadcell_vessel; - packet.filling_pressure = filling_pressure; - packet.vessel_pressure = vessel_pressure; + packet.rocket_mass = rocket_mass; + packet.n2o_vessel_mass = n2o_vessel_mass; + packet.n2o_filling_pressure = n2o_filling_pressure; + packet.n2o_vessel_pressure = n2o_vessel_pressure; + packet.n2_filling_pressure = n2_filling_pressure; + packet.n2_vessel_1_pressure = n2_vessel_1_pressure; + packet.n2_vessel_2_pressure = n2_vessel_2_pressure; packet.cpu_load = cpu_load; packet.free_heap = free_heap; packet.battery_voltage = battery_voltage; @@ -191,11 +244,18 @@ static inline uint16_t mavlink_msg_gse_tm_pack(uint8_t system_id, uint8_t compon packet.umbilical_current_consumption = umbilical_current_consumption; packet.log_good = log_good; packet.log_number = log_number; - packet.filling_valve_state = filling_valve_state; - packet.venting_valve_state = venting_valve_state; - packet.release_valve_state = release_valve_state; + packet.n2o_filling_valve_state = n2o_filling_valve_state; + packet.n2o_release_valve_state = n2o_release_valve_state; + packet.n2o_detach_state = n2o_detach_state; + packet.n2o_venting_valve_state = n2o_venting_valve_state; + packet.n2_filling_valve_state = n2_filling_valve_state; + packet.n2_release_valve_state = n2_release_valve_state; + packet.n2_detach_state = n2_detach_state; + packet.n2_quenching_valve_state = n2_quenching_valve_state; + packet.n2_3way_valve_state = n2_3way_valve_state; packet.main_valve_state = main_valve_state; packet.nitrogen_valve_state = nitrogen_valve_state; + packet.ignition_state = ignition_state; packet.gmm_state = gmm_state; packet.tars_state = tars_state; packet.arming_state = arming_state; @@ -220,26 +280,36 @@ static inline uint16_t mavlink_msg_gse_tm_pack(uint8_t system_id, uint8_t compon * @param chan The MAVLink channel this message will be sent over * @param msg The MAVLink message to compress the data into * @param timestamp [us] Timestamp in microseconds - * @param loadcell_rocket [kg] Rocket weight - * @param loadcell_vessel [kg] External tank weight - * @param filling_pressure [Bar] Refueling line pressure - * @param vessel_pressure [Bar] Vessel tank pressure - * @param filling_valve_state 1 If the filling valve is open - * @param venting_valve_state 1 If the venting valve is open - * @param release_valve_state 1 If the release valve is open - * @param main_valve_state 1 If the main valve is open - * @param nitrogen_valve_state 1 If the nitrogen valve is open + * @param rocket_mass [kg] Rocket mass loadcell measurement + * @param n2o_vessel_mass [kg] N2O vessel tank mass loadcell measurement + * @param n2o_filling_pressure [Bar] N2O refueling line pressure + * @param n2o_vessel_pressure [Bar] N2O vessel tank pressure + * @param n2_filling_pressure [Bar] N2 refueling line pressure + * @param n2_vessel_1_pressure [Bar] N2 vessel 1 tank pressure + * @param n2_vessel_2_pressure [Bar] N2 vessel 2 tank pressure + * @param n2o_filling_valve_state N2O filling valve state (1: open, 0: close) + * @param n2o_release_valve_state N2O release line pressure valve state (1: open, 0: close) + * @param n2o_detach_state N2O quick connector detach state (1: open, 0: close) + * @param n2o_venting_valve_state N2O venting valve state (1: open, 0: close) + * @param n2_filling_valve_state N2 filling valve state (1: open, 0: close) + * @param n2_release_valve_state N2 release line pressure valve state (1: open, 0: close) + * @param n2_detach_state N2 quick connector detach state (1: open, 0: close) + * @param n2_quenching_valve_state N2 quenching valve state (1: open, 0: close) + * @param n2_3way_valve_state N2 3-way valve state (1: open, 0: close) + * @param main_valve_state Rocket main N2O valve state (1: open, 0: close) + * @param nitrogen_valve_state Rocket main N2 valve state (1: open, 0: close) + * @param ignition_state Ignition relay logical state (1: enabled, 0: disabled) * @param gmm_state State of the GroundModeManager - * @param tars_state State of Tars - * @param arming_state Arming state (1 if armed, 0 otherwise) + * @param tars_state State of TARS + * @param arming_state Arming state (1: armed, 0: otherwise) * @param cpu_load CPU load in percentage - * @param free_heap Amount of available heap in memory + * @param free_heap Amount of available heap memory * @param battery_voltage Battery voltage * @param current_consumption [A] RIG current * @param umbilical_current_consumption [A] Umbilical current - * @param main_board_state Main board fmm state - * @param payload_board_state Payload board fmm state - * @param motor_board_state Motor board fmm state + * @param main_board_state Main board FMM state + * @param payload_board_state Payload board FMM state + * @param motor_board_state Motor board FMM state * @param main_can_status Main CAN status * @param payload_can_status Payload CAN status * @param motor_can_status Motor CAN status @@ -249,45 +319,58 @@ static inline uint16_t mavlink_msg_gse_tm_pack(uint8_t system_id, uint8_t compon */ static inline uint16_t mavlink_msg_gse_tm_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, - uint64_t timestamp,float loadcell_rocket,float loadcell_vessel,float filling_pressure,float vessel_pressure,uint8_t filling_valve_state,uint8_t venting_valve_state,uint8_t release_valve_state,uint8_t main_valve_state,uint8_t nitrogen_valve_state,uint8_t gmm_state,uint8_t tars_state,uint8_t arming_state,float cpu_load,uint32_t free_heap,float battery_voltage,float current_consumption,float umbilical_current_consumption,uint8_t main_board_state,uint8_t payload_board_state,uint8_t motor_board_state,uint8_t main_can_status,uint8_t payload_can_status,uint8_t motor_can_status,int16_t log_number,int32_t log_good) + uint64_t timestamp,float rocket_mass,float n2o_vessel_mass,float n2o_filling_pressure,float n2o_vessel_pressure,float n2_filling_pressure,float n2_vessel_1_pressure,float n2_vessel_2_pressure,uint8_t n2o_filling_valve_state,uint8_t n2o_release_valve_state,uint8_t n2o_detach_state,uint8_t n2o_venting_valve_state,uint8_t n2_filling_valve_state,uint8_t n2_release_valve_state,uint8_t n2_detach_state,uint8_t n2_quenching_valve_state,uint8_t n2_3way_valve_state,uint8_t main_valve_state,uint8_t nitrogen_valve_state,uint8_t ignition_state,uint8_t gmm_state,uint8_t tars_state,uint8_t arming_state,float cpu_load,uint32_t free_heap,float battery_voltage,float current_consumption,float umbilical_current_consumption,uint8_t main_board_state,uint8_t payload_board_state,uint8_t motor_board_state,uint8_t main_can_status,uint8_t payload_can_status,uint8_t motor_can_status,int16_t log_number,int32_t log_good) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char buf[MAVLINK_MSG_ID_GSE_TM_LEN]; _mav_put_uint64_t(buf, 0, timestamp); - _mav_put_float(buf, 8, loadcell_rocket); - _mav_put_float(buf, 12, loadcell_vessel); - _mav_put_float(buf, 16, filling_pressure); - _mav_put_float(buf, 20, vessel_pressure); - _mav_put_float(buf, 24, cpu_load); - _mav_put_uint32_t(buf, 28, free_heap); - _mav_put_float(buf, 32, battery_voltage); - _mav_put_float(buf, 36, current_consumption); - _mav_put_float(buf, 40, umbilical_current_consumption); - _mav_put_int32_t(buf, 44, log_good); - _mav_put_int16_t(buf, 48, log_number); - _mav_put_uint8_t(buf, 50, filling_valve_state); - _mav_put_uint8_t(buf, 51, venting_valve_state); - _mav_put_uint8_t(buf, 52, release_valve_state); - _mav_put_uint8_t(buf, 53, main_valve_state); - _mav_put_uint8_t(buf, 54, nitrogen_valve_state); - _mav_put_uint8_t(buf, 55, gmm_state); - _mav_put_uint8_t(buf, 56, tars_state); - _mav_put_uint8_t(buf, 57, arming_state); - _mav_put_uint8_t(buf, 58, main_board_state); - _mav_put_uint8_t(buf, 59, payload_board_state); - _mav_put_uint8_t(buf, 60, motor_board_state); - _mav_put_uint8_t(buf, 61, main_can_status); - _mav_put_uint8_t(buf, 62, payload_can_status); - _mav_put_uint8_t(buf, 63, motor_can_status); + _mav_put_float(buf, 8, rocket_mass); + _mav_put_float(buf, 12, n2o_vessel_mass); + _mav_put_float(buf, 16, n2o_filling_pressure); + _mav_put_float(buf, 20, n2o_vessel_pressure); + _mav_put_float(buf, 24, n2_filling_pressure); + _mav_put_float(buf, 28, n2_vessel_1_pressure); + _mav_put_float(buf, 32, n2_vessel_2_pressure); + _mav_put_float(buf, 36, cpu_load); + _mav_put_uint32_t(buf, 40, free_heap); + _mav_put_float(buf, 44, battery_voltage); + _mav_put_float(buf, 48, current_consumption); + _mav_put_float(buf, 52, umbilical_current_consumption); + _mav_put_int32_t(buf, 56, log_good); + _mav_put_int16_t(buf, 60, log_number); + _mav_put_uint8_t(buf, 62, n2o_filling_valve_state); + _mav_put_uint8_t(buf, 63, n2o_release_valve_state); + _mav_put_uint8_t(buf, 64, n2o_detach_state); + _mav_put_uint8_t(buf, 65, n2o_venting_valve_state); + _mav_put_uint8_t(buf, 66, n2_filling_valve_state); + _mav_put_uint8_t(buf, 67, n2_release_valve_state); + _mav_put_uint8_t(buf, 68, n2_detach_state); + _mav_put_uint8_t(buf, 69, n2_quenching_valve_state); + _mav_put_uint8_t(buf, 70, n2_3way_valve_state); + _mav_put_uint8_t(buf, 71, main_valve_state); + _mav_put_uint8_t(buf, 72, nitrogen_valve_state); + _mav_put_uint8_t(buf, 73, ignition_state); + _mav_put_uint8_t(buf, 74, gmm_state); + _mav_put_uint8_t(buf, 75, tars_state); + _mav_put_uint8_t(buf, 76, arming_state); + _mav_put_uint8_t(buf, 77, main_board_state); + _mav_put_uint8_t(buf, 78, payload_board_state); + _mav_put_uint8_t(buf, 79, motor_board_state); + _mav_put_uint8_t(buf, 80, main_can_status); + _mav_put_uint8_t(buf, 81, payload_can_status); + _mav_put_uint8_t(buf, 82, motor_can_status); memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GSE_TM_LEN); #else mavlink_gse_tm_t packet; packet.timestamp = timestamp; - packet.loadcell_rocket = loadcell_rocket; - packet.loadcell_vessel = loadcell_vessel; - packet.filling_pressure = filling_pressure; - packet.vessel_pressure = vessel_pressure; + packet.rocket_mass = rocket_mass; + packet.n2o_vessel_mass = n2o_vessel_mass; + packet.n2o_filling_pressure = n2o_filling_pressure; + packet.n2o_vessel_pressure = n2o_vessel_pressure; + packet.n2_filling_pressure = n2_filling_pressure; + packet.n2_vessel_1_pressure = n2_vessel_1_pressure; + packet.n2_vessel_2_pressure = n2_vessel_2_pressure; packet.cpu_load = cpu_load; packet.free_heap = free_heap; packet.battery_voltage = battery_voltage; @@ -295,11 +378,18 @@ static inline uint16_t mavlink_msg_gse_tm_pack_chan(uint8_t system_id, uint8_t c packet.umbilical_current_consumption = umbilical_current_consumption; packet.log_good = log_good; packet.log_number = log_number; - packet.filling_valve_state = filling_valve_state; - packet.venting_valve_state = venting_valve_state; - packet.release_valve_state = release_valve_state; + packet.n2o_filling_valve_state = n2o_filling_valve_state; + packet.n2o_release_valve_state = n2o_release_valve_state; + packet.n2o_detach_state = n2o_detach_state; + packet.n2o_venting_valve_state = n2o_venting_valve_state; + packet.n2_filling_valve_state = n2_filling_valve_state; + packet.n2_release_valve_state = n2_release_valve_state; + packet.n2_detach_state = n2_detach_state; + packet.n2_quenching_valve_state = n2_quenching_valve_state; + packet.n2_3way_valve_state = n2_3way_valve_state; packet.main_valve_state = main_valve_state; packet.nitrogen_valve_state = nitrogen_valve_state; + packet.ignition_state = ignition_state; packet.gmm_state = gmm_state; packet.tars_state = tars_state; packet.arming_state = arming_state; @@ -327,7 +417,7 @@ static inline uint16_t mavlink_msg_gse_tm_pack_chan(uint8_t system_id, uint8_t c */ static inline uint16_t mavlink_msg_gse_tm_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_gse_tm_t* gse_tm) { - return mavlink_msg_gse_tm_pack(system_id, component_id, msg, gse_tm->timestamp, gse_tm->loadcell_rocket, gse_tm->loadcell_vessel, gse_tm->filling_pressure, gse_tm->vessel_pressure, gse_tm->filling_valve_state, gse_tm->venting_valve_state, gse_tm->release_valve_state, gse_tm->main_valve_state, gse_tm->nitrogen_valve_state, gse_tm->gmm_state, gse_tm->tars_state, gse_tm->arming_state, gse_tm->cpu_load, gse_tm->free_heap, gse_tm->battery_voltage, gse_tm->current_consumption, gse_tm->umbilical_current_consumption, gse_tm->main_board_state, gse_tm->payload_board_state, gse_tm->motor_board_state, gse_tm->main_can_status, gse_tm->payload_can_status, gse_tm->motor_can_status, gse_tm->log_number, gse_tm->log_good); + return mavlink_msg_gse_tm_pack(system_id, component_id, msg, gse_tm->timestamp, gse_tm->rocket_mass, gse_tm->n2o_vessel_mass, gse_tm->n2o_filling_pressure, gse_tm->n2o_vessel_pressure, gse_tm->n2_filling_pressure, gse_tm->n2_vessel_1_pressure, gse_tm->n2_vessel_2_pressure, gse_tm->n2o_filling_valve_state, gse_tm->n2o_release_valve_state, gse_tm->n2o_detach_state, gse_tm->n2o_venting_valve_state, gse_tm->n2_filling_valve_state, gse_tm->n2_release_valve_state, gse_tm->n2_detach_state, gse_tm->n2_quenching_valve_state, gse_tm->n2_3way_valve_state, gse_tm->main_valve_state, gse_tm->nitrogen_valve_state, gse_tm->ignition_state, gse_tm->gmm_state, gse_tm->tars_state, gse_tm->arming_state, gse_tm->cpu_load, gse_tm->free_heap, gse_tm->battery_voltage, gse_tm->current_consumption, gse_tm->umbilical_current_consumption, gse_tm->main_board_state, gse_tm->payload_board_state, gse_tm->motor_board_state, gse_tm->main_can_status, gse_tm->payload_can_status, gse_tm->motor_can_status, gse_tm->log_number, gse_tm->log_good); } /** @@ -341,7 +431,7 @@ static inline uint16_t mavlink_msg_gse_tm_encode(uint8_t system_id, uint8_t comp */ static inline uint16_t mavlink_msg_gse_tm_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_gse_tm_t* gse_tm) { - return mavlink_msg_gse_tm_pack_chan(system_id, component_id, chan, msg, gse_tm->timestamp, gse_tm->loadcell_rocket, gse_tm->loadcell_vessel, gse_tm->filling_pressure, gse_tm->vessel_pressure, gse_tm->filling_valve_state, gse_tm->venting_valve_state, gse_tm->release_valve_state, gse_tm->main_valve_state, gse_tm->nitrogen_valve_state, gse_tm->gmm_state, gse_tm->tars_state, gse_tm->arming_state, gse_tm->cpu_load, gse_tm->free_heap, gse_tm->battery_voltage, gse_tm->current_consumption, gse_tm->umbilical_current_consumption, gse_tm->main_board_state, gse_tm->payload_board_state, gse_tm->motor_board_state, gse_tm->main_can_status, gse_tm->payload_can_status, gse_tm->motor_can_status, gse_tm->log_number, gse_tm->log_good); + return mavlink_msg_gse_tm_pack_chan(system_id, component_id, chan, msg, gse_tm->timestamp, gse_tm->rocket_mass, gse_tm->n2o_vessel_mass, gse_tm->n2o_filling_pressure, gse_tm->n2o_vessel_pressure, gse_tm->n2_filling_pressure, gse_tm->n2_vessel_1_pressure, gse_tm->n2_vessel_2_pressure, gse_tm->n2o_filling_valve_state, gse_tm->n2o_release_valve_state, gse_tm->n2o_detach_state, gse_tm->n2o_venting_valve_state, gse_tm->n2_filling_valve_state, gse_tm->n2_release_valve_state, gse_tm->n2_detach_state, gse_tm->n2_quenching_valve_state, gse_tm->n2_3way_valve_state, gse_tm->main_valve_state, gse_tm->nitrogen_valve_state, gse_tm->ignition_state, gse_tm->gmm_state, gse_tm->tars_state, gse_tm->arming_state, gse_tm->cpu_load, gse_tm->free_heap, gse_tm->battery_voltage, gse_tm->current_consumption, gse_tm->umbilical_current_consumption, gse_tm->main_board_state, gse_tm->payload_board_state, gse_tm->motor_board_state, gse_tm->main_can_status, gse_tm->payload_can_status, gse_tm->motor_can_status, gse_tm->log_number, gse_tm->log_good); } /** @@ -349,26 +439,36 @@ static inline uint16_t mavlink_msg_gse_tm_encode_chan(uint8_t system_id, uint8_t * @param chan MAVLink channel to send the message * * @param timestamp [us] Timestamp in microseconds - * @param loadcell_rocket [kg] Rocket weight - * @param loadcell_vessel [kg] External tank weight - * @param filling_pressure [Bar] Refueling line pressure - * @param vessel_pressure [Bar] Vessel tank pressure - * @param filling_valve_state 1 If the filling valve is open - * @param venting_valve_state 1 If the venting valve is open - * @param release_valve_state 1 If the release valve is open - * @param main_valve_state 1 If the main valve is open - * @param nitrogen_valve_state 1 If the nitrogen valve is open + * @param rocket_mass [kg] Rocket mass loadcell measurement + * @param n2o_vessel_mass [kg] N2O vessel tank mass loadcell measurement + * @param n2o_filling_pressure [Bar] N2O refueling line pressure + * @param n2o_vessel_pressure [Bar] N2O vessel tank pressure + * @param n2_filling_pressure [Bar] N2 refueling line pressure + * @param n2_vessel_1_pressure [Bar] N2 vessel 1 tank pressure + * @param n2_vessel_2_pressure [Bar] N2 vessel 2 tank pressure + * @param n2o_filling_valve_state N2O filling valve state (1: open, 0: close) + * @param n2o_release_valve_state N2O release line pressure valve state (1: open, 0: close) + * @param n2o_detach_state N2O quick connector detach state (1: open, 0: close) + * @param n2o_venting_valve_state N2O venting valve state (1: open, 0: close) + * @param n2_filling_valve_state N2 filling valve state (1: open, 0: close) + * @param n2_release_valve_state N2 release line pressure valve state (1: open, 0: close) + * @param n2_detach_state N2 quick connector detach state (1: open, 0: close) + * @param n2_quenching_valve_state N2 quenching valve state (1: open, 0: close) + * @param n2_3way_valve_state N2 3-way valve state (1: open, 0: close) + * @param main_valve_state Rocket main N2O valve state (1: open, 0: close) + * @param nitrogen_valve_state Rocket main N2 valve state (1: open, 0: close) + * @param ignition_state Ignition relay logical state (1: enabled, 0: disabled) * @param gmm_state State of the GroundModeManager - * @param tars_state State of Tars - * @param arming_state Arming state (1 if armed, 0 otherwise) + * @param tars_state State of TARS + * @param arming_state Arming state (1: armed, 0: otherwise) * @param cpu_load CPU load in percentage - * @param free_heap Amount of available heap in memory + * @param free_heap Amount of available heap memory * @param battery_voltage Battery voltage * @param current_consumption [A] RIG current * @param umbilical_current_consumption [A] Umbilical current - * @param main_board_state Main board fmm state - * @param payload_board_state Payload board fmm state - * @param motor_board_state Motor board fmm state + * @param main_board_state Main board FMM state + * @param payload_board_state Payload board FMM state + * @param motor_board_state Motor board FMM state * @param main_can_status Main CAN status * @param payload_can_status Payload CAN status * @param motor_can_status Motor CAN status @@ -377,45 +477,58 @@ static inline uint16_t mavlink_msg_gse_tm_encode_chan(uint8_t system_id, uint8_t */ #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS -static inline void mavlink_msg_gse_tm_send(mavlink_channel_t chan, uint64_t timestamp, float loadcell_rocket, float loadcell_vessel, float filling_pressure, float vessel_pressure, uint8_t filling_valve_state, uint8_t venting_valve_state, uint8_t release_valve_state, uint8_t main_valve_state, uint8_t nitrogen_valve_state, uint8_t gmm_state, uint8_t tars_state, uint8_t arming_state, float cpu_load, uint32_t free_heap, float battery_voltage, float current_consumption, float umbilical_current_consumption, uint8_t main_board_state, uint8_t payload_board_state, uint8_t motor_board_state, uint8_t main_can_status, uint8_t payload_can_status, uint8_t motor_can_status, int16_t log_number, int32_t log_good) +static inline void mavlink_msg_gse_tm_send(mavlink_channel_t chan, uint64_t timestamp, float rocket_mass, float n2o_vessel_mass, float n2o_filling_pressure, float n2o_vessel_pressure, float n2_filling_pressure, float n2_vessel_1_pressure, float n2_vessel_2_pressure, uint8_t n2o_filling_valve_state, uint8_t n2o_release_valve_state, uint8_t n2o_detach_state, uint8_t n2o_venting_valve_state, uint8_t n2_filling_valve_state, uint8_t n2_release_valve_state, uint8_t n2_detach_state, uint8_t n2_quenching_valve_state, uint8_t n2_3way_valve_state, uint8_t main_valve_state, uint8_t nitrogen_valve_state, uint8_t ignition_state, uint8_t gmm_state, uint8_t tars_state, uint8_t arming_state, float cpu_load, uint32_t free_heap, float battery_voltage, float current_consumption, float umbilical_current_consumption, uint8_t main_board_state, uint8_t payload_board_state, uint8_t motor_board_state, uint8_t main_can_status, uint8_t payload_can_status, uint8_t motor_can_status, int16_t log_number, int32_t log_good) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char buf[MAVLINK_MSG_ID_GSE_TM_LEN]; _mav_put_uint64_t(buf, 0, timestamp); - _mav_put_float(buf, 8, loadcell_rocket); - _mav_put_float(buf, 12, loadcell_vessel); - _mav_put_float(buf, 16, filling_pressure); - _mav_put_float(buf, 20, vessel_pressure); - _mav_put_float(buf, 24, cpu_load); - _mav_put_uint32_t(buf, 28, free_heap); - _mav_put_float(buf, 32, battery_voltage); - _mav_put_float(buf, 36, current_consumption); - _mav_put_float(buf, 40, umbilical_current_consumption); - _mav_put_int32_t(buf, 44, log_good); - _mav_put_int16_t(buf, 48, log_number); - _mav_put_uint8_t(buf, 50, filling_valve_state); - _mav_put_uint8_t(buf, 51, venting_valve_state); - _mav_put_uint8_t(buf, 52, release_valve_state); - _mav_put_uint8_t(buf, 53, main_valve_state); - _mav_put_uint8_t(buf, 54, nitrogen_valve_state); - _mav_put_uint8_t(buf, 55, gmm_state); - _mav_put_uint8_t(buf, 56, tars_state); - _mav_put_uint8_t(buf, 57, arming_state); - _mav_put_uint8_t(buf, 58, main_board_state); - _mav_put_uint8_t(buf, 59, payload_board_state); - _mav_put_uint8_t(buf, 60, motor_board_state); - _mav_put_uint8_t(buf, 61, main_can_status); - _mav_put_uint8_t(buf, 62, payload_can_status); - _mav_put_uint8_t(buf, 63, motor_can_status); + _mav_put_float(buf, 8, rocket_mass); + _mav_put_float(buf, 12, n2o_vessel_mass); + _mav_put_float(buf, 16, n2o_filling_pressure); + _mav_put_float(buf, 20, n2o_vessel_pressure); + _mav_put_float(buf, 24, n2_filling_pressure); + _mav_put_float(buf, 28, n2_vessel_1_pressure); + _mav_put_float(buf, 32, n2_vessel_2_pressure); + _mav_put_float(buf, 36, cpu_load); + _mav_put_uint32_t(buf, 40, free_heap); + _mav_put_float(buf, 44, battery_voltage); + _mav_put_float(buf, 48, current_consumption); + _mav_put_float(buf, 52, umbilical_current_consumption); + _mav_put_int32_t(buf, 56, log_good); + _mav_put_int16_t(buf, 60, log_number); + _mav_put_uint8_t(buf, 62, n2o_filling_valve_state); + _mav_put_uint8_t(buf, 63, n2o_release_valve_state); + _mav_put_uint8_t(buf, 64, n2o_detach_state); + _mav_put_uint8_t(buf, 65, n2o_venting_valve_state); + _mav_put_uint8_t(buf, 66, n2_filling_valve_state); + _mav_put_uint8_t(buf, 67, n2_release_valve_state); + _mav_put_uint8_t(buf, 68, n2_detach_state); + _mav_put_uint8_t(buf, 69, n2_quenching_valve_state); + _mav_put_uint8_t(buf, 70, n2_3way_valve_state); + _mav_put_uint8_t(buf, 71, main_valve_state); + _mav_put_uint8_t(buf, 72, nitrogen_valve_state); + _mav_put_uint8_t(buf, 73, ignition_state); + _mav_put_uint8_t(buf, 74, gmm_state); + _mav_put_uint8_t(buf, 75, tars_state); + _mav_put_uint8_t(buf, 76, arming_state); + _mav_put_uint8_t(buf, 77, main_board_state); + _mav_put_uint8_t(buf, 78, payload_board_state); + _mav_put_uint8_t(buf, 79, motor_board_state); + _mav_put_uint8_t(buf, 80, main_can_status); + _mav_put_uint8_t(buf, 81, payload_can_status); + _mav_put_uint8_t(buf, 82, motor_can_status); _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GSE_TM, buf, MAVLINK_MSG_ID_GSE_TM_MIN_LEN, MAVLINK_MSG_ID_GSE_TM_LEN, MAVLINK_MSG_ID_GSE_TM_CRC); #else mavlink_gse_tm_t packet; packet.timestamp = timestamp; - packet.loadcell_rocket = loadcell_rocket; - packet.loadcell_vessel = loadcell_vessel; - packet.filling_pressure = filling_pressure; - packet.vessel_pressure = vessel_pressure; + packet.rocket_mass = rocket_mass; + packet.n2o_vessel_mass = n2o_vessel_mass; + packet.n2o_filling_pressure = n2o_filling_pressure; + packet.n2o_vessel_pressure = n2o_vessel_pressure; + packet.n2_filling_pressure = n2_filling_pressure; + packet.n2_vessel_1_pressure = n2_vessel_1_pressure; + packet.n2_vessel_2_pressure = n2_vessel_2_pressure; packet.cpu_load = cpu_load; packet.free_heap = free_heap; packet.battery_voltage = battery_voltage; @@ -423,11 +536,18 @@ static inline void mavlink_msg_gse_tm_send(mavlink_channel_t chan, uint64_t time packet.umbilical_current_consumption = umbilical_current_consumption; packet.log_good = log_good; packet.log_number = log_number; - packet.filling_valve_state = filling_valve_state; - packet.venting_valve_state = venting_valve_state; - packet.release_valve_state = release_valve_state; + packet.n2o_filling_valve_state = n2o_filling_valve_state; + packet.n2o_release_valve_state = n2o_release_valve_state; + packet.n2o_detach_state = n2o_detach_state; + packet.n2o_venting_valve_state = n2o_venting_valve_state; + packet.n2_filling_valve_state = n2_filling_valve_state; + packet.n2_release_valve_state = n2_release_valve_state; + packet.n2_detach_state = n2_detach_state; + packet.n2_quenching_valve_state = n2_quenching_valve_state; + packet.n2_3way_valve_state = n2_3way_valve_state; packet.main_valve_state = main_valve_state; packet.nitrogen_valve_state = nitrogen_valve_state; + packet.ignition_state = ignition_state; packet.gmm_state = gmm_state; packet.tars_state = tars_state; packet.arming_state = arming_state; @@ -450,7 +570,7 @@ static inline void mavlink_msg_gse_tm_send(mavlink_channel_t chan, uint64_t time static inline void mavlink_msg_gse_tm_send_struct(mavlink_channel_t chan, const mavlink_gse_tm_t* gse_tm) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS - mavlink_msg_gse_tm_send(chan, gse_tm->timestamp, gse_tm->loadcell_rocket, gse_tm->loadcell_vessel, gse_tm->filling_pressure, gse_tm->vessel_pressure, gse_tm->filling_valve_state, gse_tm->venting_valve_state, gse_tm->release_valve_state, gse_tm->main_valve_state, gse_tm->nitrogen_valve_state, gse_tm->gmm_state, gse_tm->tars_state, gse_tm->arming_state, gse_tm->cpu_load, gse_tm->free_heap, gse_tm->battery_voltage, gse_tm->current_consumption, gse_tm->umbilical_current_consumption, gse_tm->main_board_state, gse_tm->payload_board_state, gse_tm->motor_board_state, gse_tm->main_can_status, gse_tm->payload_can_status, gse_tm->motor_can_status, gse_tm->log_number, gse_tm->log_good); + mavlink_msg_gse_tm_send(chan, gse_tm->timestamp, gse_tm->rocket_mass, gse_tm->n2o_vessel_mass, gse_tm->n2o_filling_pressure, gse_tm->n2o_vessel_pressure, gse_tm->n2_filling_pressure, gse_tm->n2_vessel_1_pressure, gse_tm->n2_vessel_2_pressure, gse_tm->n2o_filling_valve_state, gse_tm->n2o_release_valve_state, gse_tm->n2o_detach_state, gse_tm->n2o_venting_valve_state, gse_tm->n2_filling_valve_state, gse_tm->n2_release_valve_state, gse_tm->n2_detach_state, gse_tm->n2_quenching_valve_state, gse_tm->n2_3way_valve_state, gse_tm->main_valve_state, gse_tm->nitrogen_valve_state, gse_tm->ignition_state, gse_tm->gmm_state, gse_tm->tars_state, gse_tm->arming_state, gse_tm->cpu_load, gse_tm->free_heap, gse_tm->battery_voltage, gse_tm->current_consumption, gse_tm->umbilical_current_consumption, gse_tm->main_board_state, gse_tm->payload_board_state, gse_tm->motor_board_state, gse_tm->main_can_status, gse_tm->payload_can_status, gse_tm->motor_can_status, gse_tm->log_number, gse_tm->log_good); #else _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GSE_TM, (const char *)gse_tm, MAVLINK_MSG_ID_GSE_TM_MIN_LEN, MAVLINK_MSG_ID_GSE_TM_LEN, MAVLINK_MSG_ID_GSE_TM_CRC); #endif @@ -464,45 +584,58 @@ static inline void mavlink_msg_gse_tm_send_struct(mavlink_channel_t chan, const is usually the receive buffer for the channel, and allows a reply to an incoming message with minimum stack space usage. */ -static inline void mavlink_msg_gse_tm_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t timestamp, float loadcell_rocket, float loadcell_vessel, float filling_pressure, float vessel_pressure, uint8_t filling_valve_state, uint8_t venting_valve_state, uint8_t release_valve_state, uint8_t main_valve_state, uint8_t nitrogen_valve_state, uint8_t gmm_state, uint8_t tars_state, uint8_t arming_state, float cpu_load, uint32_t free_heap, float battery_voltage, float current_consumption, float umbilical_current_consumption, uint8_t main_board_state, uint8_t payload_board_state, uint8_t motor_board_state, uint8_t main_can_status, uint8_t payload_can_status, uint8_t motor_can_status, int16_t log_number, int32_t log_good) +static inline void mavlink_msg_gse_tm_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint64_t timestamp, float rocket_mass, float n2o_vessel_mass, float n2o_filling_pressure, float n2o_vessel_pressure, float n2_filling_pressure, float n2_vessel_1_pressure, float n2_vessel_2_pressure, uint8_t n2o_filling_valve_state, uint8_t n2o_release_valve_state, uint8_t n2o_detach_state, uint8_t n2o_venting_valve_state, uint8_t n2_filling_valve_state, uint8_t n2_release_valve_state, uint8_t n2_detach_state, uint8_t n2_quenching_valve_state, uint8_t n2_3way_valve_state, uint8_t main_valve_state, uint8_t nitrogen_valve_state, uint8_t ignition_state, uint8_t gmm_state, uint8_t tars_state, uint8_t arming_state, float cpu_load, uint32_t free_heap, float battery_voltage, float current_consumption, float umbilical_current_consumption, uint8_t main_board_state, uint8_t payload_board_state, uint8_t motor_board_state, uint8_t main_can_status, uint8_t payload_can_status, uint8_t motor_can_status, int16_t log_number, int32_t log_good) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS char *buf = (char *)msgbuf; _mav_put_uint64_t(buf, 0, timestamp); - _mav_put_float(buf, 8, loadcell_rocket); - _mav_put_float(buf, 12, loadcell_vessel); - _mav_put_float(buf, 16, filling_pressure); - _mav_put_float(buf, 20, vessel_pressure); - _mav_put_float(buf, 24, cpu_load); - _mav_put_uint32_t(buf, 28, free_heap); - _mav_put_float(buf, 32, battery_voltage); - _mav_put_float(buf, 36, current_consumption); - _mav_put_float(buf, 40, umbilical_current_consumption); - _mav_put_int32_t(buf, 44, log_good); - _mav_put_int16_t(buf, 48, log_number); - _mav_put_uint8_t(buf, 50, filling_valve_state); - _mav_put_uint8_t(buf, 51, venting_valve_state); - _mav_put_uint8_t(buf, 52, release_valve_state); - _mav_put_uint8_t(buf, 53, main_valve_state); - _mav_put_uint8_t(buf, 54, nitrogen_valve_state); - _mav_put_uint8_t(buf, 55, gmm_state); - _mav_put_uint8_t(buf, 56, tars_state); - _mav_put_uint8_t(buf, 57, arming_state); - _mav_put_uint8_t(buf, 58, main_board_state); - _mav_put_uint8_t(buf, 59, payload_board_state); - _mav_put_uint8_t(buf, 60, motor_board_state); - _mav_put_uint8_t(buf, 61, main_can_status); - _mav_put_uint8_t(buf, 62, payload_can_status); - _mav_put_uint8_t(buf, 63, motor_can_status); + _mav_put_float(buf, 8, rocket_mass); + _mav_put_float(buf, 12, n2o_vessel_mass); + _mav_put_float(buf, 16, n2o_filling_pressure); + _mav_put_float(buf, 20, n2o_vessel_pressure); + _mav_put_float(buf, 24, n2_filling_pressure); + _mav_put_float(buf, 28, n2_vessel_1_pressure); + _mav_put_float(buf, 32, n2_vessel_2_pressure); + _mav_put_float(buf, 36, cpu_load); + _mav_put_uint32_t(buf, 40, free_heap); + _mav_put_float(buf, 44, battery_voltage); + _mav_put_float(buf, 48, current_consumption); + _mav_put_float(buf, 52, umbilical_current_consumption); + _mav_put_int32_t(buf, 56, log_good); + _mav_put_int16_t(buf, 60, log_number); + _mav_put_uint8_t(buf, 62, n2o_filling_valve_state); + _mav_put_uint8_t(buf, 63, n2o_release_valve_state); + _mav_put_uint8_t(buf, 64, n2o_detach_state); + _mav_put_uint8_t(buf, 65, n2o_venting_valve_state); + _mav_put_uint8_t(buf, 66, n2_filling_valve_state); + _mav_put_uint8_t(buf, 67, n2_release_valve_state); + _mav_put_uint8_t(buf, 68, n2_detach_state); + _mav_put_uint8_t(buf, 69, n2_quenching_valve_state); + _mav_put_uint8_t(buf, 70, n2_3way_valve_state); + _mav_put_uint8_t(buf, 71, main_valve_state); + _mav_put_uint8_t(buf, 72, nitrogen_valve_state); + _mav_put_uint8_t(buf, 73, ignition_state); + _mav_put_uint8_t(buf, 74, gmm_state); + _mav_put_uint8_t(buf, 75, tars_state); + _mav_put_uint8_t(buf, 76, arming_state); + _mav_put_uint8_t(buf, 77, main_board_state); + _mav_put_uint8_t(buf, 78, payload_board_state); + _mav_put_uint8_t(buf, 79, motor_board_state); + _mav_put_uint8_t(buf, 80, main_can_status); + _mav_put_uint8_t(buf, 81, payload_can_status); + _mav_put_uint8_t(buf, 82, motor_can_status); _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GSE_TM, buf, MAVLINK_MSG_ID_GSE_TM_MIN_LEN, MAVLINK_MSG_ID_GSE_TM_LEN, MAVLINK_MSG_ID_GSE_TM_CRC); #else mavlink_gse_tm_t *packet = (mavlink_gse_tm_t *)msgbuf; packet->timestamp = timestamp; - packet->loadcell_rocket = loadcell_rocket; - packet->loadcell_vessel = loadcell_vessel; - packet->filling_pressure = filling_pressure; - packet->vessel_pressure = vessel_pressure; + packet->rocket_mass = rocket_mass; + packet->n2o_vessel_mass = n2o_vessel_mass; + packet->n2o_filling_pressure = n2o_filling_pressure; + packet->n2o_vessel_pressure = n2o_vessel_pressure; + packet->n2_filling_pressure = n2_filling_pressure; + packet->n2_vessel_1_pressure = n2_vessel_1_pressure; + packet->n2_vessel_2_pressure = n2_vessel_2_pressure; packet->cpu_load = cpu_load; packet->free_heap = free_heap; packet->battery_voltage = battery_voltage; @@ -510,11 +643,18 @@ static inline void mavlink_msg_gse_tm_send_buf(mavlink_message_t *msgbuf, mavlin packet->umbilical_current_consumption = umbilical_current_consumption; packet->log_good = log_good; packet->log_number = log_number; - packet->filling_valve_state = filling_valve_state; - packet->venting_valve_state = venting_valve_state; - packet->release_valve_state = release_valve_state; + packet->n2o_filling_valve_state = n2o_filling_valve_state; + packet->n2o_release_valve_state = n2o_release_valve_state; + packet->n2o_detach_state = n2o_detach_state; + packet->n2o_venting_valve_state = n2o_venting_valve_state; + packet->n2_filling_valve_state = n2_filling_valve_state; + packet->n2_release_valve_state = n2_release_valve_state; + packet->n2_detach_state = n2_detach_state; + packet->n2_quenching_valve_state = n2_quenching_valve_state; + packet->n2_3way_valve_state = n2_3way_valve_state; packet->main_valve_state = main_valve_state; packet->nitrogen_valve_state = nitrogen_valve_state; + packet->ignition_state = ignition_state; packet->gmm_state = gmm_state; packet->tars_state = tars_state; packet->arming_state = arming_state; @@ -546,93 +686,193 @@ static inline uint64_t mavlink_msg_gse_tm_get_timestamp(const mavlink_message_t* } /** - * @brief Get field loadcell_rocket from gse_tm message + * @brief Get field rocket_mass from gse_tm message * - * @return [kg] Rocket weight + * @return [kg] Rocket mass loadcell measurement */ -static inline float mavlink_msg_gse_tm_get_loadcell_rocket(const mavlink_message_t* msg) +static inline float mavlink_msg_gse_tm_get_rocket_mass(const mavlink_message_t* msg) { return _MAV_RETURN_float(msg, 8); } /** - * @brief Get field loadcell_vessel from gse_tm message + * @brief Get field n2o_vessel_mass from gse_tm message * - * @return [kg] External tank weight + * @return [kg] N2O vessel tank mass loadcell measurement */ -static inline float mavlink_msg_gse_tm_get_loadcell_vessel(const mavlink_message_t* msg) +static inline float mavlink_msg_gse_tm_get_n2o_vessel_mass(const mavlink_message_t* msg) { return _MAV_RETURN_float(msg, 12); } /** - * @brief Get field filling_pressure from gse_tm message + * @brief Get field n2o_filling_pressure from gse_tm message * - * @return [Bar] Refueling line pressure + * @return [Bar] N2O refueling line pressure */ -static inline float mavlink_msg_gse_tm_get_filling_pressure(const mavlink_message_t* msg) +static inline float mavlink_msg_gse_tm_get_n2o_filling_pressure(const mavlink_message_t* msg) { return _MAV_RETURN_float(msg, 16); } /** - * @brief Get field vessel_pressure from gse_tm message + * @brief Get field n2o_vessel_pressure from gse_tm message * - * @return [Bar] Vessel tank pressure + * @return [Bar] N2O vessel tank pressure */ -static inline float mavlink_msg_gse_tm_get_vessel_pressure(const mavlink_message_t* msg) +static inline float mavlink_msg_gse_tm_get_n2o_vessel_pressure(const mavlink_message_t* msg) { return _MAV_RETURN_float(msg, 20); } /** - * @brief Get field filling_valve_state from gse_tm message + * @brief Get field n2_filling_pressure from gse_tm message * - * @return 1 If the filling valve is open + * @return [Bar] N2 refueling line pressure */ -static inline uint8_t mavlink_msg_gse_tm_get_filling_valve_state(const mavlink_message_t* msg) +static inline float mavlink_msg_gse_tm_get_n2_filling_pressure(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 50); + return _MAV_RETURN_float(msg, 24); +} + +/** + * @brief Get field n2_vessel_1_pressure from gse_tm message + * + * @return [Bar] N2 vessel 1 tank pressure + */ +static inline float mavlink_msg_gse_tm_get_n2_vessel_1_pressure(const mavlink_message_t* msg) +{ + return _MAV_RETURN_float(msg, 28); +} + +/** + * @brief Get field n2_vessel_2_pressure from gse_tm message + * + * @return [Bar] N2 vessel 2 tank pressure + */ +static inline float mavlink_msg_gse_tm_get_n2_vessel_2_pressure(const mavlink_message_t* msg) +{ + return _MAV_RETURN_float(msg, 32); +} + +/** + * @brief Get field n2o_filling_valve_state from gse_tm message + * + * @return N2O filling valve state (1: open, 0: close) + */ +static inline uint8_t mavlink_msg_gse_tm_get_n2o_filling_valve_state(const mavlink_message_t* msg) +{ + return _MAV_RETURN_uint8_t(msg, 62); +} + +/** + * @brief Get field n2o_release_valve_state from gse_tm message + * + * @return N2O release line pressure valve state (1: open, 0: close) + */ +static inline uint8_t mavlink_msg_gse_tm_get_n2o_release_valve_state(const mavlink_message_t* msg) +{ + return _MAV_RETURN_uint8_t(msg, 63); +} + +/** + * @brief Get field n2o_detach_state from gse_tm message + * + * @return N2O quick connector detach state (1: open, 0: close) + */ +static inline uint8_t mavlink_msg_gse_tm_get_n2o_detach_state(const mavlink_message_t* msg) +{ + return _MAV_RETURN_uint8_t(msg, 64); +} + +/** + * @brief Get field n2o_venting_valve_state from gse_tm message + * + * @return N2O venting valve state (1: open, 0: close) + */ +static inline uint8_t mavlink_msg_gse_tm_get_n2o_venting_valve_state(const mavlink_message_t* msg) +{ + return _MAV_RETURN_uint8_t(msg, 65); +} + +/** + * @brief Get field n2_filling_valve_state from gse_tm message + * + * @return N2 filling valve state (1: open, 0: close) + */ +static inline uint8_t mavlink_msg_gse_tm_get_n2_filling_valve_state(const mavlink_message_t* msg) +{ + return _MAV_RETURN_uint8_t(msg, 66); } /** - * @brief Get field venting_valve_state from gse_tm message + * @brief Get field n2_release_valve_state from gse_tm message * - * @return 1 If the venting valve is open + * @return N2 release line pressure valve state (1: open, 0: close) */ -static inline uint8_t mavlink_msg_gse_tm_get_venting_valve_state(const mavlink_message_t* msg) +static inline uint8_t mavlink_msg_gse_tm_get_n2_release_valve_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 51); + return _MAV_RETURN_uint8_t(msg, 67); } /** - * @brief Get field release_valve_state from gse_tm message + * @brief Get field n2_detach_state from gse_tm message * - * @return 1 If the release valve is open + * @return N2 quick connector detach state (1: open, 0: close) */ -static inline uint8_t mavlink_msg_gse_tm_get_release_valve_state(const mavlink_message_t* msg) +static inline uint8_t mavlink_msg_gse_tm_get_n2_detach_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 52); + return _MAV_RETURN_uint8_t(msg, 68); +} + +/** + * @brief Get field n2_quenching_valve_state from gse_tm message + * + * @return N2 quenching valve state (1: open, 0: close) + */ +static inline uint8_t mavlink_msg_gse_tm_get_n2_quenching_valve_state(const mavlink_message_t* msg) +{ + return _MAV_RETURN_uint8_t(msg, 69); +} + +/** + * @brief Get field n2_3way_valve_state from gse_tm message + * + * @return N2 3-way valve state (1: open, 0: close) + */ +static inline uint8_t mavlink_msg_gse_tm_get_n2_3way_valve_state(const mavlink_message_t* msg) +{ + return _MAV_RETURN_uint8_t(msg, 70); } /** * @brief Get field main_valve_state from gse_tm message * - * @return 1 If the main valve is open + * @return Rocket main N2O valve state (1: open, 0: close) */ static inline uint8_t mavlink_msg_gse_tm_get_main_valve_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 53); + return _MAV_RETURN_uint8_t(msg, 71); } /** * @brief Get field nitrogen_valve_state from gse_tm message * - * @return 1 If the nitrogen valve is open + * @return Rocket main N2 valve state (1: open, 0: close) */ static inline uint8_t mavlink_msg_gse_tm_get_nitrogen_valve_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 54); + return _MAV_RETURN_uint8_t(msg, 72); +} + +/** + * @brief Get field ignition_state from gse_tm message + * + * @return Ignition relay logical state (1: enabled, 0: disabled) + */ +static inline uint8_t mavlink_msg_gse_tm_get_ignition_state(const mavlink_message_t* msg) +{ + return _MAV_RETURN_uint8_t(msg, 73); } /** @@ -642,27 +882,27 @@ static inline uint8_t mavlink_msg_gse_tm_get_nitrogen_valve_state(const mavlink_ */ static inline uint8_t mavlink_msg_gse_tm_get_gmm_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 55); + return _MAV_RETURN_uint8_t(msg, 74); } /** * @brief Get field tars_state from gse_tm message * - * @return State of Tars + * @return State of TARS */ static inline uint8_t mavlink_msg_gse_tm_get_tars_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 56); + return _MAV_RETURN_uint8_t(msg, 75); } /** * @brief Get field arming_state from gse_tm message * - * @return Arming state (1 if armed, 0 otherwise) + * @return Arming state (1: armed, 0: otherwise) */ static inline uint8_t mavlink_msg_gse_tm_get_arming_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 57); + return _MAV_RETURN_uint8_t(msg, 76); } /** @@ -672,17 +912,17 @@ static inline uint8_t mavlink_msg_gse_tm_get_arming_state(const mavlink_message_ */ static inline float mavlink_msg_gse_tm_get_cpu_load(const mavlink_message_t* msg) { - return _MAV_RETURN_float(msg, 24); + return _MAV_RETURN_float(msg, 36); } /** * @brief Get field free_heap from gse_tm message * - * @return Amount of available heap in memory + * @return Amount of available heap memory */ static inline uint32_t mavlink_msg_gse_tm_get_free_heap(const mavlink_message_t* msg) { - return _MAV_RETURN_uint32_t(msg, 28); + return _MAV_RETURN_uint32_t(msg, 40); } /** @@ -692,7 +932,7 @@ static inline uint32_t mavlink_msg_gse_tm_get_free_heap(const mavlink_message_t* */ static inline float mavlink_msg_gse_tm_get_battery_voltage(const mavlink_message_t* msg) { - return _MAV_RETURN_float(msg, 32); + return _MAV_RETURN_float(msg, 44); } /** @@ -702,7 +942,7 @@ static inline float mavlink_msg_gse_tm_get_battery_voltage(const mavlink_message */ static inline float mavlink_msg_gse_tm_get_current_consumption(const mavlink_message_t* msg) { - return _MAV_RETURN_float(msg, 36); + return _MAV_RETURN_float(msg, 48); } /** @@ -712,37 +952,37 @@ static inline float mavlink_msg_gse_tm_get_current_consumption(const mavlink_mes */ static inline float mavlink_msg_gse_tm_get_umbilical_current_consumption(const mavlink_message_t* msg) { - return _MAV_RETURN_float(msg, 40); + return _MAV_RETURN_float(msg, 52); } /** * @brief Get field main_board_state from gse_tm message * - * @return Main board fmm state + * @return Main board FMM state */ static inline uint8_t mavlink_msg_gse_tm_get_main_board_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 58); + return _MAV_RETURN_uint8_t(msg, 77); } /** * @brief Get field payload_board_state from gse_tm message * - * @return Payload board fmm state + * @return Payload board FMM state */ static inline uint8_t mavlink_msg_gse_tm_get_payload_board_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 59); + return _MAV_RETURN_uint8_t(msg, 78); } /** * @brief Get field motor_board_state from gse_tm message * - * @return Motor board fmm state + * @return Motor board FMM state */ static inline uint8_t mavlink_msg_gse_tm_get_motor_board_state(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 60); + return _MAV_RETURN_uint8_t(msg, 79); } /** @@ -752,7 +992,7 @@ static inline uint8_t mavlink_msg_gse_tm_get_motor_board_state(const mavlink_mes */ static inline uint8_t mavlink_msg_gse_tm_get_main_can_status(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 61); + return _MAV_RETURN_uint8_t(msg, 80); } /** @@ -762,7 +1002,7 @@ static inline uint8_t mavlink_msg_gse_tm_get_main_can_status(const mavlink_messa */ static inline uint8_t mavlink_msg_gse_tm_get_payload_can_status(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 62); + return _MAV_RETURN_uint8_t(msg, 81); } /** @@ -772,7 +1012,7 @@ static inline uint8_t mavlink_msg_gse_tm_get_payload_can_status(const mavlink_me */ static inline uint8_t mavlink_msg_gse_tm_get_motor_can_status(const mavlink_message_t* msg) { - return _MAV_RETURN_uint8_t(msg, 63); + return _MAV_RETURN_uint8_t(msg, 82); } /** @@ -782,7 +1022,7 @@ static inline uint8_t mavlink_msg_gse_tm_get_motor_can_status(const mavlink_mess */ static inline int16_t mavlink_msg_gse_tm_get_log_number(const mavlink_message_t* msg) { - return _MAV_RETURN_int16_t(msg, 48); + return _MAV_RETURN_int16_t(msg, 60); } /** @@ -792,7 +1032,7 @@ static inline int16_t mavlink_msg_gse_tm_get_log_number(const mavlink_message_t* */ static inline int32_t mavlink_msg_gse_tm_get_log_good(const mavlink_message_t* msg) { - return _MAV_RETURN_int32_t(msg, 44); + return _MAV_RETURN_int32_t(msg, 56); } /** @@ -805,10 +1045,13 @@ static inline void mavlink_msg_gse_tm_decode(const mavlink_message_t* msg, mavli { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS gse_tm->timestamp = mavlink_msg_gse_tm_get_timestamp(msg); - gse_tm->loadcell_rocket = mavlink_msg_gse_tm_get_loadcell_rocket(msg); - gse_tm->loadcell_vessel = mavlink_msg_gse_tm_get_loadcell_vessel(msg); - gse_tm->filling_pressure = mavlink_msg_gse_tm_get_filling_pressure(msg); - gse_tm->vessel_pressure = mavlink_msg_gse_tm_get_vessel_pressure(msg); + gse_tm->rocket_mass = mavlink_msg_gse_tm_get_rocket_mass(msg); + gse_tm->n2o_vessel_mass = mavlink_msg_gse_tm_get_n2o_vessel_mass(msg); + gse_tm->n2o_filling_pressure = mavlink_msg_gse_tm_get_n2o_filling_pressure(msg); + gse_tm->n2o_vessel_pressure = mavlink_msg_gse_tm_get_n2o_vessel_pressure(msg); + gse_tm->n2_filling_pressure = mavlink_msg_gse_tm_get_n2_filling_pressure(msg); + gse_tm->n2_vessel_1_pressure = mavlink_msg_gse_tm_get_n2_vessel_1_pressure(msg); + gse_tm->n2_vessel_2_pressure = mavlink_msg_gse_tm_get_n2_vessel_2_pressure(msg); gse_tm->cpu_load = mavlink_msg_gse_tm_get_cpu_load(msg); gse_tm->free_heap = mavlink_msg_gse_tm_get_free_heap(msg); gse_tm->battery_voltage = mavlink_msg_gse_tm_get_battery_voltage(msg); @@ -816,11 +1059,18 @@ static inline void mavlink_msg_gse_tm_decode(const mavlink_message_t* msg, mavli gse_tm->umbilical_current_consumption = mavlink_msg_gse_tm_get_umbilical_current_consumption(msg); gse_tm->log_good = mavlink_msg_gse_tm_get_log_good(msg); gse_tm->log_number = mavlink_msg_gse_tm_get_log_number(msg); - gse_tm->filling_valve_state = mavlink_msg_gse_tm_get_filling_valve_state(msg); - gse_tm->venting_valve_state = mavlink_msg_gse_tm_get_venting_valve_state(msg); - gse_tm->release_valve_state = mavlink_msg_gse_tm_get_release_valve_state(msg); + gse_tm->n2o_filling_valve_state = mavlink_msg_gse_tm_get_n2o_filling_valve_state(msg); + gse_tm->n2o_release_valve_state = mavlink_msg_gse_tm_get_n2o_release_valve_state(msg); + gse_tm->n2o_detach_state = mavlink_msg_gse_tm_get_n2o_detach_state(msg); + gse_tm->n2o_venting_valve_state = mavlink_msg_gse_tm_get_n2o_venting_valve_state(msg); + gse_tm->n2_filling_valve_state = mavlink_msg_gse_tm_get_n2_filling_valve_state(msg); + gse_tm->n2_release_valve_state = mavlink_msg_gse_tm_get_n2_release_valve_state(msg); + gse_tm->n2_detach_state = mavlink_msg_gse_tm_get_n2_detach_state(msg); + gse_tm->n2_quenching_valve_state = mavlink_msg_gse_tm_get_n2_quenching_valve_state(msg); + gse_tm->n2_3way_valve_state = mavlink_msg_gse_tm_get_n2_3way_valve_state(msg); gse_tm->main_valve_state = mavlink_msg_gse_tm_get_main_valve_state(msg); gse_tm->nitrogen_valve_state = mavlink_msg_gse_tm_get_nitrogen_valve_state(msg); + gse_tm->ignition_state = mavlink_msg_gse_tm_get_ignition_state(msg); gse_tm->gmm_state = mavlink_msg_gse_tm_get_gmm_state(msg); gse_tm->tars_state = mavlink_msg_gse_tm_get_tars_state(msg); gse_tm->arming_state = mavlink_msg_gse_tm_get_arming_state(msg); diff --git a/mavlink_lib/orion/orion.h b/mavlink_lib/orion/orion.h index af0fda2cf590986301143f65bc136ff84f763483..0b550a6c060847e885197eea0af0a263318a58cd 100644 --- a/mavlink_lib/orion/orion.h +++ b/mavlink_lib/orion/orion.h @@ -11,7 +11,7 @@ #endif #undef MAVLINK_THIS_XML_HASH -#define MAVLINK_THIS_XML_HASH 8590756781382699195 +#define MAVLINK_THIS_XML_HASH 1806179654423543365 #ifdef __cplusplus extern "C" { @@ -20,11 +20,11 @@ extern "C" { // MESSAGE LENGTHS AND CRCS #ifndef MAVLINK_MESSAGE_LENGTHS -#define MAVLINK_MESSAGE_LENGTHS {0, 8, 1, 1, 1, 1, 5, 1, 1, 4, 4, 12, 16, 8, 2, 4, 8, 1, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 13, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 12, 12, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 4, 74, 64, 32, 60, 32, 32, 32, 32, 56, 22, 5, 19, 36, 36, 36, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 46, 28, 20, 44, 53, 77, 29, 178, 158, 180, 170, 64, 37, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} +#define MAVLINK_MESSAGE_LENGTHS {0, 8, 1, 1, 1, 1, 5, 1, 1, 4, 4, 12, 16, 8, 2, 4, 8, 1, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 13, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 12, 12, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 4, 74, 64, 32, 60, 32, 32, 32, 32, 56, 22, 5, 19, 36, 36, 36, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 46, 28, 20, 44, 53, 77, 29, 178, 158, 180, 170, 83, 37, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} #endif #ifndef MAVLINK_MESSAGE_CRCS -#define MAVLINK_MESSAGE_CRCS {0, 136, 198, 165, 248, 184, 215, 226, 160, 113, 38, 71, 168, 67, 218, 44, 81, 181, 199, 221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 22, 225, 79, 167, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 246, 173, 183, 220, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 251, 51, 57, 72, 87, 229, 245, 212, 140, 148, 6, 165, 87, 255, 103, 9, 68, 234, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 142, 108, 39, 19, 234, 66, 11, 235, 188, 195, 99, 87, 67, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} +#define MAVLINK_MESSAGE_CRCS {0, 136, 198, 165, 248, 184, 215, 226, 160, 113, 38, 71, 168, 67, 218, 44, 81, 181, 199, 221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 22, 163, 79, 167, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 246, 173, 183, 220, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 251, 51, 57, 72, 87, 229, 245, 212, 140, 148, 6, 165, 87, 255, 103, 9, 68, 234, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 142, 108, 39, 19, 234, 66, 11, 235, 188, 195, 99, 196, 67, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} #endif #include "../protocol.h" @@ -274,7 +274,7 @@ typedef enum PinsList #undef MAVLINK_THIS_XML_HASH -#define MAVLINK_THIS_XML_HASH 8590756781382699195 +#define MAVLINK_THIS_XML_HASH 1806179654423543365 #if MAVLINK_THIS_XML_HASH == MAVLINK_PRIMARY_XML_HASH # define MAVLINK_MESSAGE_INFO {{"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_PING_TC, MAVLINK_MESSAGE_INFO_COMMAND_TC, MAVLINK_MESSAGE_INFO_SYSTEM_TM_REQUEST_TC, MAVLINK_MESSAGE_INFO_SENSOR_TM_REQUEST_TC, MAVLINK_MESSAGE_INFO_SERVO_TM_REQUEST_TC, MAVLINK_MESSAGE_INFO_SET_SERVO_ANGLE_TC, MAVLINK_MESSAGE_INFO_RESET_SERVO_TC, MAVLINK_MESSAGE_INFO_WIGGLE_SERVO_TC, MAVLINK_MESSAGE_INFO_SET_REFERENCE_ALTITUDE_TC, MAVLINK_MESSAGE_INFO_SET_REFERENCE_TEMPERATURE_TC, MAVLINK_MESSAGE_INFO_SET_ORIENTATION_TC, MAVLINK_MESSAGE_INFO_SET_ORIENTATION_QUAT_TC, MAVLINK_MESSAGE_INFO_SET_COORDINATES_TC, MAVLINK_MESSAGE_INFO_RAW_EVENT_TC, MAVLINK_MESSAGE_INFO_SET_DEPLOYMENT_ALTITUDE_TC, MAVLINK_MESSAGE_INFO_SET_TARGET_COORDINATES_TC, MAVLINK_MESSAGE_INFO_SET_ALGORITHM_TC, MAVLINK_MESSAGE_INFO_SET_CALIBRATION_PRESSURE_TC, MAVLINK_MESSAGE_INFO_SET_INITIAL_MEA_MASS_TC, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_SET_ATOMIC_VALVE_TIMING_TC, MAVLINK_MESSAGE_INFO_SET_VALVE_MAXIMUM_APERTURE_TC, MAVLINK_MESSAGE_INFO_CONRIG_STATE_TC, MAVLINK_MESSAGE_INFO_SET_IGNITION_TIME_TC, MAVLINK_MESSAGE_INFO_SET_NITROGEN_TIME_TC, MAVLINK_MESSAGE_INFO_SET_COOLING_TIME_TC, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_SET_STEPPER_ANGLE_TC, MAVLINK_MESSAGE_INFO_SET_STEPPER_STEPS_TC, MAVLINK_MESSAGE_INFO_SET_STEPPER_MULTIPLIER_TC, MAVLINK_MESSAGE_INFO_SET_ANTENNA_COORDINATES_ARP_TC, MAVLINK_MESSAGE_INFO_SET_ROCKET_COORDINATES_ARP_TC, MAVLINK_MESSAGE_INFO_ARP_COMMAND_TC, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_ACK_TM, MAVLINK_MESSAGE_INFO_NACK_TM, MAVLINK_MESSAGE_INFO_WACK_TM, MAVLINK_MESSAGE_INFO_GPS_TM, MAVLINK_MESSAGE_INFO_IMU_TM, MAVLINK_MESSAGE_INFO_PRESSURE_TM, MAVLINK_MESSAGE_INFO_ADC_TM, MAVLINK_MESSAGE_INFO_VOLTAGE_TM, MAVLINK_MESSAGE_INFO_CURRENT_TM, MAVLINK_MESSAGE_INFO_TEMP_TM, MAVLINK_MESSAGE_INFO_LOAD_TM, MAVLINK_MESSAGE_INFO_ATTITUDE_TM, MAVLINK_MESSAGE_INFO_SENSOR_STATE_TM, MAVLINK_MESSAGE_INFO_SERVO_TM, MAVLINK_MESSAGE_INFO_PIN_TM, MAVLINK_MESSAGE_INFO_REFERENCE_TM, MAVLINK_MESSAGE_INFO_REGISTRY_FLOAT_TM, MAVLINK_MESSAGE_INFO_REGISTRY_INT_TM, MAVLINK_MESSAGE_INFO_REGISTRY_COORD_TM, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_ARP_TM, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, MAVLINK_MESSAGE_INFO_SYS_TM, MAVLINK_MESSAGE_INFO_LOGGER_TM, MAVLINK_MESSAGE_INFO_MAVLINK_STATS_TM, MAVLINK_MESSAGE_INFO_CAN_STATS_TM, MAVLINK_MESSAGE_INFO_TASK_STATS_TM, MAVLINK_MESSAGE_INFO_ADA_TM, MAVLINK_MESSAGE_INFO_NAS_TM, MAVLINK_MESSAGE_INFO_MEA_TM, MAVLINK_MESSAGE_INFO_ROCKET_FLIGHT_TM, MAVLINK_MESSAGE_INFO_PAYLOAD_FLIGHT_TM, MAVLINK_MESSAGE_INFO_ROCKET_STATS_TM, MAVLINK_MESSAGE_INFO_PAYLOAD_STATS_TM, MAVLINK_MESSAGE_INFO_GSE_TM, MAVLINK_MESSAGE_INFO_MOTOR_TM, MAVLINK_MESSAGE_INFO_CALIBRATION_TM, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}, {"EMPTY",0,{{"","",MAVLINK_TYPE_CHAR,0,0,0}}}} diff --git a/mavlink_lib/orion/testsuite.h b/mavlink_lib/orion/testsuite.h index 0d16e438d4769ea3aae686d3e85860623d729e54..ce19f91965fb7ea0adafa235ec74f7fea711860c 100644 --- a/mavlink_lib/orion/testsuite.h +++ b/mavlink_lib/orion/testsuite.h @@ -1291,7 +1291,6 @@ static void mavlink_test_conrig_state_tc(uint8_t system_id, uint8_t component_id }; mavlink_conrig_state_tc_t packet1, packet2; memset(&packet1, 0, sizeof(packet1)); - packet1.ignition_btn = packet_in.ignition_btn; packet1.n2o_filling_btn = packet_in.n2o_filling_btn; packet1.n2o_release_btn = packet_in.n2o_release_btn; packet1.n2o_detach_btn = packet_in.n2o_detach_btn; @@ -1303,6 +1302,7 @@ static void mavlink_test_conrig_state_tc(uint8_t system_id, uint8_t component_id packet1.n2_3way_btn = packet_in.n2_3way_btn; packet1.tars_btn = packet_in.tars_btn; packet1.nitrogen_btn = packet_in.nitrogen_btn; + packet1.ignition_btn = packet_in.ignition_btn; packet1.arm_switch = packet_in.arm_switch; @@ -1318,12 +1318,12 @@ static void mavlink_test_conrig_state_tc(uint8_t system_id, uint8_t component_id MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); memset(&packet2, 0, sizeof(packet2)); - mavlink_msg_conrig_state_tc_pack(system_id, component_id, &msg , packet1.ignition_btn , packet1.n2o_filling_btn , packet1.n2o_release_btn , packet1.n2o_detach_btn , packet1.n2o_venting_btn , packet1.n2_filling_btn , packet1.n2_release_btn , packet1.n2_detach_btn , packet1.n2_quenching_btn , packet1.n2_3way_btn , packet1.tars_btn , packet1.nitrogen_btn , packet1.arm_switch ); + mavlink_msg_conrig_state_tc_pack(system_id, component_id, &msg , packet1.n2o_filling_btn , packet1.n2o_release_btn , packet1.n2o_detach_btn , packet1.n2o_venting_btn , packet1.n2_filling_btn , packet1.n2_release_btn , packet1.n2_detach_btn , packet1.n2_quenching_btn , packet1.n2_3way_btn , packet1.tars_btn , packet1.nitrogen_btn , packet1.ignition_btn , packet1.arm_switch ); mavlink_msg_conrig_state_tc_decode(&msg, &packet2); MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); memset(&packet2, 0, sizeof(packet2)); - mavlink_msg_conrig_state_tc_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.ignition_btn , packet1.n2o_filling_btn , packet1.n2o_release_btn , packet1.n2o_detach_btn , packet1.n2o_venting_btn , packet1.n2_filling_btn , packet1.n2_release_btn , packet1.n2_detach_btn , packet1.n2_quenching_btn , packet1.n2_3way_btn , packet1.tars_btn , packet1.nitrogen_btn , packet1.arm_switch ); + mavlink_msg_conrig_state_tc_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.n2o_filling_btn , packet1.n2o_release_btn , packet1.n2o_detach_btn , packet1.n2o_venting_btn , packet1.n2_filling_btn , packet1.n2_release_btn , packet1.n2_detach_btn , packet1.n2_quenching_btn , packet1.n2_3way_btn , packet1.tars_btn , packet1.nitrogen_btn , packet1.ignition_btn , packet1.arm_switch ); mavlink_msg_conrig_state_tc_decode(&msg, &packet2); MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); @@ -1336,7 +1336,7 @@ static void mavlink_test_conrig_state_tc(uint8_t system_id, uint8_t component_id MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); memset(&packet2, 0, sizeof(packet2)); - mavlink_msg_conrig_state_tc_send(MAVLINK_COMM_1 , packet1.ignition_btn , packet1.n2o_filling_btn , packet1.n2o_release_btn , packet1.n2o_detach_btn , packet1.n2o_venting_btn , packet1.n2_filling_btn , packet1.n2_release_btn , packet1.n2_detach_btn , packet1.n2_quenching_btn , packet1.n2_3way_btn , packet1.tars_btn , packet1.nitrogen_btn , packet1.arm_switch ); + mavlink_msg_conrig_state_tc_send(MAVLINK_COMM_1 , packet1.n2o_filling_btn , packet1.n2o_release_btn , packet1.n2o_detach_btn , packet1.n2o_venting_btn , packet1.n2_filling_btn , packet1.n2_release_btn , packet1.n2_detach_btn , packet1.n2_quenching_btn , packet1.n2_3way_btn , packet1.tars_btn , packet1.nitrogen_btn , packet1.ignition_btn , packet1.arm_switch ); mavlink_msg_conrig_state_tc_decode(last_msg, &packet2); MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); @@ -4143,15 +4143,18 @@ static void mavlink_test_gse_tm(uint8_t system_id, uint8_t component_id, mavlink uint8_t buffer[MAVLINK_MAX_PACKET_LEN]; uint16_t i; mavlink_gse_tm_t packet_in = { - 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,963498920,241.0,269.0,297.0,963499752,19731,27,94,161,228,39,106,173,240,51,118,185,252,63,130 + 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,963499544,325.0,353.0,381.0,963500376,20355,63,130,197,8,75,142,209,20,87,154,221,32,99,166,233,44,111,178,245,56,123 }; mavlink_gse_tm_t packet1, packet2; memset(&packet1, 0, sizeof(packet1)); packet1.timestamp = packet_in.timestamp; - packet1.loadcell_rocket = packet_in.loadcell_rocket; - packet1.loadcell_vessel = packet_in.loadcell_vessel; - packet1.filling_pressure = packet_in.filling_pressure; - packet1.vessel_pressure = packet_in.vessel_pressure; + packet1.rocket_mass = packet_in.rocket_mass; + packet1.n2o_vessel_mass = packet_in.n2o_vessel_mass; + packet1.n2o_filling_pressure = packet_in.n2o_filling_pressure; + packet1.n2o_vessel_pressure = packet_in.n2o_vessel_pressure; + packet1.n2_filling_pressure = packet_in.n2_filling_pressure; + packet1.n2_vessel_1_pressure = packet_in.n2_vessel_1_pressure; + packet1.n2_vessel_2_pressure = packet_in.n2_vessel_2_pressure; packet1.cpu_load = packet_in.cpu_load; packet1.free_heap = packet_in.free_heap; packet1.battery_voltage = packet_in.battery_voltage; @@ -4159,11 +4162,18 @@ static void mavlink_test_gse_tm(uint8_t system_id, uint8_t component_id, mavlink packet1.umbilical_current_consumption = packet_in.umbilical_current_consumption; packet1.log_good = packet_in.log_good; packet1.log_number = packet_in.log_number; - packet1.filling_valve_state = packet_in.filling_valve_state; - packet1.venting_valve_state = packet_in.venting_valve_state; - packet1.release_valve_state = packet_in.release_valve_state; + packet1.n2o_filling_valve_state = packet_in.n2o_filling_valve_state; + packet1.n2o_release_valve_state = packet_in.n2o_release_valve_state; + packet1.n2o_detach_state = packet_in.n2o_detach_state; + packet1.n2o_venting_valve_state = packet_in.n2o_venting_valve_state; + packet1.n2_filling_valve_state = packet_in.n2_filling_valve_state; + packet1.n2_release_valve_state = packet_in.n2_release_valve_state; + packet1.n2_detach_state = packet_in.n2_detach_state; + packet1.n2_quenching_valve_state = packet_in.n2_quenching_valve_state; + packet1.n2_3way_valve_state = packet_in.n2_3way_valve_state; packet1.main_valve_state = packet_in.main_valve_state; packet1.nitrogen_valve_state = packet_in.nitrogen_valve_state; + packet1.ignition_state = packet_in.ignition_state; packet1.gmm_state = packet_in.gmm_state; packet1.tars_state = packet_in.tars_state; packet1.arming_state = packet_in.arming_state; @@ -4187,12 +4197,12 @@ static void mavlink_test_gse_tm(uint8_t system_id, uint8_t component_id, mavlink MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); memset(&packet2, 0, sizeof(packet2)); - mavlink_msg_gse_tm_pack(system_id, component_id, &msg , packet1.timestamp , packet1.loadcell_rocket , packet1.loadcell_vessel , packet1.filling_pressure , packet1.vessel_pressure , packet1.filling_valve_state , packet1.venting_valve_state , packet1.release_valve_state , packet1.main_valve_state , packet1.nitrogen_valve_state , packet1.gmm_state , packet1.tars_state , packet1.arming_state , packet1.cpu_load , packet1.free_heap , packet1.battery_voltage , packet1.current_consumption , packet1.umbilical_current_consumption , packet1.main_board_state , packet1.payload_board_state , packet1.motor_board_state , packet1.main_can_status , packet1.payload_can_status , packet1.motor_can_status , packet1.log_number , packet1.log_good ); + mavlink_msg_gse_tm_pack(system_id, component_id, &msg , packet1.timestamp , packet1.rocket_mass , packet1.n2o_vessel_mass , packet1.n2o_filling_pressure , packet1.n2o_vessel_pressure , packet1.n2_filling_pressure , packet1.n2_vessel_1_pressure , packet1.n2_vessel_2_pressure , packet1.n2o_filling_valve_state , packet1.n2o_release_valve_state , packet1.n2o_detach_state , packet1.n2o_venting_valve_state , packet1.n2_filling_valve_state , packet1.n2_release_valve_state , packet1.n2_detach_state , packet1.n2_quenching_valve_state , packet1.n2_3way_valve_state , packet1.main_valve_state , packet1.nitrogen_valve_state , packet1.ignition_state , packet1.gmm_state , packet1.tars_state , packet1.arming_state , packet1.cpu_load , packet1.free_heap , packet1.battery_voltage , packet1.current_consumption , packet1.umbilical_current_consumption , packet1.main_board_state , packet1.payload_board_state , packet1.motor_board_state , packet1.main_can_status , packet1.payload_can_status , packet1.motor_can_status , packet1.log_number , packet1.log_good ); mavlink_msg_gse_tm_decode(&msg, &packet2); MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); memset(&packet2, 0, sizeof(packet2)); - mavlink_msg_gse_tm_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.timestamp , packet1.loadcell_rocket , packet1.loadcell_vessel , packet1.filling_pressure , packet1.vessel_pressure , packet1.filling_valve_state , packet1.venting_valve_state , packet1.release_valve_state , packet1.main_valve_state , packet1.nitrogen_valve_state , packet1.gmm_state , packet1.tars_state , packet1.arming_state , packet1.cpu_load , packet1.free_heap , packet1.battery_voltage , packet1.current_consumption , packet1.umbilical_current_consumption , packet1.main_board_state , packet1.payload_board_state , packet1.motor_board_state , packet1.main_can_status , packet1.payload_can_status , packet1.motor_can_status , packet1.log_number , packet1.log_good ); + mavlink_msg_gse_tm_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.timestamp , packet1.rocket_mass , packet1.n2o_vessel_mass , packet1.n2o_filling_pressure , packet1.n2o_vessel_pressure , packet1.n2_filling_pressure , packet1.n2_vessel_1_pressure , packet1.n2_vessel_2_pressure , packet1.n2o_filling_valve_state , packet1.n2o_release_valve_state , packet1.n2o_detach_state , packet1.n2o_venting_valve_state , packet1.n2_filling_valve_state , packet1.n2_release_valve_state , packet1.n2_detach_state , packet1.n2_quenching_valve_state , packet1.n2_3way_valve_state , packet1.main_valve_state , packet1.nitrogen_valve_state , packet1.ignition_state , packet1.gmm_state , packet1.tars_state , packet1.arming_state , packet1.cpu_load , packet1.free_heap , packet1.battery_voltage , packet1.current_consumption , packet1.umbilical_current_consumption , packet1.main_board_state , packet1.payload_board_state , packet1.motor_board_state , packet1.main_can_status , packet1.payload_can_status , packet1.motor_can_status , packet1.log_number , packet1.log_good ); mavlink_msg_gse_tm_decode(&msg, &packet2); MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); @@ -4205,7 +4215,7 @@ static void mavlink_test_gse_tm(uint8_t system_id, uint8_t component_id, mavlink MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); memset(&packet2, 0, sizeof(packet2)); - mavlink_msg_gse_tm_send(MAVLINK_COMM_1 , packet1.timestamp , packet1.loadcell_rocket , packet1.loadcell_vessel , packet1.filling_pressure , packet1.vessel_pressure , packet1.filling_valve_state , packet1.venting_valve_state , packet1.release_valve_state , packet1.main_valve_state , packet1.nitrogen_valve_state , packet1.gmm_state , packet1.tars_state , packet1.arming_state , packet1.cpu_load , packet1.free_heap , packet1.battery_voltage , packet1.current_consumption , packet1.umbilical_current_consumption , packet1.main_board_state , packet1.payload_board_state , packet1.motor_board_state , packet1.main_can_status , packet1.payload_can_status , packet1.motor_can_status , packet1.log_number , packet1.log_good ); + mavlink_msg_gse_tm_send(MAVLINK_COMM_1 , packet1.timestamp , packet1.rocket_mass , packet1.n2o_vessel_mass , packet1.n2o_filling_pressure , packet1.n2o_vessel_pressure , packet1.n2_filling_pressure , packet1.n2_vessel_1_pressure , packet1.n2_vessel_2_pressure , packet1.n2o_filling_valve_state , packet1.n2o_release_valve_state , packet1.n2o_detach_state , packet1.n2o_venting_valve_state , packet1.n2_filling_valve_state , packet1.n2_release_valve_state , packet1.n2_detach_state , packet1.n2_quenching_valve_state , packet1.n2_3way_valve_state , packet1.main_valve_state , packet1.nitrogen_valve_state , packet1.ignition_state , packet1.gmm_state , packet1.tars_state , packet1.arming_state , packet1.cpu_load , packet1.free_heap , packet1.battery_voltage , packet1.current_consumption , packet1.umbilical_current_consumption , packet1.main_board_state , packet1.payload_board_state , packet1.motor_board_state , packet1.main_can_status , packet1.payload_can_status , packet1.motor_can_status , packet1.log_number , packet1.log_good ); mavlink_msg_gse_tm_decode(last_msg, &packet2); MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0); diff --git a/mavlink_lib/orion/version.h b/mavlink_lib/orion/version.h index b9d54b78690ea1226cd61c17b8a904e268a30f11..5392a7808f16b757ed3f847b80c72b0b5ddc4442 100644 --- a/mavlink_lib/orion/version.h +++ b/mavlink_lib/orion/version.h @@ -7,7 +7,7 @@ #ifndef MAVLINK_VERSION_H #define MAVLINK_VERSION_H -#define MAVLINK_BUILD_DATE "Fri Nov 22 2024" +#define MAVLINK_BUILD_DATE "Sat Nov 23 2024" #define MAVLINK_WIRE_PROTOCOL_VERSION "1.0" #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 180 diff --git a/message_definitions/orion.xml b/message_definitions/orion.xml index fa64e0f16dbc29b4f0c1f589b1849d50af06d659..702b55726da69f7e2aab528e2ec07fcfbdb76d8e 100644 --- a/message_definitions/orion.xml +++ b/message_definitions/orion.xml @@ -927,26 +927,36 @@ <message id="212" name="GSE_TM"> <description>Ground Segment Equipment telemetry</description> <field name="timestamp" type="uint64_t" units="us">Timestamp in microseconds</field> - <field name="loadcell_rocket" type="float" units="kg">Rocket weight</field> - <field name="loadcell_vessel" type="float" units="kg">External tank weight</field> - <field name="filling_pressure" type="float" units="Bar">Refueling line pressure</field> - <field name="vessel_pressure" type="float" units="Bar">Vessel tank pressure</field> - <field name="filling_valve_state" type="uint8_t">1 If the filling valve is open</field> - <field name="venting_valve_state" type="uint8_t">1 If the venting valve is open</field> - <field name="release_valve_state" type="uint8_t">1 If the release valve is open</field> - <field name="main_valve_state" type="uint8_t">1 If the main valve is open</field> - <field name="nitrogen_valve_state" type="uint8_t"> 1 If the nitrogen valve is open</field> + <field name="rocket_mass" type="float" units="kg">Rocket mass loadcell measurement</field> + <field name="n2o_vessel_mass" type="float" units="kg">N2O vessel tank mass loadcell measurement</field> + <field name="n2o_filling_pressure" type="float" units="Bar">N2O refueling line pressure</field> + <field name="n2o_vessel_pressure" type="float" units="Bar">N2O vessel tank pressure</field> + <field name="n2_filling_pressure" type="float" units="Bar">N2 refueling line pressure</field> + <field name="n2_vessel_1_pressure" type="float" units="Bar">N2 vessel 1 tank pressure</field> + <field name="n2_vessel_2_pressure" type="float" units="Bar">N2 vessel 2 tank pressure</field> + <field name="n2o_filling_valve_state" type="uint8_t">N2O filling valve state (1: open, 0: close)</field> + <field name="n2o_release_valve_state" type="uint8_t">N2O release line pressure valve state (1: open, 0: close)</field> + <field name="n2o_detach_state" type="uint8_t">N2O quick connector detach state (1: open, 0: close)</field> + <field name="n2o_venting_valve_state" type="uint8_t">N2O venting valve state (1: open, 0: close)</field> + <field name="n2_filling_valve_state" type="uint8_t">N2 filling valve state (1: open, 0: close)</field> + <field name="n2_release_valve_state" type="uint8_t">N2 release line pressure valve state (1: open, 0: close)</field> + <field name="n2_detach_state" type="uint8_t">N2 quick connector detach state (1: open, 0: close)</field> + <field name="n2_quenching_valve_state" type="uint8_t">N2 quenching valve state (1: open, 0: close)</field> + <field name="n2_3way_valve_state" type="uint8_t">N2 3-way valve state (1: open, 0: close)</field> + <field name="main_valve_state" type="uint8_t">Rocket main N2O valve state (1: open, 0: close)</field> + <field name="nitrogen_valve_state" type="uint8_t">Rocket main N2 valve state (1: open, 0: close)</field> + <field name="ignition_state" type="uint8_t">Ignition relay logical state (1: enabled, 0: disabled)</field> <field name="gmm_state" type="uint8_t">State of the GroundModeManager</field> - <field name="tars_state" type="uint8_t">State of Tars</field> - <field name="arming_state" type="uint8_t">Arming state (1 if armed, 0 otherwise)</field> + <field name="tars_state" type="uint8_t">State of TARS</field> + <field name="arming_state" type="uint8_t">Arming state (1: armed, 0: otherwise)</field> <field name="cpu_load" type="float">CPU load in percentage</field> - <field name="free_heap" type="uint32_t">Amount of available heap in memory</field> + <field name="free_heap" type="uint32_t">Amount of available heap memory</field> <field name="battery_voltage" type="float">Battery voltage</field> <field name="current_consumption" type="float" units="A">RIG current</field> <field name="umbilical_current_consumption" type="float" units="A">Umbilical current</field> - <field name="main_board_state" type="uint8_t">Main board fmm state</field> - <field name="payload_board_state" type="uint8_t">Payload board fmm state</field> - <field name="motor_board_state" type="uint8_t">Motor board fmm state</field> + <field name="main_board_state" type="uint8_t">Main board FMM state</field> + <field name="payload_board_state" type="uint8_t">Payload board FMM state</field> + <field name="motor_board_state" type="uint8_t">Motor board FMM state</field> <field name="main_can_status" type="uint8_t">Main CAN status</field> <field name="payload_can_status" type="uint8_t">Payload CAN status</field> <field name="motor_can_status" type="uint8_t">Motor CAN status</field>