I'm finding that reading the drivers station digital inputs is unreliable. Our switch panel isn't ready yet so I am tying the signal pin of port 8 directly to the +5 pin. This should avoid the lack of a pull up or pull down problem on the digital inputs.
I'm using the iterativeRobot class. When I call the drivers station method
Code:
value = m_ds->GetDigitalIn(8);
I usually get a one value returned but sometimes I get a zero.
I notice that IterativeRobot class is synchronized to the drivers station packet. But the DriversStation access methods all do a GetData() call. It looks like GetData does a wait for a new packet although the comment says that it doesn't.
Has anyone seen this?