ServoGroup#
- class InfernalRobotics.ServoGroup()#
A group of servos, obtained by calling
InfernalRobotics.servoGroups()orInfernalRobotics.servoGroupWithName(). Represents the “Servo Groups” in the InfernalRobotics UI.- ServoGroup.getName()#
- ServoGroup.setName(value)#
The name of the group.
- Property:
Can be read or written
- Return type:
string- Game Scenes:
Flight
Note
Renaming a group renames it for every servo in it. This object identifies the group by its name, so a rename destroys every object for the group, including the one the rename was made through. Obtain the group again under the new name.
- ServoGroup.getForwardKey()#
- ServoGroup.setForwardKey(value)#
The key assigned to be the “forward” key for the group.
- Property:
Can be read or written
- Return type:
string- Game Scenes:
Flight
- ServoGroup.getReverseKey()#
- ServoGroup.setReverseKey(value)#
The key assigned to be the “reverse” key for the group.
- Property:
Can be read or written
- Return type:
string- Game Scenes:
Flight
- ServoGroup.getSpeed()#
- ServoGroup.setSpeed(value)#
The speed multiplier for the group.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- ServoGroup.getExpanded()#
- ServoGroup.setExpanded(value)#
Whether the group is expanded in the InfernalRobotics UI.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- ServoGroup.getVessel()#
The vessel the group belongs to.
- Property:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- ServoGroup.getMovingDirection()#
The direction the group is currently moving in: -1 for reverse, 0 for stopped and 1 for forward.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- ServoGroup.getAdvancedMode()#
- ServoGroup.setAdvancedMode(value)#
Whether the group is in advanced mode.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- ServoGroup.getElectricChargeRequired()#
The total rate at which the servos in the group consume electric charge, in units per second, when moving.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- ServoGroup.getBuildAid()#
- ServoGroup.setBuildAid(value)#
Whether the build aid is enabled for the group.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- ServoGroup.getIKActive()#
- ServoGroup.setIKActive(value)#
Whether inverse kinematics is active for the group.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- ServoGroup.getServos()#
The servos that are in the group.
- Property:
Read-only, cannot be set
- Return type:
ArrayofInfernalRobotics.Servo- Game Scenes:
Flight
- ServoGroup.servoWithName(name)#
Returns the servo with the given name from this group, or
nullif none exists.- Arguments:
name (
string) – Name of servo to find.
- Return type:
InfernalRobotics.Servoornull- Game Scenes:
Flight
- ServoGroup.getParts()#
The parts containing the servos in the group.
- Property:
Read-only, cannot be set
- Return type:
ArrayofSpaceCenter.Part- Game Scenes:
Flight
- ServoGroup.moveRight()#
Moves all of the servos in the group to the right.
- Game Scenes:
Flight
- ServoGroup.moveLeft()#
Moves all of the servos in the group to the left.
- Game Scenes:
Flight
- ServoGroup.moveCenter()#
Moves all of the servos in the group to the center.
- Game Scenes:
Flight
- ServoGroup.moveNextPreset()#
Moves all of the servos in the group to the next preset.
- Game Scenes:
Flight
- ServoGroup.movePrevPreset()#
Moves all of the servos in the group to the previous preset.
- Game Scenes:
Flight
- ServoGroup.stop()#
Stops the servos in the group.
- Game Scenes:
Flight