C# Class SolarCar.Hardware

All Hardware. Instantiating this class activate DataReceived events for all hardware.
Mostra file Open project: nusolar/sc6-telemetry-code Class Usage Examples

Public Properties

Property Type Description
UserDrive bool
UserHeadlights bool
UserHorn bool
UserSignal Signals

Public Methods

Method Description
CanCharge ( ) : bool
CanDischarge ( ) : bool
Hardware ( ) : System
Health ( ) : string

String representing Health of batteries.

SetMotor ( float motor_velocity, float motor_current ) : void

Method Details

CanCharge() public method

public CanCharge ( ) : bool
return bool

CanDischarge() public method

public CanDischarge ( ) : bool
return bool

Hardware() public method

public Hardware ( ) : System
return System

Health() public method

String representing Health of batteries.
public Health ( ) : string
return string

SetMotor() public method

public SetMotor ( float motor_velocity, float motor_current ) : void
motor_velocity float
motor_current float
return void

Property Details

UserDrive public_oe property

public bool UserDrive
return bool

UserHeadlights public_oe property

public bool UserHeadlights
return bool

UserHorn public_oe property

public bool UserHorn
return bool

UserSignal public_oe property

public Signals UserSignal
return Signals