+
+ next.state = state;
+ if (type == packet_type_TM_sensor)
+ next.accel = accel;
+ else
+ next.accel = AltosRecord.MISSING;
+ next.pres = pres;
+ next.temp = temp;
+ next.batt = v_batt;
+ if (type == packet_type_TM_sensor || type == packet_type_Tm_sensor) {
+ next.drogue = sense_d;
+ next.main = sense_m;
+ } else {
+ next.drogue = AltosRecord.MISSING;
+ next.main = AltosRecord.MISSING;
+ }
+
+ next.acceleration = acceleration / 16.0;
+ next.speed = speed / 16.0;
+ next.height = height;
+
+ next.ground_pres = ground_pres;
+ if (type == packet_type_TM_sensor) {
+ next.ground_accel = ground_accel;
+ next.accel_plus_g = accel_plus_g;
+ next.accel_minus_g = accel_minus_g;
+ } else {
+ next.ground_accel = AltosRecord.MISSING;
+ next.accel_plus_g = AltosRecord.MISSING;
+ next.accel_minus_g = AltosRecord.MISSING;
+ }
+
+ next.rssi = rssi;
+
+ next.seen |= AltosRecord.seen_sensor | AltosRecord.seen_temp_volt;
+