annotate Discovery/Inc/configuration.h @ 503:734f7ad46bca

Bugfix display of disabled screen. It is possible to select a screen as default which is in parallel disabled in the selection view. To avoid this the enable / disable state is not also checked when entering dive mode. The check function was depending on an ACTION. The functionality has been changed to allow the function call without ACTION. Changed setting of compass circle position from constant position to variable This was needed to reuse the same function in several views with different compass position Added new views Navigation and Depth data Both views were basically already available but the idea behind the layout is to combine all information needed for navigation dives (compass + timer) in one view. The classic maxdepth view just showed the maxdepth with a black box on the right side. this box is now used for display of average depth (shown in classic view Stopwatch) Minor changes in compass paint function to improve code readability Use same Y offset for all views While switching across the views some number were shown ~20 pixel higher than others. This was caused by the usage of the line selection which works for some fonts but not for all => set linenumber to 0 for all views
author Ideenmodellierer
date Mon, 24 Aug 2020 19:53:27 +0200
parents 668471c5f410
children 06b21f1e47a5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
446
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
1 ///////////////////////////////////////////////////////////////////////////////
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
2 /// -*- coding: UTF-8 -*-
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
3 ///
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
4 /// \file Discovery/Inc/configuration.h
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
5 /// \brief Header file for variant specific firmware adaptations at compile time
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
6 /// \author heinrichs weikamp gmbh
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
7 /// \date 29-February-2020
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
8 ///
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
9 /// $Id$
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
10 ///////////////////////////////////////////////////////////////////////////////
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
11 /// \par Copyright (c) 2014-2020 Heinrichs Weikamp gmbh
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
12 ///
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
13 /// This program is free software: you can redistribute it and/or modify
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
14 /// it under the terms of the GNU General Public License as published by
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
15 /// the Free Software Foundation, either version 3 of the License, or
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
16 /// (at your option) any later version.
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
17 ///
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
18 /// This program is distributed in the hope that it will be useful,
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
21 /// GNU General Public License for more details.
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
22 ///
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
23 /// You should have received a copy of the GNU General Public License
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>.
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
25 //////////////////////////////////////////////////////////////////////////////
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
26
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
27
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
28 #ifndef CONFIGURATION_HEADER
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
29 #define CONFIGURATION_HEADER
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
30
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
31 /* Enable this to make the simulator write a logbook entry */
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
32 /* #define SIM_WRITES_LOGBOOK 1 */
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
33
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
34 /* Enable this for support of optical bottle pressure interface */
450
b2f8a39c11ea Added new compile switches for variants:
ideenmodellierer
parents: 446
diff changeset
35 /* #define ENABLE_BOTTLE_SENSOR */
b2f8a39c11ea Added new compile switches for variants:
ideenmodellierer
parents: 446
diff changeset
36
b2f8a39c11ea Added new compile switches for variants:
ideenmodellierer
parents: 446
diff changeset
37 /* Enable this to show voltage in parallel to charge state */
b2f8a39c11ea Added new compile switches for variants:
ideenmodellierer
parents: 446
diff changeset
38 /* #define ALWAYS_SHOW_VOLTAGE */
b2f8a39c11ea Added new compile switches for variants:
ideenmodellierer
parents: 446
diff changeset
39
b2f8a39c11ea Added new compile switches for variants:
ideenmodellierer
parents: 446
diff changeset
40 /* Enable this to skip coplete scan of dive log during startup */
b2f8a39c11ea Added new compile switches for variants:
ideenmodellierer
parents: 446
diff changeset
41 /* #define TRUST_LOG_CONSISTENCY */
b2f8a39c11ea Added new compile switches for variants:
ideenmodellierer
parents: 446
diff changeset
42
464
05c5c3d10902 Added compile switch to handle additional data during raw header request:
ideenmodellierer
parents: 450
diff changeset
43 /* Enable this to transfer additional data list last dive ID and last sample index during raw data requests */
05c5c3d10902 Added compile switch to handle additional data during raw header request:
ideenmodellierer
parents: 450
diff changeset
44 /* define SEND_DATA_DETAILS */
05c5c3d10902 Added compile switch to handle additional data during raw header request:
ideenmodellierer
parents: 450
diff changeset
45
468
aa1d71875e25 Moved and deactivated analyse sample buffer switch:
ideenmodellierer
parents: 464
diff changeset
46 /* Enable to activate a menu item in reset menu which provide sample ring analysis / repair functionality */
aa1d71875e25 Moved and deactivated analyse sample buffer switch:
ideenmodellierer
parents: 464
diff changeset
47 /* #define ENABLE_ANALYSE_SAMPLES */
aa1d71875e25 Moved and deactivated analyse sample buffer switch:
ideenmodellierer
parents: 464
diff changeset
48
492
4ce932235578 Added compiler switch for existing debug view parameter
Ideenmodellierer
parents: 468
diff changeset
49 /* Enable to have access to the debug view options (turn on / off via menu instead of compile switch) */
4ce932235578 Added compiler switch for existing debug view parameter
Ideenmodellierer
parents: 468
diff changeset
50 /* #define HAVE_DEBUG_VIEW */
4ce932235578 Added compiler switch for existing debug view parameter
Ideenmodellierer
parents: 468
diff changeset
51
499
668471c5f410 Added compile switch to enable / disable new BigFont layout
Ideenmodellierer
parents: 492
diff changeset
52 /* Enable to add new BIG font layout to option menu */
668471c5f410 Added compile switch to enable / disable new BigFont layout
Ideenmodellierer
parents: 492
diff changeset
53 #define ENABLE_BIGFONT_VX
446
f1257a32f2d4 Introduced configuration header for variant managment:
ideenmodellierer
parents:
diff changeset
54 #endif