Mercurial > public > ostc4
comparison Discovery/Inc/logbook.h @ 455:928a14568689 minor_improvments
Reactivated samples for bottle pressure information:
I previous versions (and also in the upcommings) the bottle pressure informations are not added to the log information. However for alfatesting of a potential pressure measurement the function may now be reactivated by a compile switch
Added the possibility to create dummy profiles based on the max depth, time and temperature values stored in the dive header:
In case the sample information belonging to a dive is no longer available a dummy profile shall be provided to the consumers (infolog view as well as external read requests).
author | ideenmodellierer |
---|---|
date | Tue, 24 Mar 2020 22:12:08 +0100 |
parents | 2e58a4094770 |
children | 5dd996ed8611 |
comparison
equal
deleted
inserted
replaced
454:5a633dece17a | 455:928a14568689 |
---|---|
207 SLogbookHeaderOSTC3 * logbook_build_ostc3header(SLogbookHeader* pLogbookHeader); | 207 SLogbookHeaderOSTC3 * logbook_build_ostc3header(SLogbookHeader* pLogbookHeader); |
208 SLogbookHeaderOSTC3compact * logbook_build_ostc3header_compact(SLogbookHeader* pHead); | 208 SLogbookHeaderOSTC3compact * logbook_build_ostc3header_compact(SLogbookHeader* pHead); |
209 | 209 |
210 uint8_t logbook_getNumberOfHeaders(void); | 210 uint8_t logbook_getNumberOfHeaders(void); |
211 uint8_t logbook_getHeader(uint8_t StepBackwards,SLogbookHeader* pLogbookHeader); | 211 uint8_t logbook_getHeader(uint8_t StepBackwards,SLogbookHeader* pLogbookHeader); |
212 uint16_t logbook_readSampleData(uint8_t StepBackwards, uint16_t length,uint16_t* depth, uint8_t* gasid, int16_t* temperature, uint16_t* ppo2, uint16_t* setpoint, uint16_t* sensor1, uint16_t* sensor2, uint16_t* sensor3, uint16_t* cns, uint8_t* bailout, uint16_t* decostopDepth); | 212 uint16_t logbook_readSampleData(uint8_t StepBackwards, uint16_t length,uint16_t* depth, uint8_t* gasid, int16_t* temperature, uint16_t* ppo2, |
213 uint16_t* setpoint, uint16_t* sensor1, uint16_t* sensor2, uint16_t* sensor3, uint16_t* cns, uint8_t* bailout, | |
214 uint16_t* decostopDepth, uint16_t* tank); | |
213 void logbook_test(void); | 215 void logbook_test(void); |
214 void logbook_InitAndWrite(const SDiveState* pStateReal); | 216 void logbook_InitAndWrite(const SDiveState* pStateReal); |
215 void logbook_recover_brokenlog(uint8_t headerId); | 217 void logbook_recover_brokenlog(uint8_t headerId); |
216 | 218 |
217 uint16_t logbook_lastDive_diveNumber(void); | 219 uint16_t logbook_lastDive_diveNumber(void); |
220 uint16_t logbook_fillDummySampleBuffer(uint16_t diveMinutes, uint8_t diveSeconds, uint16_t maxDepth, uint8_t lastDecostop_m, int16_t minTemp); | |
221 void logbook_readDummySamples(uint8_t* pTarget, uint16_t length); | |
218 | 222 |
219 #endif /* LOGBOOK_H */ | 223 #endif /* LOGBOOK_H */ |