![]() |
Quadratic equation problem
1 Attachment(s)
I took data from a sensor and basically tried to use the quadratic equation on it. When I plug in a number for it it would work, but the problem is that the motor just won't run when I do it. I've attached the program I made for it. If anyone could guide me in the right direction that would be much appreciated.
|
Re: Quadratic equation problem
Where are you putting the code you posted a picture of? What sensor are you reading?
What are you trying to do with this computation? |
Re: Quadratic equation problem
The code is in the teleop.vi. It's being read from a sonar (after the conversions). I basically needed to run a motor at different speeds based on the distance, but it didn't work well linearly.
|
Re: Quadratic equation problem
1 Attachment(s)
Quote:
Then it looks like you are computing y = -8.24x2 +12.3x -3.97 See attachment. Is that what you intended? |
Re: Quadratic equation problem
Quote:
|
Re: Quadratic equation problem
Quote:
|
| All times are GMT -5. The time now is 11:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi