Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ATL timetable information system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bennet Bleßmann
ATL timetable information system
Commits
5ecf1844
Unverified
Commit
5ecf1844
authored
2 years ago
by
Skgland
Browse files
Options
Downloads
Patches
Plain Diff
use approach in plattform_exit_trigger
parent
5bac1181
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
env_setup-fahrplan.lua
+16
-5
16 additions, 5 deletions
env_setup-fahrplan.lua
with
16 additions
and
5 deletions
env_setup-fahrplan.lua
+
16
−
5
View file @
5ecf1844
...
...
@@ -163,9 +163,6 @@ S.callbacks = {
-- deactivate everything?
S
.
deactivated
=
false
-- enable approach callback mode in both directions
__approach_callback_mode
=
2
-- debugging stuff
S
.
debug_train_id
=
"259435"
S
.
check_line_data
=
{}
...
...
@@ -325,6 +322,7 @@ F.platform_exit_trigger = function(station, platform, event, atc_arrow, get_line
if
S
.
deactivated
then
return
end
__approach_callback_mode
=
2
if
event
.
train
then
local
line
=
get_line
()
if
line
~=
nil
then
...
...
@@ -335,6 +333,11 @@ F.platform_exit_trigger = function(station, platform, event, atc_arrow, get_line
F
.
enter_platform
(
station
,
platform
,
line
,
true
)
end
end
elseif
event
.
approach
and
not
atc_arrow
then
local
line
=
get_line
()
if
line
~=
nil
then
F
.
approach_station
(
station
,
entry
,
line
,
true
)
end
end
end
...
...
@@ -450,6 +453,16 @@ F.enter_platform = function(station, platform, line, announce_changes)
end
end
F
.
approach_platform
=
function
(
station
,
platform
,
line
,
announce_changes
)
if
S
.
deactivated
then
return
end
if
event
.
id
~=
S
.
debug_train_id
then
return
enter_platform
(
station
,
platform
,
line
,
announce_changes
)
end
end
-- When a train leaves the platform
F
.
exit_platform
=
function
(
station
,
platform
,
line
,
announce_changes
)
if
S
.
deactivated
then
...
...
@@ -723,7 +736,6 @@ F.util.multidisplay_print = function(displayarray,text,line_break,screen_width,s
local
screen_height
=
screen_height
or
2
local
line_break
=
line_break
or
" | "
local
multi_screen_width
=
#
displayarray
[
1
]
*
(
screen_width
)
local
multi_screen_lines
=
{}
...
...
@@ -743,7 +755,6 @@ F.util.multidisplay_print = function(displayarray,text,line_break,screen_width,s
print
(
F
.
util
.
pretty
(
multi_screen_lines
))
end
local
display_line
=
1
local
lcd_strings
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment