Outerra Apps > Games

Bicycle simulator

(1/2) > >>

Leanier:
I was wondering if there is an easy way to set up some sort of bicycle simulator.
All I am looking for is essentially a sim that I can connect to my bicycle so that in the winter I can ride my bike on an indoor trainer, have an arduino or something pull the speed off of the rear wheel, and then it can provide that to outterra somehow.

I would basically just need something that would allow the camera to track on a road, and then take a speed input.  This would make exercising much more interesting in the winter.

It would be easy to set up different routes etc.
Any way to do this?

langdon:
Wow,

Simple but an absolutely brilliant idea!

Short answer. yes!  via the igc_plugin.dll

It's galled the IGC interface. In game camera.

1.) Can you code in C ?
2.) Can you get the arduino to spit out a lat/lon or get it to send speed (and direction) and have the dll do all the velocity -> position calcs.

Have a read through this: http://forum.outerra.com/index.php?topic=2705.0

L

Leanier:
Well, my coding is pretty much limited to arduino stuff, and some vbasic, but I can probably figure it out..

Initially what I was thinking would work best was if there was a way to output the lat/lon of a road, the all I would provide is speed (and maybe a lookup of the lat/lon).  That way it will auto-track on the road, and the speed is all I am doing with the bike.

However, maybe I could modify my bike setup to include a method for turning.  sensor on the handlebar that will measure it turning, or some allowance for slight lean and measurement therein.

That would almost be easier to code, as then I would not have to find a way to import Lat/Lon of various roads that I create.  (Unless there is a way to just make the camera stick to the center of a road)

Going a step further, I could probably find a way to export the pitch of the terrain from outerra, then I could feed that into the arduino and have it set the resistance on the trainer.  That would be taking this quite a bit further in complexity of course..

Leanier:
Another way I could try to do it that may be more my skill level:

I could probably use the arduino to make a "joystick".  This would allow forward motion to be controlled by the rear wheel speed.  I'm sure I could find a way to set the movement speed based on the rear wheel speed.  Direction left/right would be set using some sort of turn sensor I install.

Perhaps make (or find) some sort of vehicle that would make this easy for me to link into with simple joystick controls (something with low or no mass and basic handling)

I could even go as far as setting up a head tracking software of some sort using a gyro/accel headset.. but I'm getting a bit ahead of myself now..

langdon:
Even easier, just make an arduino joystick.


Leo is great for that. and then just use it to control an in game vehicle. Take one of the existing vehicles and just strip it down till there's no body left on it (that you can see).

Faster you peddle the higher the throttle axis.

Getting feedback back out of Outerra is basically a no go at the moment. Not sure if it can be done with the igc.dll or not.

Navigation

[0] Message Index

[#] Next page

Go to full version