WPILibC++  2018.4.1-20180819050225-1157-gb44f27d
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
PDP Functions

Functions to control the Power Distribution Panel. More...

Functions

HAL_PDPHandle HAL_InitializePDP (int32_t module, int32_t *status)
 Initializes a Power Distribution Panel. More...
 
void HAL_CleanPDP (HAL_PDPHandle handle)
 Cleans a PDP module. More...
 
HAL_Bool HAL_CheckPDPChannel (int32_t channel)
 Checks if a PDP channel is valid. More...
 
HAL_Bool HAL_CheckPDPModule (int32_t module)
 Checks if a PDP module is valid. More...
 
double HAL_GetPDPTemperature (HAL_PDPHandle handle, int32_t *status)
 Gets the temperature of the PDP. More...
 
double HAL_GetPDPVoltage (HAL_PDPHandle handle, int32_t *status)
 Gets the PDP input voltage. More...
 
double HAL_GetPDPChannelCurrent (HAL_PDPHandle handle, int32_t channel, int32_t *status)
 Gets the current of a specific PDP channel. More...
 
double HAL_GetPDPTotalCurrent (HAL_PDPHandle handle, int32_t *status)
 Gets the total current of the PDP. More...
 
double HAL_GetPDPTotalPower (HAL_PDPHandle handle, int32_t *status)
 Gets the total power of the PDP. More...
 
double HAL_GetPDPTotalEnergy (HAL_PDPHandle handle, int32_t *status)
 Gets the total energy of the PDP. More...
 
void HAL_ResetPDPTotalEnergy (HAL_PDPHandle handle, int32_t *status)
 Resets the PDP accumulated energy. More...
 
void HAL_ClearPDPStickyFaults (HAL_PDPHandle handle, int32_t *status)
 Clears any PDP sticky faults. More...
 

Detailed Description

Functions to control the Power Distribution Panel.

Function Documentation

HAL_Bool HAL_CheckPDPChannel ( int32_t  channel)

Checks if a PDP channel is valid.

Parameters
channelthe channel to check
Returns
true if the channel is valid, otherwise false
HAL_Bool HAL_CheckPDPModule ( int32_t  module)

Checks if a PDP module is valid.

Parameters
channelthe module to check
Returns
true if the module is valid, otherwise false
void HAL_CleanPDP ( HAL_PDPHandle  handle)

Cleans a PDP module.

Parameters
handlethe module handle
void HAL_ClearPDPStickyFaults ( HAL_PDPHandle  handle,
int32_t *  status 
)

Clears any PDP sticky faults.

Parameters
handlethe module handle
double HAL_GetPDPChannelCurrent ( HAL_PDPHandle  handle,
int32_t  channel,
int32_t *  status 
)

Gets the current of a specific PDP channel.

Parameters
modulethe module
channelthe channel
Returns
the channel current (amps)
double HAL_GetPDPTemperature ( HAL_PDPHandle  handle,
int32_t *  status 
)

Gets the temperature of the PDP.

Parameters
handlethe module handle
Returns
the module temperature (celsius)
double HAL_GetPDPTotalCurrent ( HAL_PDPHandle  handle,
int32_t *  status 
)

Gets the total current of the PDP.

Parameters
handlethe module handle
Returns
the total current (amps)
double HAL_GetPDPTotalEnergy ( HAL_PDPHandle  handle,
int32_t *  status 
)

Gets the total energy of the PDP.

Parameters
handlethe module handle
Returns
the total energy (joules)
double HAL_GetPDPTotalPower ( HAL_PDPHandle  handle,
int32_t *  status 
)

Gets the total power of the PDP.

Parameters
handlethe module handle
Returns
the total power (watts)
double HAL_GetPDPVoltage ( HAL_PDPHandle  handle,
int32_t *  status 
)

Gets the PDP input voltage.

Parameters
handlethe module handle
Returns
the input voltage (volts)
HAL_PDPHandle HAL_InitializePDP ( int32_t  module,
int32_t *  status 
)

Initializes a Power Distribution Panel.

Parameters
modulethe module number to initialize
Returns
the created PDP
void HAL_ResetPDPTotalEnergy ( HAL_PDPHandle  handle,
int32_t *  status 
)

Resets the PDP accumulated energy.

Parameters
handlethe module handle