C# Class KinectRCCar.CarController.CarControllerService

Inheritance: ICarControllerService, IDisposable
ファイルを表示 Open project: devinh/KinectRCCar

Public Methods

Method Description
CarControllerService ( IMbedService portService, ICarControllerSettings settings ) : System
Dispose ( ) : void
GetDirection ( ) : double
GetVelocity ( ) : double
OnCarControllerStatusChanged ( CarControllerStatus status ) : void
Read ( ControlPot pot ) : int
Reset ( ) : void
SetDirection ( double directionPercent ) : void
SetVelocity ( double velocityPercent ) : void
Start ( ) : void
Stop ( ) : void
Write ( ControlPot pot, int value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
MbedServiceOnMbedStatusChanged ( object sender, MbedStatusEventArgs mbedStatusEventArgs ) : void

Method Details

CarControllerService() public method

public CarControllerService ( IMbedService portService, ICarControllerSettings settings ) : System
portService IMbedService
settings ICarControllerSettings
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetDirection() public method

public GetDirection ( ) : double
return double

GetVelocity() public method

public GetVelocity ( ) : double
return double

OnCarControllerStatusChanged() public method

public OnCarControllerStatusChanged ( CarControllerStatus status ) : void
status CarControllerStatus
return void

Read() public method

public Read ( ControlPot pot ) : int
pot ControlPot
return int

Reset() public method

public Reset ( ) : void
return void

SetDirection() public method

public SetDirection ( double directionPercent ) : void
directionPercent double
return void

SetVelocity() public method

public SetVelocity ( double velocityPercent ) : void
velocityPercent double
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Write() public method

public Write ( ControlPot pot, int value ) : void
pot ControlPot
value int
return void