Coder Social home page Coder Social logo

trailer-driving's Introduction

Simple Vehicle & Trailer Simulation

Two simulations of a vehicle towing a trailer.

First simulation aims to allow user to 'drive' vehicle with keyboard commands to demonstrate responding movement of trailer.

Second simulation aims to demonstrate how weight distribution contributes to incidence of trailer sway when travelling on a straight road at speed.

Dissertaition Project 2018

Technologies

Project is created with :

  • JavaScript
  • HTML5

Driving Simulation

Image from Gyazo

Features

  • Manipulate front tyres of vehicle with WASD keyboard instructions and watch how the vehicle and trailer respond.
  • XC keys will accomodate larger turns of front tyres, AD can be used for more precice turning. C will centre the tyres again.
  • Depending on the angle of the front tyres, the trailer can jack-knife when reversing the vehicle, eventually crashing into the rear of the vehicle.

Trailer sway Simulation

Image from Gyazo

Features

  • Preset values along left-hand side of page with inputs for speed (mph), mass of load (kg), position of centre of mass on the trailer, the total friction on the trailer and the force applied to the trailer.
  • Inputs can be changed by user to any reasonable value. Errors displayed for invalid inputs.
  • Statistics listed on right-hand side of page.

trailer-driving's People

Contributors

mcgratheg avatar

Watchers

 avatar

Forkers

photonlili

trailer-driving's Issues

References

Hi and thank you for this project code, I am looking for references as I am doing a similar project. Could you please provide papers u used to write these equations from?

Looking forward to your response. Thanks.

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.