Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apssouza22/smart-drone
/ functions
Functions
402 in github.com/apssouza22/smart-drone
⨍
Functions
402
◇
Types & classes
32
↳
Endpoints
2
↓ 65 callers
Method
call
(x, y, myElement)
webserver/static/joystick.js:23
↓ 32 callers
Method
on
(self)
common/soundplayer.py:73
↓ 29 callers
Method
add
(self, info, color=None)
common/info.py:11
↓ 22 callers
Method
get
(self)
common/fps.py:23
↓ 22 callers
Method
load
(self, name, filename)
common/soundplayer.py:51
↓ 22 callers
Method
play
(self, name=None)
common/soundplayer.py:55
↓ 18 callers
Function
abort
()
webserver/static/createjs-lib.js:14102
↓ 16 callers
Method
set_speed
(self, axis, speed)
common/controller.py:111
↓ 12 callers
Function
_interopRequireWildcard
(obj)
webserver/static/webrtc-lib.js:50
↓ 12 callers
Method
get_body_kp
Return the coordinates of a keypoint named 'kp_name', or None if keypoint not detected
gesturecontrol/bodydetector.py:137
↓ 12 callers
Function
inherit
* simple class inheritance * @param {Function} child * @param {Function} base * @param {Object} [properties]
webserver/static/hammer-lib.js:165
↓ 9 callers
Function
distance
Calculate the square of the distance between points A and B
gesturecontrol/posecheck.py:7
↓ 9 callers
Function
toPaddedString
(width, value)
webserver/static/createjs-lib.js:13889
↓ 9 callers
Method
update
(self, frame)
webserver/video.py:16
↓ 8 callers
Method
draw
(self, frame)
common/info.py:15
↓ 8 callers
Function
each
* walk objects and arrays * @param {Object} obj * @param {Function} iterator * @param {Object} context
webserver/static/hammer-lib.js:52
↓ 8 callers
Function
lex
()
webserver/static/createjs-lib.js:14110
↓ 8 callers
Function
remap
(obj, a, b)
webserver/static/webrtc-lib.js:1074
↓ 7 callers
Function
inStr
* small indexOf wrapper * @param {String} str * @param {String} find * @returns {Boolean} found
webserver/static/hammer-lib.js:261
↓ 6 callers
Function
inArray
* find if a array contains the object using indexOf or a simple polyFill * @param {Array} src * @param {String} find * @param {String}
webserver/static/hammer-lib.js:281
↓ 6 callers
Function
invokeArrayArg
* if the argument is an array, we want to execute the fn on each entry * if it aint an array we don't want to do a thing. * this is used by
webserver/static/hammer-lib.js:38
↓ 6 callers
Method
json
(self, data, status: int = 200)
webserver/controllers.py:15
↓ 6 callers
Method
start
()
webserver/static/webrtc.js:47
↓ 6 callers
Method
stop
()
webserver/static/webrtc.js:67
↓ 5 callers
Function
oldname_
(prefix, name)
webserver/static/webrtc-lib.js:1030
↓ 5 callers
Method
update
(self)
common/fps.py:13
↓ 4 callers
Function
_defineProperty
(obj, key, value)
webserver/static/webrtc-lib.js:234
↓ 4 callers
Method
add_listener
(self, fn, event)
common/pygamescreen.py:45
↓ 4 callers
Function
emit
(event)
webserver/static/hammer-lib.js:1526
↓ 4 callers
Function
getDay
(year, month)
webserver/static/createjs-lib.js:13753
↓ 4 callers
Function
getDistance
* calculate the absolute distance between two points * @param {Object} p1 {x, y} * @param {Object} p2 {x, y} * @param {Array} [props] c
webserver/static/hammer-lib.js:729
↓ 4 callers
Function
getRecognizerByNameIfManager
* get a recognizer by name if it is bound to a manager * @param {Recognizer|String} otherRecognizer * @param {Recognizer} recognizer *
webserver/static/hammer-lib.js:1672
↓ 4 callers
Method
get_finger_counts
(hand_kps, right=False)
gesturecontrol/posecheck.py:150
↓ 4 callers
Function
has
(name)
webserver/static/createjs-lib.js:13604
↓ 4 callers
Method
land
(self)
common/drone.py:55
↓ 4 callers
Method
off
(self)
common/soundplayer.py:77
↓ 4 callers
Method
send
(self, message: str)
webserver/websocket.py:19
↓ 4 callers
Function
splitStr
* split string on whitespace * @param {String} str * @returns {Array} words
webserver/static/hammer-lib.js:270
↓ 4 callers
Method
test
(self, request)
webserver/controllers.py:25
↓ 4 callers
Function
toArray
* convert array-like objects to real arrays * @param {Object} obj * @returns {Array}
webserver/static/hammer-lib.js:301
↓ 3 callers
Function
addEventListeners
* addEventListener with multiple events at once * @param {EventTarget} target * @param {String} types * @param {Function} handler
webserver/static/hammer-lib.js:220
↓ 3 callers
Function
boolOrFn
* let a boolean value also be a function that must return a boolean * this first item in args will be used as the context * @param {Boolean|
webserver/static/hammer-lib.js:197
↓ 3 callers
Function
constraintsToChrome_
(c)
webserver/static/webrtc-lib.js:1017
↓ 3 callers
Method
define_command
Add a (code, command, args) to the dictionary of the command 'command' is a python function kwargs is a optionnal
common/cameramorse.py:53
↓ 3 callers
Method
draw_landmarks
(self, img, landmarks, connections)
common/mediapipewrapper.py:32
↓ 3 callers
Method
eval
Analyze the frame 'frame', detect potential 'dot' or 'dash', and if so, check if we get a defined code Returns:
common/cameramorse.py:77
↓ 3 callers
Function
extractVersion
* Extract browser version out of the provided user agent string. * * @param {!string} uastring userAgent string. * @param {
webserver/static/webrtc-lib.js:2437
↓ 3 callers
Function
getAngle
* calculate the angle between two coordinates * @param {Object} p1 * @param {Object} p2 * @param {Array} [props] containing x and y key
webserver/static/hammer-lib.js:746
↓ 3 callers
Function
get_distance
Get distance between 2 position.
common/utils.py:4
↓ 3 callers
Method
load_background
(self, img=None)
common/pygamescreen.py:21
↓ 3 callers
Function
prefixed
* get the prefixed property * @param {Object} obj * @param {String} property * @returns {String|Undefined} prefixed
webserver/static/hammer-lib.js:345
↓ 3 callers
Method
process
Process event loop
common/controller.py:115
↓ 3 callers
Function
removeEventListeners
* removeEventListener with multiple events at once * @param {EventTarget} target * @param {String} types * @param {Function} handler
webserver/static/hammer-lib.js:232
↓ 3 callers
Function
replaceInternalStreamId
(pc, description)
webserver/static/webrtc-lib.js:785
↓ 3 callers
Function
setTimeoutContext
* set a timeout with a given scope * @param {Function} fn * @param {Number} timeout * @param {Object} context * @returns {number}
webserver/static/hammer-lib.js:25
↓ 3 callers
Method
take_picture
Tell drone to take picture, image sent to file handler
common/controller.py:225
↓ 3 callers
Method
toggle_tracking
If tracking is None, toggle value of self.tracking Else self.tracking take the same value as tracking
common/controller.py:266
↓ 2 callers
Function
bindFn
* simple function bind * @param {Function} fn * @param {Object} context * @returns {Function}
webserver/static/hammer-lib.js:184
↓ 2 callers
Method
check_command
(self)
common/cameramorse.py:71
↓ 2 callers
Function
createJoystick
(myElementId)
webserver/static/joystick.js:98
↓ 2 callers
Function
deprecate
* wrap a method with a deprecation warning and stack trace * @param {Function} method * @param {String} name * @param {String} message
webserver/static/hammer-lib.js:81
↓ 2 callers
Function
directionStr
* direction cons to string * @param {Const} direction * @returns {String}
webserver/static/hammer-lib.js:1653
↓ 2 callers
Function
fixChromeStats_
(response)
webserver/static/webrtc-lib.js:443
↓ 2 callers
Function
getCenter
* get the center of all the pointers * @param {Array} pointers * @return {Object} center contains `x` and `y` properties
webserver/static/hammer-lib.js:667
↓ 2 callers
Function
getDirection
* get the direction between two points * @param {Number} x * @param {Number} y * @return {Number} direction
webserver/static/hammer-lib.js:711
↓ 2 callers
Function
getVelocity
* calculate the velocity between two points. unit is in px per ms. * @param {Number} deltaTime * @param {Number} x * @param {Number} y
webserver/static/hammer-lib.js:698
↓ 2 callers
Function
getWindowForElement
* get the window object of an element * @param {HTMLElement} element * @returns {DocumentView|Window}
webserver/static/hammer-lib.js:376
↓ 2 callers
Function
hasParent
* find if a node is in the given parent * @method hasParent * @param {HTMLElement} node * @param {HTMLElement} parent * @return {B
webserver/static/hammer-lib.js:245
↓ 2 callers
Function
ifUndefined
* use the val2 when val1 is undefined * @param {*} val1 * @param {*} val2 * @returns {*}
webserver/static/hammer-lib.js:210
↓ 2 callers
Function
isObject
* Checks if something is an object. * * @param {*} val The something you want to check. * @return true if val is an object,
webserver/static/webrtc-lib.js:2602
↓ 2 callers
Function
makeMapStats
(stats)
webserver/static/webrtc-lib.js:465
↓ 2 callers
Function
quote
(value)
webserver/static/createjs-lib.js:13900
↓ 2 callers
Method
read
(self)
webserver/video.py:11
↓ 2 callers
Function
runInContext
(context, exports)
webserver/static/createjs-lib.js:13565
↓ 2 callers
Function
save_path_plan
Compute the waypoints (distance and angle).
pathplan/pathplanning.py:8
↓ 2 callers
Method
send_drone_command
(self)
common/controller.py:210
↓ 2 callers
Function
setup_server_runner
(video: VideoSource, drone_control: PyGameScreen)
webserver/server.py:28
↓ 2 callers
Function
shimConstraints_
(constraints, func)
webserver/static/webrtc-lib.js:1068
↓ 2 callers
Function
shimError_
(e)
webserver/static/webrtc-lib.js:1128
↓ 2 callers
Function
shimSenderWithDtmf
(pc, track)
webserver/static/webrtc-lib.js:318
↓ 2 callers
Function
simpleCloneInputData
* create a simple clone from the input used for storage of firstInput and firstMultiple * @param {Object} input * @returns {Object} clonedIn
webserver/static/hammer-lib.js:640
↓ 2 callers
Method
start
(self)
common/drone.py:19
↓ 2 callers
Function
stateStr
* get a usable string, used as event postfix * @param {Const} state * @returns {String} state
webserver/static/hammer-lib.js:1635
↓ 2 callers
Method
takeoff
(self)
common/drone.py:49
↓ 2 callers
Function
toggleCssProps
* add/remove the css properties as defined in manager.options.cssProps * @param {Manager} manager * @param {Boolean} add
webserver/static/hammer-lib.js:2543
↓ 2 callers
Method
toggle_tracking
(controller, log)
gesturecontrol/posecommand.py:76
↓ 2 callers
Function
uniqueArray
* unique array with objects based on a key (like 'id') or just by the array's value * @param {Array} src [{id:1},{id:2},{id:1}] * @param {St
webserver/static/hammer-lib.js:312
↓ 2 callers
Function
update
(source, property, callback)
webserver/static/createjs-lib.js:14351
↓ 2 callers
Function
vertical_angle
Calculate the angle between segment(A,B) and vertical axe
gesturecontrol/posecheck.py:24
↓ 2 callers
Function
walk
(source, property, callback)
webserver/static/createjs-lib.js:14363
↓ 2 callers
Function
wrapDcSend
(dc, pc)
webserver/static/webrtc-lib.js:1430
↓ 1 callers
Method
__init__
(self, freq=440, debug=False)
common/soundplayer.py:67
↓ 1 callers
Method
__init__
(self)
webserver/video.py:7
↓ 1 callers
Method
__init__
(self, control: PyGameScreen)
webserver/controllers.py:20
↓ 1 callers
Function
_interopRequireDefault
(obj)
webserver/static/webrtc-lib.js:1222
↓ 1 callers
Function
addListeners
()
webserver/static/main.js:20
↓ 1 callers
Method
add_class_routes
(self, instance: Any)
webserver/routers.py:25
↓ 1 callers
Method
add_listeners
(self)
common/pygamescreen.py:53
↓ 1 callers
Function
calculateCoords
(angle, distance)
webserver/static/joystick.js:119
↓ 1 callers
Method
calculate_current_position
(self)
common/drone.py:105
next →
1–100 of 402, ranked by callers