Jump to content

Acceleration?


boyracer38

Recommended Posts

I have the following controls

Silder - accelerator

Gauge - Miles Per Hour (MPH)

Gauge - Revs per minute (RPM)

The idea to make the vi simulate a car....

When the accelerator is increased, the revs will rise.

The RPM will determine the gear (4 speed auto gear box)

So as the rpm rises/falls, the gear will shift and down accordingly....

Thats the part i have done...

I now want to link the revs to the MPH to show the speed...

The speed will depend on the RPM and the gear....

Each gear has a max possible speed which can be reached in that gear.

eg, no faster than 30MPH in 1st

My idea is that i shoudl mulitply the present RPM by a value to get MPH which will be displayed on the MPH gauge?

Any ideas welcome

post-892-1101994094.jpg?width=400

Link to comment

Your idea is pretty much what a car really does - multiply the engine RPM by the gear ratio in the transmission to move your wheels.

I think it would be simpler if you put a limit on RPM and then you wouldn't have to worry about speed for each gear. The car could shift when it reached the proper RPM.

Just figure out what gear ratios you want and multiply that by your RPM. Wire that output to your Speedometer.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.