for the first one, would the operator code look like this:
Code:
void operator control
switch (ds->GetDigitalIn(1));
{
motor->Set(0.0);
Wait(1.0);
motor->Set(0.0);
}
i took out the = sign because every time i build it i get an error saying: "expected before `=` token, how can i fix this??,
and i tried the enhanced io but it gives me a warning that "dsio" is a unused varible