https://github.com/Lora-net/SWSD003/blob/5cf9794ea62edd092025ea437353db820df6c796/lr11xx/lr11xx_driver/src/lr11xx_gnss.c#L1037C48-L1037C101
I contact you to report a concern about a formula used in the LR1110 driver to calculate the power consumption.
In the file lr11xx_driver/src/lr11xx_gnss.c
In the function : lr11xx_gnss_compute_power_consumption()
At the end you convert the consumption from nAs to µAh using the formula below:
power_consumption_uah_tmp = ( ( e_init + e_tot_gps + e_tot_beidou + e_demod ) * 1000 ) /
( 3600.0 - ( ( float ) cumulative_timing->total / 32768.0 ) );
My concern is about the subtraction of ( cumulative_timing->total ).
The formula should be: power_consumption_uah_tmp = ( ( e_init + e_tot_gps + e_tot_beidou + e_demod ) * 1000 ) / 3600.0 );
Is there any reason you do the subtraction of the computation and radio timing?
https://github.com/Lora-net/SWSD003/blob/5cf9794ea62edd092025ea437353db820df6c796/lr11xx/lr11xx_driver/src/lr11xx_gnss.c#L1037C48-L1037C101
I contact you to report a concern about a formula used in the LR1110 driver to calculate the power consumption.
In the file lr11xx_driver/src/lr11xx_gnss.c
In the function : lr11xx_gnss_compute_power_consumption()
At the end you convert the consumption from nAs to µAh using the formula below:
power_consumption_uah_tmp = ( ( e_init + e_tot_gps + e_tot_beidou + e_demod ) * 1000 ) /
( 3600.0 - ( ( float ) cumulative_timing->total / 32768.0 ) );
My concern is about the subtraction of ( cumulative_timing->total ).
The formula should be: power_consumption_uah_tmp = ( ( e_init + e_tot_gps + e_tot_beidou + e_demod ) * 1000 ) / 3600.0 );
Is there any reason you do the subtraction of the computation and radio timing?