|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
two gyros?
Does easyC support the use of two gyroscopes, or do you have to use custom code to create an analog to digital converter?
|
|
#2
|
|||
|
|||
|
Re: two gyros?
Not sure if this will work, but when you intialize and subsequently read from the gyro (using the EasyC gyro block) you also define which analog port the gyro is plugged into. Therefore, in an object oriented sense, if you do the same thing for two gyros, the two instances should remain independent. Give it a try!
Otherwise, as you suggested, you would have to read the analog port directly which gives a 10-bit output proportional to turn rate which you can convert to deg/s which can be integrated to give heading. Let us know how it works! I've been wondering whether it might be a good idea to use two gyros for redundancy and as some sort of quality control in applications where accurate navigation is desired. |
|
#3
|
||||
|
||||
|
Re: two gyros?
Yes you can use two gyros together using two is almost the same as using one.
|
|
#4
|
||||
|
||||
|
Re: two gyros?
what do you need 2 for? are you trying to have 3-axis of sensing? i'm not sure, but just leaern C and do it from there.
PS C programming is very easy to do. as soon as you know the basic commands it does averything for you. |
|
#5
|
||||
|
||||
|
Re: two gyros?
One use for two gyro's is using two different sensitivity gyros. For example, a 300 deg/s and a 75 deg/s could be combined (with clever kalman-filter code) to provide a single heading that is immune to abrupt changes in angle(up to 300) while sensitive to smoother changes in angle (below 75)
|
|
#6
|
||||
|
||||
|
Re: two gyros?
just a question (because i might have to look into gyros next year): if the robot was moving faster than 70 deg/s, even though you have a faster gyro, wouldn't the slower one not be able to keep up, or lose heading?
|
|
#7
|
|||
|
|||
|
Re: two gyros?
Quote:
No, it is for 3d sensing and some drive stuff we are going to work on this summer. Everyone knows we spend as much time on our back as we do on our wheels and we just want to know how far on our back we are!!!! |
|
#8
|
|||
|
|||
|
Re: two gyros?
Quote:
Either way I don't really think that you need two unless there's a good reason (i.e sensing if the robots tilted etc...) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gyros | Ryan Cumings | Programming | 0 | 26-01-2004 16:22 |
| Putting two and two together... | Andy Grady | General Forum | 13 | 08-01-2004 18:29 |
| Gyros!! | RAWdealer59 | Programming | 1 | 12-02-2003 16:46 |
| gyros | archiver | 2001 | 6 | 24-06-2002 02:35 |
| Gyros | archiver | 2000 | 3 | 23-06-2002 22:58 |