Packageorg.MARS.robot.control
Classpublic class Battery
InheritanceBattery Inheritance AbstractElectronicDevice
ImplementsIController

Battery is not really a brain, it contains no logic, but instead it simulates connecting the DifferentialSteering inputs directly to a battery.

IO Port configuration:
0 through 3 - outputs (must be connected directly to the locomotion)

See also

DifferentialSteering


Public Properties
 PropertyDefined by
 InheritednumberOfPorts : Number
Get the number of IO ports in the device.
AbstractElectronicDevice
Protected Properties
 PropertyDefined by
 Inherited_ports : Array
AbstractElectronicDevice
Public Methods
 MethodDefined by
  
Constructor
Battery
 Inherited
getPort(portNumber:Number):IOPort
Get a certain IO port by its number
AbstractElectronicDevice
  
Battery
  
Battery
  
Battery
  
Battery
  
Battery
  
Battery
  
step():void
A function that is called on every step of the physics engine.
Battery
Constructor detail
Battery()constructor
public function Battery()

Constructor

Method detail
leftWheelForward()method
public function leftWheelForward():void
leftWheelReverse()method 
public function leftWheelReverse():void
leftWheelStop()method 
public function leftWheelStop():void
rightWheelForward()method 
public function rightWheelForward():void
rightWheelReverse()method 
public function rightWheelReverse():void
rightWheelStop()method 
public function rightWheelStop():void
step()method 
public function step():void

A function that is called on every step of the physics engine. Battery has no logic.