source: git/src/commands.h @ 3ca8ad2

debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since 3ca8ad2 was 37d6b84, checked in by Olly Betts <olly@…>, 3 years ago

cavern: Report results of each *declination auto

For each *declination auto command cavern now reports an "info"
message showing the range of calculated declination values and
the dates at which the ends of the range were obtained, and also
the grid convergence (which doesn't vary with time).

Fixes #92, reported by Rob Eavis.

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[421b7d2]1/* commands.h
[d1b1380]2 * Header file for code for directives
[37d6b84]3 * Copyright (C) 1994-2022 Olly Betts
[846746e]4 *
[89231c4]5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
[846746e]9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
[89231c4]12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
[846746e]14 *
[89231c4]15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
[ecbc6c18]17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
[d1b1380]18 */
19
[85c0078]20int get_length_units(int quantity);
21int get_angle_units(int quantity);
22
23extern const real factor_tab[];
24extern const int units_to_msgno[];
25
26#define get_units_factor(U) (factor_tab[(U)])
27#define get_units_string(U) (msg(units_to_msgno[(U)]))
28
[a9f5117]29void handle_command(void);
30void default_all(settings *s);
[d1b1380]31
[be97baf]32void default_units(settings *s);
33void default_calib(settings *s);
34
[da9163b]35void pop_settings(void);
[37d6b84]36void report_declination(settings *p);
[647407d]37
[b5a3219]38void copy_on_write_meta(settings *s);
39
[ee1ec59]40extern char *buffer;
[a9f5117]41void get_token(void);
[f6bdb01]42void get_token_no_blanks(void);
[d1b1380]43
[63c6b49]44typedef struct { const char *sz; int tok; } sztok;
[a9f5117]45int match_tok(const sztok *tab, int tab_size);
[d1b1380]46
[63c6b49]47#define TABSIZE(T) ((sizeof(T) / sizeof(sztok)) - 1)
Note: See TracBrowser for help on using the repository browser.