Exploit databaseDownload repository ZIP
GH-1615919550439d2f818f9bf6b428941b
8081knights/knights-8081-power-play-2022
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files86
8081knights/knights-8081-power-play-2022Revision 5dcd00c2546a
- ↑..Parent directory
- images/
- samples/
- FtcBlocksProjects_common.js
- FtcBlocks_common.js
- acceleration.js
- acceleration_sensor.js
- analog_input.js
- analog_output.js
- android_accelerometer.js
- android_gyroscope.js
- android_orientation.js
- android_sound_pool.js
- android_text_to_speech.js
- angular_velocity.js
- bno055imu.js
- bno055imu_parameters.js
- clipboard_util.js
- color.js
- color_range_sensor.js
- color_sensor.js
- compass_sensor.js
- cr_servo.js
- dbg_log.js
- dc_motor.js
- digital_channel.js
- distance_sensor.js
- elapsed_time.js
- elapsed_time2.js
- file_manager.js
- gamepad.js
- gyro_sensor.js
- hardware_util.js
- images.css
- ir_seeker_sensor.js
- led.js
- led_effect.js
- light_sensor.js
- linear_op_mode.js
- locale.js
- magnetic_flux.js
- matrix_f.js
- misc.js
- mr_i2c_compass_sensor.js
- mr_i2c_range_sensor.js
- navigation.js
- open_gl_matrix.js
- optical_distance_sensor.js
- orientation.js
- pidf_coefficients.js
- position.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/build/intermediates/assets/debug/mergeDebugAssets/blocks/tfod_rover_ruckus.js
JavaScript · 7,651 bytes/**
* @license
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview FTC robot blocks related to TensorFlow Object Detection for Rover Ruckus (2018-2019)
* @author lizlooney@google.com (Liz Looney)
*/
// The following are generated dynamically in HardwareUtil.fetchJavaScriptForHardware():
// createTfodRoverRuckusLabelDropdown
// TFOD_ROVER_RUCKUS_LABEL_TOOLTIPS
// tfodRoverRuckusIdentifierForJavaScript
// vuforiaRoverRuckusIdentifierForJavaScript
// The following are defined in vars.js:
// createNonEditableField
// functionColor
// getPropertyColor
Blockly.Blocks['tfodRoverRuckus_initialize'] = {
init: function() {
this.appendDummyInput()
.appendField('call')
.appendField(createNonEditableField('TensorFlowObjectDetectionRoverRuckus'))
.appendField('.')
.appendField(createNonEditableField('initialize'));
this.appendValueInput('MINIMUM_CONFIDENCE').setCheck('Number')
.appendField('minimumConfidence')
.setAlign(Blockly.ALIGN_RIGHT);
this.appendValueInput('USE_OBJECT_TRACKER').setCheck('Boolean')
.appendField('useObjectTracker')
.setAlign(Blockly.ALIGN_RIGHT);
this.appendValueInput('ENABLE_CAMERA_MONITORING').setCheck('Boolean')
.appendField('enableCameraMonitoring')
.setAlign(Blockly.ALIGN_RIGHT);
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setColour(functionColor);
this.setTooltip('Initialize TensorFlow Object Detection for Rover Ruckus.');
this.getFtcJavaInputType = function(inputName) {
switch (inputName) {
case 'MINIMUM_CONFIDENCE':
return 'float';
}
return '';
};
}
};
Blockly.JavaScript['tfodRoverRuckus_initialize'] = function(block) {
return tfod_initialize_JavaScript(block, tfodRoverRuckusIdentifierForJavaScript,
vuforiaRoverRuckusIdentifierForJavaScript);
};
Blockly.FtcJava['tfodRoverRuckus_initialize'] = function(block) {
return tfod_initialize_FtcJava(block, 'TfodRoverRuckus', 'VuforiaRoverRuckus');
};
Blockly.Blocks['tfodRoverRuckus_activate'] = {
init: function() {
this.appendDummyInput()
.appendField('call')
.appendField(createNonEditableField('TensorFlowObjectDetectionRoverRuckus'))
.appendField('.')
.appendField(createNonEditableField('activate'));
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setColour(functionColor);
this.setTooltip('Activates object detection.');
}
};
Blockly.JavaScript['tfodRoverRuckus_activate'] = function(block) {
return tfod_activate_JavaScript(block, tfodRoverRuckusIdentifierForJavaScript);
};
Blockly.FtcJava['tfodRoverRuckus_activate'] = function(block) {
return tfod_activate_FtcJava(block, 'TfodRoverRuckus');
};
Blockly.Blocks['tfodRoverRuckus_deactivate'] = {
init: function() {
this.appendDummyInput()
.appendField('call')
.appendField(createNonEditableField('TensorFlowObjectDetectionRoverRuckus'))
.appendField('.')
.appendField(createNonEditableField('deactivate'));
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setColour(functionColor);
this.setTooltip('Deactivates object detection.');
}
};
Blockly.JavaScript['tfodRoverRuckus_deactivate'] = function(block) {
return tfod_deactivate_JavaScript(block, tfodRoverRuckusIdentifierForJavaScript);
};
Blockly.FtcJava['tfodRoverRuckus_deactivate'] = function(block) {
return tfod_deactivate_FtcJava(block, 'TfodRoverRuckus');
};
Blockly.Blocks['tfodRoverRuckus_setClippingMargins'] = {
init: function() {
this.appendDummyInput()
.appendField('call')
.appendField(createNonEditableField('TensorFlowObjectDetectionRoverRuckus'))
.appendField('.')
.appendField(createNonEditableField('setClippingMargins'));
this.appendValueInput('LEFT').setCheck('Number')
.appendField('left')
.setAlign(Blockly.ALIGN_RIGHT);
this.appendValueInput('TOP').setCheck('Number')
.appendField('top')
.setAlign(Blockly.ALIGN_RIGHT);
this.appendValueInput('RIGHT').setCheck('Number')
.appendField('right')
.setAlign(Blockly.ALIGN_RIGHT);
this.appendValueInput('BOTTOM').setCheck('Number')
.appendField('bottom')
.setAlign(Blockly.ALIGN_RIGHT);
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setColour(functionColor);
this.setTooltip('Sets the number of pixels to obscure on the left, top, right, and bottom ' +
'edges of each image passed to the TensorFlow object detector. The size of the images ' +
'are not changed, but the pixels in the margins are colored black.');
this.getFtcJavaInputType = function(inputName) {
switch (inputName) {
case 'LEFT':
case 'TOP':
case 'BOTTOM':
case 'RIGHT':
return 'int';
}
return '';
};
}
};
Blockly.JavaScript['tfodRoverRuckus_setClippingMargins'] = function(block) {
return tfod_setClippingMargins_JavaScript(block, tfodRoverRuckusIdentifierForJavaScript);
};
Blockly.FtcJava['tfodRoverRuckus_setClippingMargins'] = function(block) {
return tfod_setClippingMargins_FtcJava(block, 'TfodRoverRuckus');
};
Blockly.Blocks['tfodRoverRuckus_getRecognitions'] = {
init: function() {
this.setOutput(true, 'Array');
this.appendDummyInput()
.appendField('call')
.appendField(createNonEditableField('TensorFlowObjectDetectionRoverRuckus'))
.appendField('.')
.appendField(createNonEditableField('getRecognitions'));
this.setColour(functionColor);
this.setTooltip('Returns a List of the current recognitions.');
this.getFtcJavaOutputType = function() {
return 'List<Recognition>';
};
}
};
Blockly.JavaScript['tfodRoverRuckus_getRecognitions'] = function(block) {
return tfod_getRecognitions_JavaScript(block, tfodRoverRuckusIdentifierForJavaScript);
};
Blockly.FtcJava['tfodRoverRuckus_getRecognitions'] = function(block) {
return tfod_getRecognitions_FtcJava(block, 'TfodRoverRuckus');
};
Blockly.Blocks['tfodRoverRuckus_typedEnum_label'] = {
init: function() {
this.setOutput(true, 'String');
this.appendDummyInput()
.appendField(createNonEditableField('Label'))
.appendField('.')
.appendField(createTfodRoverRuckusLabelDropdown(), 'LABEL');
this.setColour(getPropertyColor);
// Assign 'this' to a variable for use in the tooltip closure below.
var thisBlock = this;
var TOOLTIPS = TFOD_ROVER_RUCKUS_LABEL_TOOLTIPS;
this.setTooltip(function() {
var key = thisBlock.getFieldValue('LABEL');
for (var i = 0; i < TOOLTIPS.length; i++) {
if (TOOLTIPS[i][0] == key) {
return TOOLTIPS[i][1];
}
}
return '';
});
}
};
Blockly.JavaScript['tfodRoverRuckus_typedEnum_label'] = function(block) {
return tfod_typedEnum_label_JavaScript(block);
};
Blockly.FtcJava['tfodRoverRuckus_typedEnum_label'] = function(block) {
return tfod_typedEnum_label_FtcJava(block);
};