Hey everyone, I was fiddling around with the new robotic parts for Breaking Ground and I came up with a snippet that allows me to control the parts.
part_name = "piston.02"
module_name = "ModuleRoboticServoPiston"
field_name = "Target Extension"
for part in vessel.parts.all:
if part.name == part_name:
for module in part.modules:
if module.name == module_name:
module.set_field_float(field_name, 0.0)
It's not the easiest way, eventually I think it would be nice for KRPC to have a more direct interface, but for now this work around should work. Super excited to see what people come up with using the new parts!