View Single Post
  #4   Spotlight this post!  
Unread 04-02-2006, 20:45
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: White Paper Discuss: .NET (2.0) Composite Dashboard Viewer

Sean,

First of all, let me genuflect to you (and this something I rarely do). Your post is a wonderful example of structured code in a Windows environment.

I did, however, notice an error today. The Team Number was not displaying.

I believe that the root cause might be here (from DataFrameBase.cs):

Code:
//control byte breakdowns
public int Team_Number { get { return ((data[iCTRL_A] & 0x0F) << 8) & data[iCTRL_B]; }}
public int Channel_Number { get { return (data[iCTRL_C] & 0x3F); }}
I think that the bitwise AND of CTRL_B and the masked CTRL_A should be an addition or a bitwise OR.

I might be off base on this... I'm more of an embedded oriented engineer.

Your thoughts kind Sir?

Respectfully,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote