I'm trying to write code to move IR Servos individually, by reading the documentation i got the following working:
for s in ADDONS:IR:ALLSERVOS
{
if (s:name = "LegA1L")
{
s:moveleft().
}
}
But i'd like to know how to target a Servo directly by it's name, instead of scanning through all of them.
Edit:
I did figure out this instruction: addons:ir:allservos[1]:moveleft().
How can i do this by addressing the servo by it's name instead of [1]?