Home › Forums › EasyTransfer Library Support Forum › Problems with EasyTransferI2C › Reply To: Problems with EasyTransferI2C
BANG……(ouch)
Bang……(ouch)
Bang……(My head)
repeat as required.
The banging you hear is my head making violent contact with the adjacent wall as I realise the stooopid mistake I made.
I failed to define the variables velocity and rotation after their receipt by the secondary processor. The loop() has now been rewritten as
void loop()
{
if(ET.receiveData())
{
velocity = mcp.velocity;
rotation = mcp.rotation;
Drive.s(velocity);
Turn.s(rotation);
}
}
and the system works as it should.
(Images of Johnny 5 leaping up and shouting “I’m ALIVE!!”.
Now to see if I can a data package to go the other way.
Freddie