wb9coy / RS41cam

Radiosonde RS41 camera
GNU General Public License v2.0
8 stars 1 forks source link

Humidity variable error during build #3

Open dalewegner opened 8 months ago

dalewegner commented 8 months ago

Changed config.h callsign and frequency to fit local band plan and got this error during build.

arm-none-eabi-gcc "../Core/src/main.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F100xB -c -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/src/main.d" -MT"Core/src/main.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Core/src/main.o" ../Core/src/humidity.c: In function 'processHumidity': ../Core/src/humidity.c:29:33: error: 'HUMREFFREQ' undeclared (first use in this function) 29 | humidity = (frequency - HUMREFFREQ)/HUMDIVISION; | ^~~~~~ ../Core/src/humidity.c:29:33: note: each undeclared identifier is reported only once for each function it appears in ../Core/src/humidity.c:29:45: error: 'HUMDIVISION' undeclared (first use in this function) arm-none-eabi-gcc "../Core/src/pressure.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F100xB -c -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/src/pressure.d" -MT"Core/src/pressure.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Core/src/pressure.o" 29 | humidity = (frequency - HUMREFFREQ)/HUMDIVISION; | ^~~ arm-none-eabi-gcc "../Core/src/radio.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F100xB -c -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/src/radio.d" -MT"Core/src/radio.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Core/src/radio.o" arm-none-eabi-gcc "../Core/src/rs.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F100xB -c -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/src/rs.d" -MT"Core/src/rs.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "Core/src/rs.o" make: [Core/src/subdir.mk:94: Core/src/humidity.o] Error 1 make: Waiting for unfinished jobs.... "make -j8 all" terminated with exit code 2. Build might be incomplete.

08:12:22 Build Failed. 4 errors, 0 warnings. (took 8s.292ms)

dalewegner commented 8 months ago

Uncommented these lines in \payload\core\inc\config.h file and build was clean with no errors.

define HUMREFFREQ 43475.0f

define HUMDIVISION 6.76f

wb9coy commented 8 months ago

These lines should remain commented out. The stock humidity sensors are all damaged on impact so we do not even try and use them. What is the compile error ?

define HUMREFFREQ 43475.0f

define HUMDIVISION 6.76


From: dalewegner @.> Sent: Friday, March 29, 2024 6:06 AM To: wb9coy/RS41cam @.> Cc: Subscribed @.***> Subject: Re: [wb9coy/RS41cam] Humidity variable error during build (Issue #3)

Uncommented these lines in \payload\core\inc\config.h file and build was clean with no errors.

define HUMREFFREQ 43475.0f

define HUMDIVISION 6.76f

— Reply to this email directly, view it on GitHubhttps://github.com/wb9coy/RS41cam/issues/3#issuecomment-2027224543, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABOSFFVYN5TFSAWC4FUAJC3Y2VRORAVCNFSM6AAAAABFOLQPR2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGIZDINJUGM. You are receiving this because you are subscribed to this thread.Message ID: @.***>

dalewegner commented 8 months ago

Hi Gene,

80% of the radiosondes I recover have working humidity sensors. They are often fresh landings. If it is in a tree or brush, the sensor does get broken.

Here are the 4 errors in the error tab window. Description Resource Path Location Type 'HUMDIVISION' undeclared (first use in this function) humidity.c /RS41Cam/Core/src line 29 C/C++ Problem 'HUMREFFREQ' undeclared (first use in this function) humidity.c /RS41Cam/Core/src line 29 C/C++ Problem make: [Core/src/subdir.mk:94: Core/src/humidity.o] Error 1 RS41Cam C/C++ Problem make: Waiting for unfinished jobs.... RS41Cam C/C++ Problem