This repository was archived by the owner on Apr 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathshots.py
More file actions
executable file
·40 lines (36 loc) · 1.4 KB
/
shots.py
File metadata and controls
executable file
·40 lines (36 loc) · 1.4 KB
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
#!/usr/bin/env python
# definitions of shots
# NOTE: Make sure this stays in sync with the app's definitions! Those are in iSolo/UI/ShotLibrary.swift
APP_SHOT_NONE = -1
APP_SHOT_SELFIE = 0
APP_SHOT_ORBIT = 1
APP_SHOT_CABLECAM = 2
APP_SHOT_ZIPLINE = 3
APP_SHOT_RECORD = 4
APP_SHOT_FOLLOW = 5
APP_SHOT_MULTIPOINT = 6
APP_SHOT_PANO = 7
APP_SHOT_REWIND = 8
APP_SHOT_TRANSECT = 9
APP_SHOT_RTL = 10
# NULL terminated for sending to Artoo
SHOT_NAMES = {
APP_SHOT_NONE : "FLY\0",
APP_SHOT_SELFIE : "Selfie\0",
APP_SHOT_ORBIT : "Orbit\0",
APP_SHOT_CABLECAM : "Cable Cam\0",
APP_SHOT_ZIPLINE : "Zip Line\0",
APP_SHOT_FOLLOW : "Follow\0",
APP_SHOT_MULTIPOINT: "Cable Cam\0",
APP_SHOT_PANO: "Pano\0",
APP_SHOT_REWIND: "Rewind\0",
APP_SHOT_TRANSECT: "Transect\0",
APP_SHOT_RTL: "Return Home\0",
}
CAN_START_BEFORE_ARMING = []
CAN_START_BEFORE_EKF = []
CAN_START_FROM_ARTOO = [APP_SHOT_ORBIT, APP_SHOT_CABLECAM, APP_SHOT_MULTIPOINT, APP_SHOT_PANO, APP_SHOT_ZIPLINE, APP_SHOT_REWIND, APP_SHOT_TRANSECT, APP_SHOT_RTL]
ALWAYS_NEEDS_APP_CONNECTION = [APP_SHOT_CABLECAM, APP_SHOT_SELFIE, APP_SHOT_ORBIT, APP_SHOT_FOLLOW, APP_SHOT_MULTIPOINT, APP_SHOT_PANO, APP_SHOT_ZIPLINE]
ALWAYS_NEEDS_RC_CONNECTION = [APP_SHOT_CABLECAM, APP_SHOT_SELFIE, APP_SHOT_ORBIT, APP_SHOT_FOLLOW, APP_SHOT_MULTIPOINT, APP_SHOT_PANO, APP_SHOT_ZIPLINE, APP_SHOT_TRANSECT]
SHOT_MODES = ['AUTO', 'GUIDED']
SITE_SCAN_SHOTS = [] # XXX remove