ctrlaltf2 / trains

Systems Engineering Final Project - Light Rail System Simulator & Controllers
MIT License
1 stars 0 forks source link

Track model iteration4 #40

Closed cag185 closed 2 years ago

cag185 commented 2 years ago

Added in message directly to train controller for the transit light status. Keegans code should be working, he will need to change his setState({authority: payload.Authority}) to this.state.authority = payload.Authortity; inside of his subscribe message function. Also note for accessing signals sent from the track model:

Signal type will be 'trackModelStatus'

look at the TrackModel.jsx file for specific attributes being sent in sendMessages() function (control f). ~names will be easy to mess up, reference my code in TrackModel.jsx so not to get it messed up

Access an attribute with payload.AttributeName like any object

cwh35 commented 2 years ago

I don't think i need transit light status so maybe remove that before you merge

cag185 commented 2 years ago

I don't think i need transit light status so maybe remove that before you merge

Didn't you just ask for this a few minutes ago?