1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2026 Vallés Puig, Ramon
//! # Search Options and Constants
//!
//! ## Scientific scope
//!
//! Numerical controls for the bracket‑and‑refine algorithm used to locate
//! altitude crossings and culminations. The default scan step (~10 min)
//! and refinement tolerance (~1 µs ≈ 86 µs in time) are sized for fast
//! diurnal motion of solar‑system bodies; very slow targets (Moon close
//! to standstill, deep‑sky tracking around culmination) may require a
//! coarser scan step or finer tolerance to avoid missed brackets or
//! spurious extrema.
//!
//! ## Technical scope
//!
//! Defines [`SearchOpts`], its [`Default`] impl, and the crate‑internal
//! step constants (`DEFAULT_SCAN_STEP`, `EXTREMA_SCAN_STEP`). No event
//! search is performed here; this module only carries configuration that
//! is consumed by [`super::events`] and [`super::provider`].
//!
//! ## References
//! None.
use crate*;
// ---------------------------------------------------------------------------
// Search Options
// ---------------------------------------------------------------------------
/// Options for controlling search precision and strategy.
// ---------------------------------------------------------------------------
// Constants
// ---------------------------------------------------------------------------
/// Default scan step: 10 minutes in days.
pub const DEFAULT_SCAN_STEP: Days = new.;
/// Extrema scan step: 20 minutes in days (for culmination detection).
pub const EXTREMA_SCAN_STEP: Days = new.;