IR blocs updating

Technoman

Senior Member
Hi,

1) In the French version of the flowchart mode, deprecated commands Infraout/Infrain are used for IR communication. The English version is using the Irout/Irin commands, with the very useful timeout option.

2) As the Irin command is implemented within a simple block, that prevent from going to any point (ie error routine) as possibly with basic command Irin (IRIN [timeout, address], pin, variable).
What about the idea to implement it within a special decision block?

According to a department of education spokesman, the flowchart mode is not dead, down here. They encourage teachers to use both modes : flowchart and Blockly.
 

Technical

Technical Support
Staff member
This looks like a simple translation issue, both old and new blocks have accidentally been given the same French name and hence only the old block is ever used. Should be a simple fix.
 

hippy

Technical Support
Staff member
Timeouts can be detected by setting the variable used in the IRIN command to an invalid IR command value (128 to 255) and then checking the value after the IRIN. If an IR command is received the variable will be updated to the command value, otherwise it will retain the invalid value.
 

Attachments

Technoman

Senior Member
Thanks hippy for this nice workaround.

I didn't know the variable remains untouched in case of timeout. The command description and the manual do not mention it.
 
Top