Giter VIP home page Giter VIP logo

trains's Introduction

J.A.M.E.S

The J.A.M.E.S. system is a train system designed for the University of Pittsburgh ECE1140 course. It is a system that controls the dispatching of trains, the movement of trains, and the control of the track. It is split into five main modules: the Centralized Traffic Controller (CTC), the Wayside Controller, the Track Model, the Train Model, and the Train Controller. The CTC is the main dispatcher of the system, the Wayside Controller controls the track, the Track Model represents the track, the Train Model represents the train, and the Train Controller is the software that controls the train.

Installation

The installation guide is available here: Installation Guide

User Guide

The user guide is available here: User Guide

trains's People

Contributors

map588 avatar ninjamike1211 avatar blackflag34 avatar jhd36 avatar ramentech avatar mav141 avatar mel204 avatar cbschiffer avatar deepsource-autofix[bot] avatar deepsource-io[bot] avatar destroyergun16 avatar

Watchers

Joseph Profeta avatar  avatar

trains's Issues

Function to drive train when path clear broken

// This function determines whether the train should continue given
// whether the track ahead is clear
public static boolean Defect_2(boolean isTrackAheadClear) {
if(isTrackAheadClear) {
return false;
}
else {
return true;
}
}

This function is supposed to return true only when the track is clear, however it currently does the opposite.

Wayside red line error with dispatch

We found the issue with red line yard exiting with the wrong switch position, however a decision needs to be made about either switching the yards alt and main switch position names in the CSV or in the PLC code. There may be edge cases with gridlock on sections F,G, and H.

Doors not opening when train stops at station

When a train stops at a station, the doors do not open. Or to be more precise the train controller and train model interface do not show either doors as open when the train is stopped at a station.

Train Model E-Brake in GUI doesn't match actual e-brake value

In some scenarios after the E-brake on a train is enabled and then disabled, the Train Model GUI will continue to show the E-Brake as enabled, despite it not being on (train is not slowing down), and Train Controller GUI not showing E-Brake as enabled

CTC GUI fails to Load

Upon running the system and selecting CTC from the main menu, the CTC GUI fails to load

Load function returns opposite case

// Returns whether the given load is within the maximum load of the train
public static boolean Defect_3(float load) {
if(maxLoad <= load) {
return true;
}
else {
return false;
}
}

This function is intended to return true when the load of the train is less than or equal to the maximum load of the train, however it currently does not do that.

Wayside Stop on Green Line

When running a singular train on green line, it receives a wayside stop at block 98 while it has remaining authority. An upcoming switch was currently turned off

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.