Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions error_sdr/error_sdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ typedef enum _ERROR_CODE
ERROR_LORA_CMD_ERROR , /* Error with LoRa command */
ERROR_IMU_I2C_ERROR , /* Error with IMU I2C handle */
ERROR_BARO_I2C_ERROR , /* Error with Baro I2C handle */
ERROR_BARO_INVALID_STATE_ERROR , /* Invalid state reached with baro FSM */
} ERROR_CODE;

/* Error callback table entry */
Expand Down
6 changes: 3 additions & 3 deletions sensor/sensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ sensor_data_ptr->gps_rmc_status = gps_data.rmc_status;
imu_status = get_imu_it( &imu_raw );

/* Baro Read */
baro_status = get_baro_it( &(sensor_data_ptr->baro_pressure), &(sensor_data_ptr->baro_temp) );
baro_status = baro_get_IT( &(sensor_data_ptr->baro_pressure), &(sensor_data_ptr->baro_temp) );

/*Compute State Estimations*/

Expand Down Expand Up @@ -588,7 +588,7 @@ if( start_imu_read_IT() != IMU_OK )
{
return SENSOR_IMU_FAIL;
}
if( start_baro_read_IT() != BARO_OK )
if( baro_start_read_IT() != BARO_OK )
{
return SENSOR_BARO_ERROR;
}
Expand Down Expand Up @@ -794,4 +794,4 @@ imu_data->imu_converted.mag_z = mag_z;

/*******************************************************************************
* END OF FILE *
*******************************************************************************/
*******************************************************************************/