View Single Post
  #1   Spotlight this post!  
Unread 23-01-2009, 14:35
FRC1672's Avatar
FRC1672 FRC1672 is offline
Team 1672
FRC #1672 (Mahwah Robo T-Birds)
 
Join Date: Jan 2009
Rookie Year: 2003
Location: Mahwah
Posts: 29
FRC1672 is on a distinguished road
Issue with DS DigitalOutput

We were testing our digital output and used the set method from DigitalOutput.ccp
Code:

/**
* Set the value of a digital output.
* Set the value of a digital output to either one (true) or zero (false).
*/
void DigitalOutput::Set(UINT32 value)
{
m_module->SetDIO(m_channel, value);
}

we used:
set(0)
and set(1)

both gave us issues while building and compiling.

Code:

/**
* Create an instance of a digital output.
* Create an instance of a digital output given a slot and channel.
*/
DigitalOutput:igitalOutput(UINT32 slot, UINT32 channel)
{
InitDigitalOutput(slot, channel);
}

I believe our issue was with creating DigitalOutput object. Which slot and channel should we enter to reference?
Reply With Quote