Skip to content

Instantly share code, notes, and snippets.

@trevphil
Last active June 3, 2019 12:50
Show Gist options
  • Save trevphil/2c0fafbb651b778a73d6c7d3e395b927 to your computer and use it in GitHub Desktop.
Save trevphil/2c0fafbb651b778a73d6c7d3e395b927 to your computer and use it in GitHub Desktop.
Parameters
enum PathType: String, CaseIterable {
case outAndBack, loop
}
enum Distance: Double, CaseIterable {
case short = 1000 // in meters
case medium = 5000
case long = 15000
}
enum Speed: Double, CaseIterable {
case slow = 2.40 // in meters per sec
case medium = 3.16
case fast = 4.47
}
enum SignalStrength: String, CaseIterable {
case weak, varied, strong
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment