Skip to content

Commit

Permalink
Add guide for lightning strike distance tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Nov 29, 2023
1 parent 8ed0b2e commit bd2411a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ object Guides {
null,
R.raw.guide_tool_clouds
),
UserGuide(
context.getString(R.string.tool_lightning_title),
null,
R.raw.guide_tool_lightning_stike_distance
),
if (Sensors.hasBarometer(context)) UserGuide(
context.getString(R.string.guide_barometer_calibration_title),
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ object Tools {
R.drawable.ic_torch_on,
R.id.action_action_experimental_tools_to_fragmentToolLightning,
ToolCategory.Weather,
context.getString(R.string.tool_lightning_description)
context.getString(R.string.tool_lightning_description),
guideId = R.raw.guide_tool_lightning_stike_distance
),
if (prefs.isAugmentedRealityEnabled && hasCompass) Tool(
25,
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/raw/guide_tool_lightning_stike_distance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
The Lightning Strike Distance tool calculates how far away a lightning strike is. This helps you know if a storm is approaching or moving away.

## Measuring Distance
To use:

1. Press the lightning icon immediately after seeing lightning.
2. Press the thunder icon immediately after hearing thunder.
3. The distance to the strike will display at the top of the screen.

If lightning is close enough to be dangerous, you will see a warning.

The bottom of the screen shows the distance to the most recent strike. If the current strike distance is less than the last, the storm is likely approaching. If more, the storm is likely moving away.

0 comments on commit bd2411a

Please sign in to comment.