Design a state machine to operate the two trains

Assignment Help Econometrics
Reference no: EM131301460

Design a state machine to operate the two trains avoiding collisions but minimizing their idle time. Trains must not crash by moving the wrong direction into an open switch. Develop a simulation to verify your state machine is operating correctly before running the video train system. The trains are assumed to be in the initial positions as shown in Figure 8.14. Train A is to move counterclockwise around the outside track until it comes to Sensor 1, then move to the inside track stopping at Sensor 5 and waiting for B to pass Sensor 3 twice. Trains can move at different speeds, so no assumption should be made about the train speeds. A train hitting a sensor can be stopped before entering the switch area.

Once B has passed Sensor 3 twice, Train A moves to the outside track and continues around counterclockwise until it picks up where it left off at the starting position as shown in Figure 8.15. Train B is to move as designated only stopping at a sensor to avoid collisions with A. Train B will then continue as soon as there is no potential collision and continue as designated. Trains A and B should run continuously, stopping only to avoid a potential collision.

2185_c0d1222c-d98e-47bb-af8e-cd3f53c4b450.png

Reference no: EM131301460

Questions Cloud

Describe the companys strategic approach to globalization : Analyze the company's strategic approach to globalization and their approach to competition, sustainability, CSR, marketing, analysis (external, internal, industry), and cross border issues
Despite the difference in the solution methods : Noting that this game is equivalent to game (B) of question 2 from Problem Set #6, compare and make sure that the solutions are identical as well (despite the difference in the solution methods).
Should the sampsons buy these stocks explain : Summarize your decision on the type of orders you will place to purchase stocks and your preference for using cash versus buying on margin.
Child obesity : Title: Child Obesity (Should it be okay to ban junk food from school?)A synthesis (researched) argument Essay on this topic. Child Obesity  (Should it be okay to ban junk food from school?). I have already purchased two other orders on this topic the..
Design a state machine to operate the two trains : Trains can move at different speeds, so no assumption should be made about the train speeds. A train hitting a sensor can be stopped before entering the switch area.
Relevant concepts and include relevant examples : Discuss in detail any relevant concepts and include relevant examples in your answer. The answer is worth a total of twenty-five points. these are long answer questions.
How would stephanies bond investing decisions : How would Stephanie's bond investing decisions be different if she were a single mother of two children?- When should you consider investing in bonds?
What is a call feature on a bond : What is a call feature on a bond? How will a call feature affect investor interest in purchasing the bond?- What is a convertible bond?
How will this affect the economy : On Dec. 16, 2015 the Federal Reserve voted to increase interest rates for the first time in 7 years. How will this affect the economy? Check out this video from The New York Times.

Reviews

Write a Review

Econometrics Questions & Answers

  Design a simple econometric research project

Design a simple econometric research project

  Multiplicative decomposition method

Multiplicative decomposition method

  Market for cigarettes

The Australian government administers two programs that affect the market for cigarettes.

  Solve the forecast model

Solve the forecast model

  What are the marginal abatement cost functions

What are the marginal abatement cost functions for each of the two areas? Calculate the loss in the two areas due to over-control (for the rural area) and under-control (for the urban area).

  Write the t statistic for testing the null hypothesis

Explain why this model violates the assumption of no perfect collinearity.  Write the t statistic for testing the null hypothesis

  What is economics system

What is economics system? What are the types of economics system? Briefly explain each type of economics system by giving examples of nations that are close to each type

  Multiple choice questions related to market concentration

Determine when a competitively produced product generates negative externalities in production, the industry will,

  Calculating number of units produced by firm

Assume a company has the following production function: Q = 100 K.5 L1 . Currently, the company hires 1,000 workers and employs 100 units of capital.

  Question about mobile commerce

M-commerce also known as mobile commerce is being lumped in with several strategic internet plans. Explain some of the industries that are likely to use mobile commerce and how it is working for them.

  Calculating the average days past due and average flow time

Auto Data manufactures custom engineering testing machine. The following 5-orders are currently in the design department:

  Mechanism of an english auction and second price auction

Briefly discuss the difference between mechanism of an oral or English auction and a Vickrey or second price auction.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd