Skip to content

Commit

Permalink
Merge pull request #158 from asmithie13/Abby_Branch
Browse files Browse the repository at this point in the history
Speed and Authority from CTC through to Train Model
  • Loading branch information
21AQN01 authored Mar 28, 2024
2 parents 0814692 + 075b2f3 commit e597a4d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ Train_Controller_SW/__pycache__/Power.cpython-312.pyc
Train_Controller_SW/__pycache__/Speed.cpython-312.pyc
Train_Controller_SW/__pycache__/TrainController.cpython-312.
Wayside_SW/__pycache__/WaysideSWandTB.cpython-312.pyc
__pycache__/Main_UI.cpython-312.pyc
Train_Model/__pycache__/app_trainmodel_ui.cpython-312.pyc
2 changes: 1 addition & 1 deletion Main_UI.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def create_new_train(self, TrainID):
self.currentTrains[-1].show()

#Eventually let track model know train has started

self.TrackModelWindow.sendSpeedAuth.connect(self.currentTrains[-1].receiveSpeedAuth_tm)

#Connect Signals to Track Model
#self.currentTrains[-1].sendSignalToTrack.(self.TrackModelWindow.recieveSignalFromTrain)
Expand Down
7 changes: 4 additions & 3 deletions Train_Model/app_trainmodel_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ def receiveSpeedAuth_tm(self,speedAuth):
trainID=speedAuth[0]
Comm_Speed=speedAuth[1]
Authority=speedAuth[2]
self.sendSpeedAuth.emit(speedAuth)
self.send_com_speed_tb.emit(str(Comm_Speed))
self.send_authority_tb.emit(str(Authority))
print(speedAuth)
#self.sendSpeedAuth.emit(speedAuth)
#self.send_com_speed_tb.emit(str(Comm_Speed))
#self.send_authority_tb.emit(str(Authority))


def estop_button_clicked(self):
Expand Down

0 comments on commit e597a4d

Please sign in to comment.