C# Class SolarCar.Hardware

All Hardware. Instantiating this class activate DataReceived events for all hardware.
Show 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 property

public bool UserDrive
return bool

UserHeadlights public property

public bool UserHeadlights
return bool

UserHorn public property

public bool UserHorn
return bool

UserSignal public property

public Signals UserSignal
return Signals