diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-19 21:07:43 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-19 21:18:26 -0500 |
commit | 5b0f4e79c4767f6d4e305e1607d7749330531a21 (patch) | |
tree | 2598cf819222a91c0f3506eaa08efe202b8d3a8f /dive.h | |
parent | f7119bdccfb2c8777d96a53b3f389cd31d605f2d (diff) | |
download | subsurface-5b0f4e79c4767f6d4e305e1607d7749330531a21.tar.gz |
Mark manually entered waypoints as such
With this information, when we re-plan a dive we can bring the user right
back to the point where they ended - they have the waypoints in the dive
pointes table and handles are shown on the right points in the profile -
and the rest of the dive is once again calculated by the planning
algorithm.
For now this state is lost when saving the dive file as we don't add this
flag in the sample to our saved files. So if we don't find any samples
marked as manually added we add ALL of the samples as way points on the
diveplan and the user has to manually remove the ones that were
calculated.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -163,7 +163,9 @@ struct sample // BASE TYPE BYTES UNITS RANGE DE uint8_t cns; // uint8_t 1 % (0-255 %) cns% accumulated uint8_t heartbeat; // uint8_t 1 beats/m (0-255) heart rate measurement bool in_deco; // bool 1 y/n y/n this sample is part of deco -}; // Total size of structure: 48 bytes, excluding padding at end + bool manually_entered; // bool 1 y/n y/n this sample was entered by the user, + // not calculated when planning a dive +}; // Total size of structure: 53 bytes, excluding padding at end struct divetag { /* |