mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Display CCR setpoint values on the po2 graph
When a CCR dive is viewed and the toolbar button for PO2 is activated, both the PO2 (green line) and the O2 setpoint (red line) are shown. This allows evaluation of the PO2 in the CCR loop with respect to the pre-configured O2 setpoint. The setpoint graph can be disabled from the Preferences/Graphs tab by checking the appropriate checkbox. Signed-off-by: willem ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
27bfbee4e8
commit
0de3bc8452
12 changed files with 33 additions and 2 deletions
|
@ -52,6 +52,8 @@ QVariant DivePlotDataModel::data(const QModelIndex &index, int role) const
|
|||
return item.pressures.he;
|
||||
case PO2:
|
||||
return item.pressures.o2;
|
||||
case O2SETPOINT:
|
||||
return item.o2setpoint.mbar / 1000.0;
|
||||
case HEARTBEAT:
|
||||
return item.heartbeat;
|
||||
case AMBPRESSURE:
|
||||
|
@ -127,6 +129,8 @@ QVariant DivePlotDataModel::headerData(int section, Qt::Orientation orientation,
|
|||
return tr("pHe");
|
||||
case PO2:
|
||||
return tr("pO₂");
|
||||
case O2SETPOINT:
|
||||
return tr("Setpoint");
|
||||
case AMBPRESSURE:
|
||||
return tr("Ambient pressure");
|
||||
case HEARTBEAT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue