Does anybody have any idea what the syntax would be to write a function for setting the limelight’s priorityid in Python? Any help would be greatly appreciated.
I haven’t used Python for FRC before, but I’m familiar with the Java API, so I may be taking the wrong approach here. It looks like there is a library for this in Java, but not Python. You can still use the NetworkTables API though. To get data in Python, you can use the following:
NetworkTables.getTable("limelight").getNumber('<variablename>')
Conversely, to retrieve data you can use the following:
NetworkTables.getTable("limelight").putNumber('<variablename>',<value>)
To set the priorityid, you should be able to use something like this:
priorityid_to_set = 7
NetworkTables.getTable("limelight").putNumber('priorityid',priorityid_to_set )
I hope I’m not misleading you, good luck.