Skip to content

Commit 2dce38d

Browse files
committed
alarme XY saint-sandoux
1 parent 561b3e8 commit 2dce38d

8 files changed

+142
-132
lines changed

BertheVarioPlatformIO/src/BertheVario.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
/// \brief Fichier principal du projet GNU-Vario de Berthe
55
///
66
/// \date creation : 02/03/2024
7-
/// \date modification : 13/03/2025
7+
/// \date modification : 15/03/2025
88
///
99

10-
char NumVer[] = "20250313a" ;
10+
char NumVer[] = "20250315a" ;
1111

1212
// uncomment next line to use HSPI for EPD (and e.g VSPI for SD), e.g. with Waveshare ESP32 Driver Board
1313
//#define USE_HSPI_FOR_EPD

BertheVarioPlatformIO/src/BertheVario.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/// \brief Include global du projet
55
///
66
/// \date creation : 03/03/2024
7-
/// \date modification : 03/03/2025
7+
/// \date modification : 15/03/2025
88
///
99

1010
//////////////////

BertheVarioPlatformIO/src/ZonesAeriennes/CZonesAerAll.cpp

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/// \brief
55
///
66
/// \date creation : 23/03/2024
7-
/// \date modification : 01/03/2025
7+
/// \date modification : 15/03/2025
88
///
99

1010
#include "../BertheVario.h"
@@ -1025,13 +1025,20 @@ for ( int iz = 0 ; iz < m_NbZones; iz++ )
10251025
if ( !DansLeRayonProche )
10261026
continue ;
10271027

1028-
// prise en compte de l'altitude
1028+
// prise en compte de l'altitude de la zone proche
10291029
bool IsNearFrontAlti = false ;
10301030
if ( pZoneXY->IsProtect() )
1031+
// zone proche protege
10311032
IsNearFrontAlti = g_GlobalVar.m_TerrainPosCur.m_AltiBaro <= (PlafondZoneProtegee+g_GlobalVar.m_Config.m_AltiMargin) ;
1032-
//continue ;
10331033
else
1034+
{
1035+
// zone proche generique
10341036
IsNearFrontAlti = g_GlobalVar.m_TerrainPosCur.m_AltiBaro >= (pZoneXY->GetAltiBasse()-g_GlobalVar.m_Config.m_AltiMargin) ;
1037+
// si saint sandoux proche CTR Corent alors prise en compte hauteur sol
1038+
if ( pZoneXY->GetTypeZone() == CZoneAer::ZoneCorent )
1039+
// altitude majoree marge alti > altitude sol plus 300m
1040+
IsNearFrontAlti &= (g_GlobalVar.m_TerrainPosCur.m_AltiBaro+g_GlobalVar.m_Config.m_AltiMargin) > (g_GlobalVar.m_AltitudeSolHgt + pZoneXY->GetAltiSolZone()) ;
1041+
}
10351042

10361043
// si a l'altitude de croisement
10371044
if ( IsNearFrontAlti )

Codeblocks/BertheVarioCdb.layout

+126-126
Large diffs are not rendered by default.

doc/DocUtilisateurBertheVario.odt

63 Bytes
Binary file not shown.
Binary file not shown.

version.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
le 20250315a :
2+
- prise en compte de la hauteur sol pour pre-alarme frontiere XY à Saint-Sandoux.
3+
14
le 20250313a :
25
- emmission message xc_track determiné uniquement par #define XC_TRACK
36
- son vario toujours determiné par [xc_track] == 0

0 commit comments

Comments
 (0)