ServoGroup#
- public class ServoGroup#
A group of servos, obtained by calling
servoGroups(SpaceCenter.Vessel)orservoGroupWithName(SpaceCenter.Vessel, String). Represents the “Servo Groups” in the InfernalRobotics UI.- void setForwardKey(String value)#
The key assigned to be the “forward” key for the group.
- Game Scenes:
Flight
- void setReverseKey(String value)#
The key assigned to be the “reverse” key for the group.
- Game Scenes:
Flight
- float getSpeed()#
- void setSpeed(float value)#
The speed multiplier for the group.
- Game Scenes:
Flight
- boolean getExpanded()#
- void setExpanded(boolean value)#
Whether the group is expanded in the InfernalRobotics UI.
- Game Scenes:
Flight
- SpaceCenter.Vessel getVessel()#
The vessel the group belongs to, or
nullif it is not available.- Game Scenes:
Flight
- int getMovingDirection()#
The direction the group is currently moving in: -1 for reverse, 0 for stopped and 1 for forward.
- Game Scenes:
Flight
- boolean getAdvancedMode()#
- void setAdvancedMode(boolean value)#
Whether the group is in advanced mode.
- Game Scenes:
Flight
- float getElectricChargeRequired()#
The total rate at which the servos in the group consume electric charge, in units per second, when moving.
- Game Scenes:
Flight
- boolean getBuildAid()#
- void setBuildAid(boolean value)#
Whether the build aid is enabled for the group.
- Game Scenes:
Flight
- boolean getIKActive()#
- void setIKActive(boolean value)#
Whether inverse kinematics is active for the group.
- Game Scenes:
Flight
- Servo servoWithName(String name)#
Returns the servo with the given name from this group, or
nullif none exists.- Parameters:
name (
String) – Name of servo to find.
- Game Scenes:
Flight
- java.util.List<SpaceCenter.Part> getParts()#
The parts containing the servos in the group.
- Game Scenes:
Flight
- void moveRight()#
Moves all of the servos in the group to the right.
- Game Scenes:
Flight
- void moveLeft()#
Moves all of the servos in the group to the left.
- Game Scenes:
Flight
- void moveCenter()#
Moves all of the servos in the group to the center.
- Game Scenes:
Flight
- void moveNextPreset()#
Moves all of the servos in the group to the next preset.
- Game Scenes:
Flight
- void movePrevPreset()#
Moves all of the servos in the group to the previous preset.
- Game Scenes:
Flight
- void stop()#
Stops the servos in the group.
- Game Scenes:
Flight