Skip to content

Commit

Permalink
new version: sensor-20.0910-00.bin; Changes: fix for zero IAS transmi…
Browse files Browse the repository at this point in the history
…tted to XCSoar, introduced in last release
  • Loading branch information
iltis42 committed Sep 9, 2020
1 parent 3942b0b commit 97a1cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file added images/sensor-20.0910-00.bin
Binary file not shown.
3 changes: 2 additions & 1 deletion main/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ void readBMP(void *pvParameters){
TickType_t xLastWakeTime = xTaskGetTickCount();
xSemaphoreTake(xMutex,portMAX_DELAY );
TE = bmpVario.readTE( tas ); // 10x per second
float iasraw = (MP5004DP.pascal2km( MP5004DP.readPascal(30) ));
dynamicP = MP5004DP.readPascal(30);
float iasraw = ( MP5004DP.pascal2km( dynamicP ) );
float tasraw = iasraw * sqrt( 1.225 / ( baroP*100.0 / (287.058 * (273.15+temperature) ) ) ); // True airspeed
ias = ias + (iasraw - ias)*0.25; // low pass filter
tas += (tasraw-tas)*0.25; // low pass filter
Expand Down

0 comments on commit 97a1cc6

Please sign in to comment.