@@ -289,7 +289,7 @@ void Auav::endDma(void)
289289 spiState_ = STATUS_IDLE;
290290 if (p.header .status ==sensor_status_ready_[AUAV_PITOT]) // PTT uncomment if needed
291291 {
292- p.read_complete = time64.Us ();
292+ p.header . complete = time64.Us ();
293293 write2 ((uint8_t *) &p, sizeof (p), AUAV_PITOT);
294294 }
295295 } else if (spiState_ == STATUS_BARO_READ) { // Done starting Baro
@@ -299,7 +299,7 @@ void Auav::endDma(void)
299299 spiState_ = STATUS_IDLE;
300300 if (p.header .status ==sensor_status_ready_[AUAV_BARO]) // PTT uncomment this when we fix the sensor.
301301 {
302- p.read_complete = time64.Us ();
302+ p.header . complete = time64.Us ();
303303 write2 ((uint8_t *) &p, sizeof (p), AUAV_BARO);
304304 }
305305 } else {
@@ -395,7 +395,7 @@ bool Auav::display(void)
395395 PressurePacket p;
396396
397397 if (read2 ((uint8_t *) &p, sizeof (p), AUAV_BARO)) {
398- misc_header (name_local_[AUAV_BARO], p.header . timestamp , p. read_complete );
398+ misc_header (name_local_[AUAV_BARO], p.header );
399399
400400 misc_f32 (99 , 101 , p.pressure / 1000 ., " Press" , " %6.2f" , " kPa" );
401401 misc_f32 (18 , 50 , p.temperature - 273.15 , " Temp" , " %5.1f" , " C" );
@@ -407,7 +407,7 @@ bool Auav::display(void)
407407 }
408408
409409 if (read2 ((uint8_t *) &p, sizeof (p), AUAV_PITOT)) {
410- misc_header (name_local_[AUAV_PITOT], p.header . timestamp , p. read_complete );
410+ misc_header (name_local_[AUAV_PITOT], p.header );
411411 misc_f32 (-5.0 , 5.0 , p.pressure , " Press" , " %6.2f" , " Pa" );
412412 misc_f32 (18 , 50 , p.temperature - 273.15 , " Temp" , " %5.1f" , " C" );
413413 misc_x16 (sensorOk (AUAV_PITOT), p.header .status , " Status" );
0 commit comments