Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Accelerometer Help? (http://www.chiefdelphi.com/forums/showthread.php?t=72325)

elbuo 19-01-2009 11:22

Re: Help?
 
Yeah we sent the report.
Thing is, every single team here in PR received the pack one week later.
So our order will take longer :(

Man I got so lost in the explanation of the jaguar :(
I just want to set a maximum speed so the speed never goes up what we think is the best choice. And if we limit the output then I guess that will be solving our problem. Thing is I don't know how to do it with LV if it's possible.

Which would be that software :S

EricVanWyk 19-01-2009 13:01

Re: Help?
 
There are many ways to implement what you want. Here are two simple methods.

The least good way to do it is using the "In Range and Coerce" VI that is under Programming -> Comparison. This will allow you to place limits on what will be sent to the Jaguar. Unfortunately, it is just a hard limit - moving your joysticks beyond that limit will just return the limit. This means that your sensitivity will be awful. I mention this option only because that VI will be useful in other situations.

A better way to do it would be to multiply your joystick value by your intended limit. If you only want 25% speed, multiply by .25 . This will allow you to use the full range of the joysticks.


All times are GMT -5. The time now is 14:29.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi