Skip to main content

Crate flighthook

Crate flighthook 

Source

Structs§

ActorStatusResponse
Per-actor status within the status response. Also used as the cached per-actor state in the web layer and UI.
BallFlight
ClubData
ClubInfo
Club selection.
FlighthookConfig
Top-level persisted config. All fields are in user-friendly units (inches, feet, 0-100 percent) so the TOML file is hand-editable.
FlighthookMessage
A single event on the unified bus.
GameStateSnapshot
Immutable snapshot of the current global state.
GsProSection
A GSPro integration instance.
MevoSection
A Mevo/Mevo+ device instance.
MockMonitorSection
A mock launch monitor instance.
ModeRequest
POST /api/mode request body.
PlayerInfo
Player info (handedness).
PostSettingsResponse
POST /api/settings response.
RandomClubSection
A random club cycling integration instance.
ShotAccumulator
Collects shot lifecycle events (BallFlight, ClubPath) and produces a complete ShotData on ShotFinished.
ShotAggregator
High-level shot collector that manages multiple in-flight shots.
ShotData
ShotKey
Globally unique shot identifier. Generated once by the producer at trigger time, then carried on every event in the shot lifecycle.
StatusResponse
GET /api/status response.
WebserverSection

Enums§

ActorStatus
Generic actor lifecycle status.
AlertLevel
Severity level for alert messages.
Club
Golf club.
ConfigAction
The specific config mutation to apply.
Distance
A distance value with unit. Serializes as a suffix string: "1.5in", "9ft", "3m", "30cm", "100yd".
EstimatedMode
Controls whether estimated ball flights are forwarded to the integration. Estimated shots may lack full flight data but can still be usable in-game. Common for short chips and marginal shots.
FlighthookEvent
The typed event payload carried by a FlighthookMessage.
RawPayload
Raw wire data attached to a bus message.
ShotDetectionMode
UnitSystem
Unit system for display. Imperial = yards/feet/inches/mph, Metric = meters/m/s.
Velocity
A velocity value with unit. Serializes as a suffix string: "67.2mph", "30.0mps", "108.0kph", "100.0fps".

Functions§

default_chipping_clubs
default_putting_clubs