On Tue, 2012-03-06 at 10:56 -0500, Hans-Christoph Steiner wrote:
On Mar 4, 2012, at 9:45 AM, Roman Haefeli wrote:
Actually [zexy/makesymbol] wasn't ever used in [arduino], only in arduino-help.pd . There it's used to display the Firmware version in a GOP cnv object -> [zexy/makesymbol firmata_%s.%s]. This can be safely replaced nowadays by [symbol firmata_$1.$2(. However, I didn't even use that, because I thought it would be useful to display the whole Firmata specification there, not only the protocol version. It now displays something like:
StandardFirmata 2 3
and it does so with only using vanilla classes. Let me point that [arduino] itself is not all affected by this.
Replacing [zexy/makesymbol] sounds like a good solution. I think that the [symbol Firmata_$1.$2( will produce the most readable version of this. "StandardFirmata 2 3" is not super clear, especially to newbies.
Why would like the help-patch to only show the version in some weird format instead of showing exactly what [arduino]'s right outlet is sending? Am I missing something here? It's easy to change, but I don't get your point here. If you insist, i'll change it.
Pduino deliberately uses namespace prefixes because that's currently the only way to guarantee the correct object is being loaded.
Agreed.
Using [declare -lib zexy] [makesymbol] does not currently guarantee that (tho it should).
Yeah, I also agree that it should.
Please, tell me about your further constraints, if there are any, and I'll see how I can comply with them.
I can't think of any off the top of my head, but I am sure they exist. The best approach for something like this, I think, is to try to make sure that the given output is exactly the same. So if the [zexy/makesymbol] code produces "Firmata_2.3", the updated code should as well, unless the problem is specifically because the message is like "Firmata_2.3".
Sorry, if I am wrong, but I have the slight feeling, that you still think that something in [arduino] has changed. I can assure you that the updated [arduino] gives the _exact_ same output as the original one. That is, it still sends:
'firmware StandardFirmata 2 3'
'version 2 3'
to it's right outlet. Only the help-patch has changed (see above).
Please be assured, I wouldn't change any message format in [arduino] itself.
So, how we proceed?
Roman