Skip to content

Commit

Permalink
Fix typos (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
wetheredge authored Nov 26, 2022
1 parent b5657e4 commit 25e39c6
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Please remember the issue tracker on github is _not_ for user support. Please a

Issues created without steps to repeat are likely to be closed. E-mail requests for support will go un-answered; All support needs to be public so that other people can read the problems and solutions.

Remember that issues that are due to mis-configuration, wiring or failure to read documentation just takes time away from the developers and can often be solved without developer interaction by other users.
Remember that issues that are due to misconfiguration, wiring or failure to read documentation just takes time away from the developers and can often be solved without developer interaction by other users.

Please search for existing issues *before* creating new ones.

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Changes to the security model used in the latest versions of MacOS X 10.14 (Moja

### Unstable Testing Versions

Unstable testing versions of the lates builds of the Betaflight Blackbox Explorer for most platforms can be downloaded from [here](https://github.com/betaflight/blackbox-log-viewer-nightlies/releases).
Unstable testing versions of the latest builds of the Betaflight Blackbox Explorer for most platforms can be downloaded from [here](https://github.com/betaflight/blackbox-log-viewer-nightlies/releases).

**Be aware that these versions are intended for testing / feedback only, and may be buggy or broken.**

Expand Down Expand Up @@ -116,8 +116,8 @@ yarn start


#### Build or release app for one specific platform
To build or release only for one specific platform you can append the plaform after the `task-name`.
If no platform is provided, only for the platform you are builing from will be build.
To build or release only for one specific platform you can append the platform after the `task-name`.
If no platform is provided, only for the platform you are building from will be build.

* **MacOS X** use `yarn gulp <task-name> --osx64`
* **Linux** use `yarn gulp <task-name> --linux64`
Expand All @@ -128,7 +128,7 @@ If no platform is provided, only for the platform you are builing from will be b
#### macOS DMG installation background image

The release distribution for macOS uses a DMG file to install the application.
The PSD source for the DMG backgound image can be found in the root (`dmg-background.png`). After changing the source, export the image to PNG format in folder `./images/`.
The PSD source for the DMG background image can be found in the root (`dmg-background.png`). After changing the source, export the image to PNG format in folder `./images/`.

## Flight video won't load, or jumpy flight video upon export

Expand Down
2 changes: 1 addition & 1 deletion changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ <h2>2.5.0 - Grids, INAV Header Support and Stick Trails.</h2>
<li>Gyro chart range increased to +/-2000deg/s was a minor calculation error that limited the gyro chart to approx +/-1500deg/s</li>
<li>Header update for Betaflight v3.0; added fields gyro_notch_hz, gyro_notch_q, rc_smooth_interval and "Craft name"</li>
<li>Craft Name is now shown on status bar (if entered in CLI) and also at top of header dialog (Betaflight v3.0 only).</li>
<li>PID Contoller type names on header updated for Betaflight v3.0.</li>
<li>PID Controller type names on header updated for Betaflight v3.0.</li>
<li>Stick Trails; This feature can be turned on from the User Settings dialog, will show a phosphor trail on the stick display that shows the movement of the sticks for the last 500ms.</li>
<li>Add tooltips to primary logger controls.</li>
<li>Thanks to BorisB, Added New Event names for Betaflight Twitch Testing mode.</li>
Expand Down
2 changes: 1 addition & 1 deletion css/header_dialog.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Colums START> */
/* Columns START> */
.cf_column {
min-height: 18px;
margin-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ <h5 class="modal-title-revision"></h5>
<input type="text" step="0.01" min="0" max="999" />
</td>
<td name="feedforwardAveraging" class="bf-only">
<label>Avgerage</label>
<label>Average</label>
<select>
<!~~ list generated here ~~>
</select>
Expand Down
2 changes: 1 addition & 1 deletion js/cache.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

/**
* A FIFO cache to hold key-pair mappings. Its capacity will be at least the intialCapacity
* A FIFO cache to hold key-pair mappings. Its capacity will be at least the initialCapacity
* supplied on creation, which you can increase by increasing the "capacity" property.
*
* One extra element beyond the set capacity will be stored which can be fetched by calling "recycle()".
Expand Down
2 changes: 1 addition & 1 deletion js/datastream.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ var ArrayDataStream;

/**
* Search for the string 'needle' beginning from the current stream position up
* to the end position. Return the offset of the first occurance found.
* to the end position. Return the offset of the first occurrence found.
*
* @param needle
* String to search for
Expand Down
4 changes: 2 additions & 2 deletions js/flightlog_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ var FlightLogParser = function(logData) {
// be an older name which is translated into a current name in the table below

defaultSysConfigExtension = {
abs_control_gain:null, // Aboslute control gain
abs_control_gain:null, // Absolute control gain
anti_gravity_gain:null, // Anti gravity gain
anti_gravity_mode:null, // Anti gravity mode
anti_gravity_threshold:null, // Anti gravity threshold for step mode
Expand Down Expand Up @@ -273,7 +273,7 @@ var FlightLogParser = function(logData) {
rc_smoothing_active_cutoffs:[null,null],// RC Smoothing active cutoffs
rc_smoothing_cutoffs:[null, null], // RC Smoothing input and derivative cutoff
rc_smoothing_filter_type:[null,null], // RC Smoothing input and derivative type
rc_smoothing_rx_average:null, // RC Smoothing rx average readed in ms
rc_smoothing_rx_average:null, // RC Smoothing rx average read in ms
rc_smoothing_debug_axis:null, // Axis recorded in the debug mode of rc_smoothing
dterm_filter_type:null, // D term filtering type (PT1, BIQUAD, PT2, PT3)
dterm_filter2_type:null, // D term 2 filtering type (PT1, BIQUAD, PT2, PT3)
Expand Down
4 changes: 2 additions & 2 deletions js/graph_config_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function GraphConfigurationDialog(dialog, onSave) {
$('select.color-picker', elem).replaceWith(chooseColor(color));


// Ade event when selection changed to retreive the current smoothing settings.
// Add event when selection changed to retrieve the current smoothing settings.
$('select.form-control', elem).change( function() {
var selectedField = {
name: $('select.form-control option:selected', elem).val()
Expand Down Expand Up @@ -314,7 +314,7 @@ function GraphConfigurationDialog(dialog, onSave) {
name: $("select", this).val(),
smoothing: parseInt($("input[name=smoothing]", this).val())*100, // Value 0-100% = 0-10000uS (higher values are more smooth, 30% is typical)
curve: {
power: parseInt($("input[name=power]", this).val())/100.0, // Value 0-100% = 0-1.0 (lower values exagerate center values - expo)
power: parseInt($("input[name=power]", this).val())/100.0, // Value 0-100% = 0-1.0 (lower values exaggerate center values - expo)
outputRange: parseInt($("input[name=scale]", this).val())/100.0 // Value 0-100% = 0-1.0 (higher values > 100% zoom in graph vertically)
},
default: { // These are used to restore configuration if using mousewheel adjustments
Expand Down
2 changes: 1 addition & 1 deletion js/grapher.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ function FlightLogGrapher(flightLog, graphConfig, canvas, stickCanvas, craftCanv
craft3D.resize(craftSize, craftSize);
}

// Positon the craft canvas according to options
// Position the craft canvas according to options
$(craftCanvas).css({
left:Math.max(((canvas.width * parseInt(options.craft.left) / 100.0) - (craftSize / 2)), 0) + "px",
top: Math.max(((canvas.height * parseInt(options.craft.top) / 100.0) - (craftSize / 2)), 0) + "px",
Expand Down
6 changes: 3 additions & 3 deletions js/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var GUI_control = function () {

// name = string
// code = function reference (code to be executed)
// interval = time interval in miliseconds
// interval = time interval in milliseconds
// first = true/false if code should be ran initially before next timer interval hits
GUI_control.prototype.interval_add = function (name, code, interval, first) {
var data = {'name': name, 'timer': null, 'code': code, 'interval': interval, 'fired': 0, 'paused': false};
Expand Down Expand Up @@ -113,7 +113,7 @@ GUI_control.prototype.interval_kill_all = function (keep_array) {

// name = string
// code = function reference (code to be executed)
// timeout = timeout in miliseconds
// timeout = timeout in milliseconds
GUI_control.prototype.timeout_add = function (name, code, timeout) {
var self = this;
var data = {'name': name, 'timer': null, 'timeout': timeout};
Expand Down Expand Up @@ -147,7 +147,7 @@ GUI_control.prototype.timeout_remove = function (name) {
return false;
};

// no input paremeters
// no input parameters
// return = returns timers killed in last call
GUI_control.prototype.timeout_kill_all = function () {
var timers_killed = 0;
Expand Down
2 changes: 1 addition & 1 deletion js/header_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function HeaderDialog(dialog, onSave) {
{bit: 13, group: 'rxMode', mode: 'group', name: 'RX_PARALLEL_PWM', description: 'PWM receiver selected'},
{bit: 14, group: 'rxMode', mode: 'group', name: 'RX_MSP', description: 'Controller over MSP'},
{bit: 15, group: 'other', name: 'RSSI_ADC', description: 'ADC RSSI Monitoring'},
{bit: 16, group: 'other', name: 'LED_STRIP', description: 'Addressible RGB LED strip support'},
{bit: 16, group: 'other', name: 'LED_STRIP', description: 'Addressable RGB LED strip support'},
{bit: 17, group: 'other', name: 'DISPLAY', description: 'OLED Screen Display'},
{bit: 20, group: 'other', name: 'CHANNEL_FORWARDING', description: 'Forward aux channels to servo outputs'},
{bit: 21, group: 'other', name: 'TRANSPONDER', description: 'Race Transponder'},
Expand Down
32 changes: 16 additions & 16 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ function BlackboxLogViewer() {
try {
flightLog = new FlightLog(flightLogDataArray);
} catch (err) {
alert("Sorry, an error occured while trying to open this log:\n\n" + err);
alert("Sorry, an error occurred while trying to open this log:\n\n" + err);
return;
}

Expand Down Expand Up @@ -933,14 +933,14 @@ function BlackboxLogViewer() {
}

// Store to local cache and update Workspace Selector control
function onSwitchWorkspace(newWorkspaces, newAciveId) {
prefs.set('activeWorkspace', newAciveId);
function onSwitchWorkspace(newWorkspaces, newActiveId) {
prefs.set('activeWorkspace', newActiveId);
prefs.set('workspaceGraphConfigs', newWorkspaces);
workspaceSelection.setWorkspaces(newWorkspaces)
workspaceSelection.setActiveWorkspace(newAciveId)
if (flightLog && newWorkspaces[newAciveId] && newWorkspaces[newAciveId].graphConfig) {
newGraphConfig(newWorkspaces[newAciveId].graphConfig);
document.getElementById("legend_title").textContent = newWorkspaces[newAciveId].title
workspaceSelection.setActiveWorkspace(newActiveId)
if (flightLog && newWorkspaces[newActiveId] && newWorkspaces[newActiveId].graphConfig) {
newGraphConfig(newWorkspaces[newActiveId].graphConfig);
document.getElementById("legend_title").textContent = newWorkspaces[newActiveId].title
}
}

Expand Down Expand Up @@ -1285,7 +1285,7 @@ function BlackboxLogViewer() {
}
});

function expandGraphConfig(index) { // Put each of the fields into a seperate graph
function expandGraphConfig(index) { // Put each of the fields into a separate graph

var expandedGraphConfig = [];

Expand Down Expand Up @@ -1491,7 +1491,7 @@ function BlackboxLogViewer() {

if(graph==null && field==null) return false; // no pen specified, just exit

if(graph!=null && field==null) { // save ALL pens withing group
if(graph!=null && field==null) { // save ALL pens within group
for(var i=0; i<graphConfig[parseInt(graph)].fields.length; i++) {
if(graphConfig[parseInt(graph)].fields[i].default==null) {
graphConfig[parseInt(graph)].fields[i].default = [];
Expand Down Expand Up @@ -1524,7 +1524,7 @@ function BlackboxLogViewer() {

if(graph==null && field==null) return false; // no pen specified, just exit

if(graph!=null && field==null) { // restore ALL pens withing group
if(graph!=null && field==null) { // restore ALL pens within group
for(var i=0; i<graphConfig[parseInt(graph)].fields.length; i++) {
if(graphConfig[parseInt(graph)].fields[i].default!=null) {
graphConfig[parseInt(graph)].fields[i].smoothing = graphConfig[parseInt(graph)].fields[i].default.smoothing;
Expand Down Expand Up @@ -1561,7 +1561,7 @@ function BlackboxLogViewer() {
savePenDefaults(graphConfig, graph, field); // only updates defaults if they are not already set

var changedValue = '<h4>Smoothing</h4>';
if(graph!=null && field==null) { // change ALL pens withing group
if(graph!=null && field==null) { // change ALL pens within group
for(var i=0; i<graphConfig[parseInt(graph)].fields.length; i++) {
graphConfig[parseInt(graph)].fields[i].smoothing += ((delta)?-scroll:+scroll);
graphConfig[parseInt(graph)].fields[i].smoothing = constrain(graphConfig[parseInt(graph)].fields[i].smoothing, range.min, range.max);
Expand Down Expand Up @@ -1593,7 +1593,7 @@ function BlackboxLogViewer() {
savePenDefaults(graphConfig, graph, field); // only updates defaults if they are not already set

var changedValue = '<h4>Zoom</h4>';
if(graph!=null && field==null) { // change ALL pens withing group
if(graph!=null && field==null) { // change ALL pens within group
for(var i=0; i<graphConfig[parseInt(graph)].fields.length; i++) {
graphConfig[parseInt(graph)].fields[i].curve.outputRange += ((delta)?-scroll:+scroll);
graphConfig[parseInt(graph)].fields[i].curve.outputRange = constrain(graphConfig[parseInt(graph)].fields[i].curve.outputRange, range.min, range.max);
Expand Down Expand Up @@ -1625,7 +1625,7 @@ function BlackboxLogViewer() {
savePenDefaults(graphConfig, graph, field); // only updates defaults if they are not already set

var changedValue = '<h4>Expo</h4>';
if(graph!=null && field==null) { // change ALL pens withing group
if(graph!=null && field==null) { // change ALL pens within group
for(var i=0; i<graphConfig[parseInt(graph)].fields.length; i++) {
graphConfig[parseInt(graph)].fields[i].curve.power += ((delta)?-scroll:+scroll);
graphConfig[parseInt(graph)].fields[i].curve.power = constrain(graphConfig[parseInt(graph)].fields[i].curve.power, range.min, range.max);
Expand Down Expand Up @@ -1831,7 +1831,7 @@ function BlackboxLogViewer() {
try {
if (!e.altKey) { // Workspaces feature
var id = e.which - 48;
if (!e.shiftKey) { // retreive graph configuration from workspace
if (!e.shiftKey) { // retrieve graph configuration from workspace
if (workspaceGraphConfigs[id] != null) {
onSwitchWorkspace(workspaceGraphConfigs, id)
}
Expand Down Expand Up @@ -2113,15 +2113,15 @@ function BlackboxLogViewer() {
});
}

// Close the dropdowns if not clicking a decendant of the dropdown
// Close the dropdowns if not clicking a descendant of the dropdown
$(document).click(function (e) {
var p = $(e.target).closest(".dropdown");
if (!p.length) {
$(".dropdown").removeClass("open");
}
});

// Boostrap's data API is extremely slow when there are a lot of DOM elements churning, don't use it
// Bootstrap's data API is extremely slow when there are a lot of DOM elements churning, don't use it
$(document).off('.data-api');

window.blackboxLogViewer = new BlackboxLogViewer();
2 changes: 1 addition & 1 deletion js/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ var mouseNotification = {
/**
target is the target element that triggered the mouse notification
x,y are the mouse coordinates (if required)
message is the text to display (supports html endcoding)
message is the text to display (supports html encoding)
delay is how long the message will remain before auto clearing
messageClass is the css class that should be used to draw the box, null for default
align is the position to put the popup to, null means at the mouse position, 'top-left' etc,
Expand Down

0 comments on commit 25e39c6

Please sign in to comment.