|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: User_Bytes taken over by breakers?
What made me think it might be hardwired is that it isn't referenced anywhere in the default code. Did they just forget to take the comments out? If that's the case, will I need to add ".allbits" to bytes 3 through 6 like bytes 1 and 2 have?
|
|
#2
|
|||
|
|||
|
Re: User_Bytes taken over by breakers?
I haven't looked at the code, but it might be an artifact from last year. The breaker panel sends updates over the serial port, so the code that handled that updated the user bytes. If you're not using the breaker panel code then you should be able to set the user bytes yourself.
|
|
#3
|
|||||
|
|||||
|
Re: User_Bytes taken over by breakers?
The reference to "allbits" is only on the first two user bytes. I think it's that way because the Dashboard Viewer program can show each individual bit of those two user bytes, and there is an associated bit array in the user byte structure that you can use to set those bytes' bits one at a time if you want to.
Don't worry about it. Just set User_Byte1 through User_Byte6 the way you want, make sure nothing else in Default_Routine() is setting them to something you don't want, and everything should work fine. |
|
#4
|
||||
|
||||
|
Re: User_Bytes taken over by breakers?
Thanks! It works great.
Code:
//Send camera data to the Dashboard. User_Byte1 = CENTROID_X; User_Byte2 = CENTROID_Y; User_Byte3 = UPPER_X; User_Byte4 = UPPER_Y; User_Byte5 = LOWER_X; User_Byte6 = LOWER_Y; |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for Picture taken at LA Regional | Phil_Lutz | Regional Competitions | 2 | 14-04-2004 18:54 |
| pic: this picture was taken on 2/19/04 | CD47-Bot | Robot Showcase | 5 | 24-02-2004 10:40 |
| Autodesk hath taken pity on us... | RachelOfMars | 3D Animation and Competition | 2 | 05-04-2003 11:12 |
| firstrobotics.org taken by spammers | SlamminSammy | General Forum | 6 | 06-10-2002 20:23 |
| Picture taken at nats | David Kelly | Championship Event | 1 | 22-06-2001 12:25 |