logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Sean WoodComputer science
(5/5)

837 Answers

Hire Me
expert
Manal ChiguerMarketing
(5/5)

593 Answers

Hire Me
expert
Hunter EdwardsEnglish
(5/5)

690 Answers

Hire Me
expert
Draven HowellPhilosophy
(5/5)

626 Answers

Hire Me
Assignment Writing

You are to develop a website that can receive input from a vehicle via query URLs that will record the input into a database and use that data to map its relative position

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

You are to develop a website that can receive input from a vehicle via query URLs that will record the input into a database and use that data to map its relative position. This is an INDIVIDUAL assignment.

Data Acquisition:

The following relative URL’s (or routes) are used by the vehicle to provide data to the website:

/register?name=XXXX&width=###.###

Adds a new vehicle run to the system, should return a cookie called USER=[name] that would be included for the other commands. Width is the width of the vehicle in cm.

It should overwrite any other “active” session for that named vehicle

/wheels?left=###.###&right=###.###

Rescords the speed of the left and right wheel in cm/sec for that vehicle in the current session

/echo?dist=###.###

Records the result of the echo sensor in cm for the vehicle in the current session

/line?l1=##&l2=##&l3=##

Records the result of ONE or MORE l1, l2, l3, etc. Line sensors on/off cm for the vehicle in the current session

/other?[variable key:value pairs]

Records and other data sent in key:value pairs to be recorded for the vehicle in the current session

/end

End the current session for the vehicle

All of the above will also have a “time=#####” parameter for relative time calculations. Time will be in milliseconds.

All records should also be timestamped with the server’s date and time.

User Interface:

/active

Shows a list of the active vehicle sessions and links to /map to map their position and to

/datareview to show the data received to date.

/review

Shows a list of all sessions (active and complete) that can be filtered by vehicle name, and by time frame (i.e started before/after certain time). This list should link to /datareview and /map

/datareview

Shows all the data sent to the server in chronological order. The data can be filtered to show only specific data fields (based on the data fields), like show only left and right wheel data or show l1 echo and right wheel, etc.

/map

Displays a graphical representation of the relative position of the vehicle and its route. It can be assumed that the vehicle travels within a 1000 x 1000 cm grid. Calculation of position is based on the data from the wheels which has been recorded in cm/sec. Equal values applied to both wheels indicate straight movement. Unequal values indicates a change in direction.

Slower right wheel would indicate a turn right, slower left wheel indicates a turn left.

To calculate the “dot” (position) multiply the average wheel speed (between the last wheel data and the current wheel data) by the delta of time (use millisecond times) from the last wheel data. That gives you how far each wheel moved. Calling these LAL (left arc length) and RAL (right arc length), we first need to handle special cases:

  • LAL and RAL are equal – meaning the car went straight (use an error delta, such as a 1/10 of a mm to allow for data fluctuation).

  • LAL = (or is near) 0, while RAL is some significant (> error ) value, Vehicle making a sharp left turn (pivoting on left wheel).

  • RAL = (or is near) 0, while LAL is some significant (> error ) value, Vehicle making a sharp right turn (pivoting on right wheel).

  • RAL and LAL are (or near) 0 – Vehicle is stopped

 

The final cases are where both LAL and RAL are significant values but not equal. If LAL is > RAL then the formulas below should be used to calculate the radius of the circle that contains the RAL arc and the angle in degrees that the arc represent of that circle.

𝐿𝐴𝐿 = πœƒ

360

2πœ‹(π‘Ÿ + 𝑀)     π‘Žπ‘›π‘‘     𝑅𝐴𝐿 =    πœƒ

360

2πœ‹π‘Ÿ

πœƒ = 𝑅𝐴𝐿 ∗ 360

2πœ‹π‘Ÿ

π‘Žπ‘›π‘‘          π‘Ÿ =         𝑀

5  − 18 𝐿𝐴𝐿 𝑅𝐴𝐿

If RAL is > LAL, invert the two values (RAL and LAL) in the above equations.

From these values you should then be able to calculate the delta-x and delta-y to determine the new position.

Assignment:

Your assignment for this final project (this is your final) is to develop the above website and use the supplied script which will feed data into your site.

You will then navigate to the /active url (and take screen shots of each screen) show the active sessions. Click the link to bring you to the datareview for that session. Take screen shots of the screen with all data showing, then filter on just the dist values, then on the wheel values

Navigate to the /review url (and take screen shots of each screen) and show all sessions, then filter on name showing just the sessions for a particular vehicle name, then further filter by date.

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. ThisΒ  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme