Skip to content

Commit 2456609

Browse files
committed
Merge pull request #98 from diydrones/Issue97-v3.3-PM-Lines-fail-resilience-check
Issue97- v3.3 PM lines fail the resilience checks
2 parents 8d6a17a + 6c81ca8 commit 2456609

File tree

7 files changed

+56
-28
lines changed

7 files changed

+56
-28
lines changed

AMP Log Analiser x1.v12.suo

-9.5 KB
Binary file not shown.

AMP Log Analiser x1/AMP Log Analiser x1.vbproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
<Compile Include="Classes\modOther_Functions.vb" />
160160
<Compile Include="Classes\modPARAM_Checks.vb" />
161161
<Compile Include="Classes\modPM_Checks_v3_1.vb" />
162+
<Compile Include="Classes\modPM_Checks_v3_3.vb" />
162163
<Compile Include="Classes\modPM_Checks_v3_2.vb" />
163164
<Compile Include="Classes\modPM_MainAnalysis.vb" />
164165
<Compile Include="Classes\modTakeOffEvent.vb" />

AMP Log Analiser x1/Classes/modMainReadFile.vb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,10 @@ Module modMainReadFile
195195
If DataArray(0) = "PM" Then
196196
If ReadFileVersion = 3.1 Then
197197
Call PM_Checks_v3_1()
198-
Else
198+
ElseIf ReadFileVersion = 3.2 Then
199199
Call PM_Checks_v3_2()
200+
Else
201+
Call PM_Checks_v3_3()
200202
End If
201203
End If
202204
End If
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Module modPM_Checks_v3_3
2+
Public Sub PM_Checks_v3_3()
3+
4+
'This part only check the correct data structure of the data line
5+
'and prepares the variables ready for the MainAnalysis which
6+
'is called directly after by this code.
7+
8+
' THIS CODE MUST ONLY BE CALLED AFTER THE DATA LINE HAS BEEN VALIDATED AS THE CORRECT TYPE !!!
9+
10+
If ReadFileResilienceCheck(6) = True Then
11+
'v3.2 - FMT, 6, 17, PM, HHIhBHB, NLon, NLoop, MaxT, Pmt, I2CErr, INSErr, INAVErr
12+
'v3.3 - FMT, 6, 16, PM, HHIhBH, NLon, NLoop, MaxT, PMT, I2CErr, INSErr
13+
Log_PM_RenCnt = 0
14+
Log_PM_RenBlw = 0
15+
Log_PM_NLon = Val(DataArray(1))
16+
Log_PM_NLoop = Val(DataArray(2))
17+
Log_PM_MaxT = Val(DataArray(3))
18+
Log_PM_PMT = Val(DataArray(4))
19+
Log_PM_I2CErr = Val(DataArray(5))
20+
Log_PM_INSErr = Val(DataArray(6))
21+
'Debug.Print("Processing:- " & Str(DataLine) & ": " & Data)
22+
PM_Delay_Counter = PM_Delay_Counter + 1
23+
Call PM_MainAnalysis()
24+
End If
25+
26+
End Sub
27+
End Module

AMP Log Analiser x1/Forms/Form1.Designer.vb

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AMP Log Analiser x1/Forms/Form1.resx

Lines changed: 25 additions & 25 deletions
Large diffs are not rendered by default.
Binary file not shown.

0 commit comments

Comments
 (0)