Spacecraft Control Framework 1.0
Spacecraft Control Library
Functions
sc_power.h File Reference

Power system utility functions. More...

Go to the source code of this file.

Functions

double discharge_rate_from_c (double c, double b, double v)
 Discharge rate. More...
 
double power_from_iv (double i, double v)
 Power from current and voltage. More...
 

Detailed Description

Power system utility functions.

Currently has a battery and a solar panel iv function.

Function Documentation

◆ discharge_rate_from_c()

double discharge_rate_from_c ( double  c,
double  b,
double  v 
)

Discharge rate.

Discharge rate.

Batteries have fixed voltages to the capacity in Ah determines energy storage. The voltage is needed to produce watts.

Parameters
cC Rate
bBattery capacity (Ah)
vBattery voltage (V)
Returns
W (J/s)

◆ power_from_iv()

double power_from_iv ( double  i,
double  v 
)

Power from current and voltage.

Parameters
iCurrent (A)
vvoltage (V)
Returns
W