![]() |
COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
PV String (STRG) structure. More...
#include <jsondef.h>
Public Member Functions | |
| json11::Json | to_json () const |
| Convert class contents to JSON object. More... | |
| void | from_json (const string &s) |
| Set class contents from JSON string. More... | |
Public Attributes | |
| uint16_t | bcidx = 0 |
| BCREG index. More... | |
| float | effbase = 0.f |
| Efficiency 0th order term. More... | |
| float | effslope = 0.f |
| Efficiency 1st order term. More... | |
| float | maxpower = 0.f |
| Maximum power generation in Watts. More... | |
| float | power = 0.f |
| Current power being generated in Watts. More... | |
PV String (STRG) structure.
Efficiency is goven as effbase + effslope * Tkelvin.
|
inline |
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
| s | JSON-formatted string to set class contents to |
| uint16_t pvstrgstruc::bcidx = 0 |
BCREG index.
| float pvstrgstruc::effbase = 0.f |
Efficiency 0th order term.
| float pvstrgstruc::effslope = 0.f |
Efficiency 1st order term.
| float pvstrgstruc::maxpower = 0.f |
Maximum power generation in Watts.
| float pvstrgstruc::power = 0.f |
Current power being generated in Watts.