When I try to compile oXs with the alt-temp-compensation the compiler stops with this error message: exit status 1
'alt_temp_compensation' was not declared in this scope.
My arduino version is 1.8.1 and oXs 8.0.6
Dirk
I cant compile oXs with "ALT_TEMP_COMPENSATION"
Moderator: rainer
Re: I cant compile oXs with "ALT_TEMP_COMPENSATION"
I presume you are using a BMP280 baro sensor.
In fact the parameter defined by the line "#define ALT_TEMP_COMPENSATION 800" can only be used for a MS5611 sensor.
I will change the code to avoid this compilation error in the future.
In the mean time, please keep this line as comment in your config file.
If you are using a MS5611 and still get this compilation error, let me know, I will check futhermore.
In fact the parameter defined by the line "#define ALT_TEMP_COMPENSATION 800" can only be used for a MS5611 sensor.
I will change the code to avoid this compilation error in the future.
In the mean time, please keep this line as comment in your config file.
If you are using a MS5611 and still get this compilation error, let me know, I will check futhermore.
Re: I cant compile oXs with "ALT_TEMP_COMPENSATION"
I use the MS5611 and this is my config:
Is there another place where I can set the sensor type?
Dirk
Code: Select all
// ***** 4.1 - Connecting 1 or 2 barometric sensor(s) *****
#define VARIO // set as comment if there is no vario
//#define SENSOR_IS_BMP180 // set as comment if first baro sensor is a BMP180 or BMP085 (instead of a MS5611)
//#define SENSOR_IS_BMP280 // set as comment if first baro sensor is a BMP280 (instead of a MS5611)
//#define VARIO2 // set as comment if there is no second vario
Dirk
Re: I cant compile oXs with "ALT_TEMP_COMPENSATION"
Ok, I see:
There is currently a bug. Even if it is a MS5611, it tries to compile the file for the BMP280 and the error occurs in this file.
To avoid the compilation error, please make a small change in file oXs_BMP280.cpp.
At line 51 there is currently
#ifdef ALT_TEMP_COMPENSATION
alt_temp_compensation = ALT_TEMP_COMPENSATION ;
#endif
Please put those 3 lines as comment (adding // in front of each line) : so it should become
//#ifdef ALT_TEMP_COMPENSATION
// alt_temp_compensation = ALT_TEMP_COMPENSATION ;
//#endif
I will fix it in a new version
There is currently a bug. Even if it is a MS5611, it tries to compile the file for the BMP280 and the error occurs in this file.
To avoid the compilation error, please make a small change in file oXs_BMP280.cpp.
At line 51 there is currently
#ifdef ALT_TEMP_COMPENSATION
alt_temp_compensation = ALT_TEMP_COMPENSATION ;
#endif
Please put those 3 lines as comment (adding // in front of each line) : so it should become
//#ifdef ALT_TEMP_COMPENSATION
// alt_temp_compensation = ALT_TEMP_COMPENSATION ;
//#endif
I will fix it in a new version
Re: I cant compile oXs with "ALT_TEMP_COMPENSATION"
Yes it works Thanks for the quick help.
Dirk
Dirk