mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Merge remote-tracking branch 'upstream/development' into blackbox-flash
This commit is contained in:
commit
7fb9f43b00
35 changed files with 1774 additions and 4748 deletions
|
@ -1,14 +1,17 @@
|
||||||
<span>2015.01.19 - 0.61.0 - cleanflight</span>
|
<span>2015.02.03 - 0.61.0 - cleanflight</span>
|
||||||
<p>
|
<p>
|
||||||
- Support changing PID controller - there new PID controllers in 1.7.0 firmware.<br />
|
- Support changing PID controller - there new PID controllers in 1.7.0 firmware.<br />
|
||||||
- Support for LED thrust ring.<br />
|
- Support for LED thrust ring.<br />
|
||||||
- Support for LED colors.<br />
|
- Support for LED colors.<br />
|
||||||
- Support for displaying sonar sensor reading on the sensors tab.<br />
|
- Support for displaying sonar sensor reading on the sensors tab.<br />
|
||||||
- UI cleanup - 'Welcome' and 'Firmware flasher' are now tabs.<br />
|
- UI cleanup - 'Welcome' and 'Firmware flasher' are now tabs.<br />
|
||||||
|
- New Logo. (Tom McCullough)<br />
|
||||||
|
- New 3D models (AkFreak).<br />
|
||||||
- Update presentation of LEDs that have multiple functions.<br />
|
- Update presentation of LEDs that have multiple functions.<br />
|
||||||
- Added Documentation and Support panels to welcome tab.<br />
|
- Added Documentation and Support panels to welcome tab.<br />
|
||||||
- Add support for backup and restore of LED strip configuration.<br />
|
- Add support for backup and restore of LED strip configuration.<br />
|
||||||
- Fix for disappearing tabs in chrome 41 beta.<br />
|
- Fix for disappearing tabs in chrome 41 beta.<br />
|
||||||
|
- Various other minor improvements.<br />
|
||||||
</p>
|
</p>
|
||||||
<span>2015.01.08 - 0.60.0 - cleanflight</span>
|
<span>2015.01.08 - 0.60.0 - cleanflight</span>
|
||||||
<p>
|
<p>
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 6.2 KiB |
36
js/boards.js
36
js/boards.js
|
@ -3,51 +3,43 @@
|
||||||
var BOARD_DEFINITIONS = [
|
var BOARD_DEFINITIONS = [
|
||||||
{
|
{
|
||||||
name: "CC3D",
|
name: "CC3D",
|
||||||
identifier: "CC3D",
|
identifier: "CC3D"
|
||||||
serialPortCount: 3
|
|
||||||
}, {
|
}, {
|
||||||
name: "ChebuzzF3",
|
name: "ChebuzzF3",
|
||||||
identifier: "CHF3",
|
identifier: "CHF3"
|
||||||
serialPortCount: 3
|
|
||||||
}, {
|
}, {
|
||||||
name: "CJMCU",
|
name: "CJMCU",
|
||||||
identifier: "CJM1",
|
identifier: "CJM1"
|
||||||
serialPortCount: 2
|
|
||||||
}, {
|
}, {
|
||||||
name: "EUSTM32F103RB",
|
name: "EUSTM32F103RB",
|
||||||
identifier: "EUF1",
|
identifier: "EUF1"
|
||||||
serialPortCount: 4
|
|
||||||
}, {
|
}, {
|
||||||
name: "Naze/Flip32+",
|
name: "Naze/Flip32+",
|
||||||
identifier: "AFNA",
|
identifier: "AFNA"
|
||||||
serialPortCount: 4
|
|
||||||
}, {
|
}, {
|
||||||
name: "Naze32Pro",
|
name: "Naze32Pro",
|
||||||
identifier: "AFF3",
|
identifier: "AFF3"
|
||||||
serialPortCount: 3
|
|
||||||
}, {
|
}, {
|
||||||
name: "Olimexino",
|
name: "Olimexino",
|
||||||
identifier: "OLI1",
|
identifier: "OLI1"
|
||||||
serialPortCount: 4
|
|
||||||
}, {
|
}, {
|
||||||
name: "Port103R",
|
name: "Port103R",
|
||||||
identifier: "103R",
|
identifier: "103R"
|
||||||
serialPortCount: 4
|
|
||||||
}, {
|
}, {
|
||||||
name: "Sparky",
|
name: "Sparky",
|
||||||
identifier: "SPKY",
|
identifier: "SPKY"
|
||||||
serialPortCount: 4
|
|
||||||
}, {
|
}, {
|
||||||
name: "STM32F3Discovery",
|
name: "STM32F3Discovery",
|
||||||
identifier: "SDF3",
|
identifier: "SDF3"
|
||||||
serialPortCount: 3
|
}, {
|
||||||
|
name: "SP Racing F3",
|
||||||
|
identifier: "SRF3"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
var DEFAULT_BOARD_DEFINITION = {
|
var DEFAULT_BOARD_DEFINITION = {
|
||||||
name: "Unknown",
|
name: "Unknown",
|
||||||
identifier: "????",
|
identifier: "????"
|
||||||
serialPortCount: 1
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var BOARD = {
|
var BOARD = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var CONFIGURATOR = {
|
var CONFIGURATOR = {
|
||||||
'releaseDate': 1422552160231, // new Date().getTime() - 2015.01.29
|
'releaseDate': 1422922675433, // new Date().getTime() - 2015.01.29
|
||||||
'apiVersionAccepted': 1.2,
|
'apiVersionAccepted': 1.2,
|
||||||
'backupRestoreMinApiVersionAccepted': 1.5,
|
'backupRestoreMinApiVersionAccepted': 1.5,
|
||||||
'pidControllerChangeMinApiVersion': 1.5,
|
'pidControllerChangeMinApiVersion': 1.5,
|
||||||
|
|
23
js/msp.js
23
js/msp.js
|
@ -488,9 +488,9 @@ var MSP = {
|
||||||
BF_CONFIG.mixerConfiguration = data.getUint8(0);
|
BF_CONFIG.mixerConfiguration = data.getUint8(0);
|
||||||
BF_CONFIG.features = data.getUint32(1, 1);
|
BF_CONFIG.features = data.getUint32(1, 1);
|
||||||
BF_CONFIG.serialrx_type = data.getUint8(5);
|
BF_CONFIG.serialrx_type = data.getUint8(5);
|
||||||
BF_CONFIG.board_align_roll = data.getInt16(6, 1);
|
BF_CONFIG.board_align_roll = data.getInt16(6, 1); // -180 - 360
|
||||||
BF_CONFIG.board_align_pitch = data.getInt16(8, 1);
|
BF_CONFIG.board_align_pitch = data.getInt16(8, 1); // -180 - 360
|
||||||
BF_CONFIG.board_align_yaw = data.getInt16(10, 1);
|
BF_CONFIG.board_align_yaw = data.getInt16(10, 1); // -180 - 360
|
||||||
BF_CONFIG.currentscale = data.getInt16(12, 1);
|
BF_CONFIG.currentscale = data.getInt16(12, 1);
|
||||||
BF_CONFIG.currentoffset = data.getUint16(14, 1);
|
BF_CONFIG.currentoffset = data.getUint16(14, 1);
|
||||||
break;
|
break;
|
||||||
|
@ -559,8 +559,8 @@ var MSP = {
|
||||||
case MSP_codes.MSP_CF_SERIAL_CONFIG:
|
case MSP_codes.MSP_CF_SERIAL_CONFIG:
|
||||||
SERIAL_CONFIG.ports = [];
|
SERIAL_CONFIG.ports = [];
|
||||||
var offset = 0;
|
var offset = 0;
|
||||||
var serialPortCount = data.byteLength - (4 * 4);
|
var serialPortCount = (data.byteLength - (4 * 4)) / 2;
|
||||||
for (var i = 0; offset < serialPortCount; i++) {
|
for (var i = 0; i < serialPortCount; i++) {
|
||||||
var serialPort = {
|
var serialPort = {
|
||||||
identifier: data.getUint8(offset++, 1),
|
identifier: data.getUint8(offset++, 1),
|
||||||
scenario: data.getUint8(offset++, 1)
|
scenario: data.getUint8(offset++, 1)
|
||||||
|
@ -622,7 +622,12 @@ var MSP = {
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_CHANNEL_FORWARDING:
|
case MSP_codes.MSP_CHANNEL_FORWARDING:
|
||||||
for (var i = 0; i < 8; i ++) {
|
for (var i = 0; i < 8; i ++) {
|
||||||
SERVO_CONFIG[i].indexOfChannelToForward = data.getUint8(i);
|
var channelIndex = data.getUint8(i);
|
||||||
|
if (channelIndex < 255) {
|
||||||
|
SERVO_CONFIG[i].indexOfChannelToForward;
|
||||||
|
} else {
|
||||||
|
SERVO_CONFIG[i].indexOfChannelToForward = undefined;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -931,7 +936,11 @@ MSP.crunch = function (code) {
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_SET_CHANNEL_FORWARDING:
|
case MSP_codes.MSP_SET_CHANNEL_FORWARDING:
|
||||||
for (var i = 0; i < SERVO_CONFIG.length; i++) {
|
for (var i = 0; i < SERVO_CONFIG.length; i++) {
|
||||||
buffer.push(SERVO_CONFIG[i].indexOfChannelToForward);
|
var out = SERVO_CONFIG[i].indexOfChannelToForward;
|
||||||
|
if (out == undefined) {
|
||||||
|
out = 255; // Cleanflight defines "CHANNEL_FORWARDING_DISABLED" as "(uint8_t)0xFF"
|
||||||
|
}
|
||||||
|
buffer.push(out);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_SET_CF_SERIAL_CONFIG:
|
case MSP_codes.MSP_SET_CF_SERIAL_CONFIG:
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -56,19 +56,19 @@
|
||||||
<div class="groupTitle" i18n="configurationBoardAlignment"></div>
|
<div class="groupTitle" i18n="configurationBoardAlignment"></div>
|
||||||
<div class="number">
|
<div class="number">
|
||||||
<label>
|
<label>
|
||||||
<input type="number" name="board_align_roll" step="1" min="-180" max="180" />
|
<input type="number" name="board_align_roll" step="1" min="-180" max="360" />
|
||||||
<span i18n="configurationBoardAlignmentRoll"></span>
|
<span i18n="configurationBoardAlignmentRoll"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="number">
|
<div class="number">
|
||||||
<label>
|
<label>
|
||||||
<input type="number" name="board_align_pitch" step="1" min="-180" max="180" />
|
<input type="number" name="board_align_pitch" step="1" min="-180" max="360" />
|
||||||
<span i18n="configurationBoardAlignmentPitch"></span>
|
<span i18n="configurationBoardAlignmentPitch"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="number">
|
<div class="number">
|
||||||
<label>
|
<label>
|
||||||
<input type="number" name="board_align_yaw" step="1" min="-180" max="180" />
|
<input type="number" name="board_align_yaw" step="1" min="-180" max="360" />
|
||||||
<span i18n="configurationBoardAlignmentYaw"></span>
|
<span i18n="configurationBoardAlignmentYaw"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -54,7 +54,6 @@
|
||||||
}
|
}
|
||||||
.tab-pid_tuning .controller select {
|
.tab-pid_tuning .controller select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-left: calc(100% - 35px);
|
|
||||||
height: 20px;
|
height: 20px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<div class="controller">
|
<div class="controller">
|
||||||
<span class="head" i18n="pidTuningControllerHead"></span>
|
<span class="head" i18n="pidTuningControllerHead"></span>
|
||||||
<select name="controller">
|
<select name="controller">
|
||||||
<option value="0">MultiWii (Old)</option>
|
<option value="0">0 - MultiWii (Old)</option>
|
||||||
<option value="1">MultiWii (rewrite)</option>
|
<option value="1">1 - MultiWii (rewrite)</option>
|
||||||
<option value="2">LuxFloat</option>
|
<option value="2">2 - LuxFloat</option>
|
||||||
<option value="3">MultiWii (2.3 - latest)</option>
|
<option value="3">3 - MultiWii (2.3 - latest)</option>
|
||||||
<option value="4">MultiWii (2.3 - hybrid)</option>
|
<option value="4">4 - MultiWii (2.3 - hybrid)</option>
|
||||||
<option value="5">Harakiri</option>
|
<option value="5">5 - Harakiri</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear-both"></div>
|
<div class="clear-both"></div>
|
||||||
|
|
|
@ -61,7 +61,7 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
||||||
var ports_e = $('.tab-ports .ports');
|
var ports_e = $('.tab-ports .ports');
|
||||||
var port_configuration_template_e = $('#tab-ports-templates .portConfiguration');
|
var port_configuration_template_e = $('#tab-ports-templates .portConfiguration');
|
||||||
|
|
||||||
for (var portIndex = 0; portIndex < board_definition.serialPortCount; portIndex++) {
|
for (var portIndex = 0; portIndex < SERIAL_CONFIG.ports.length; portIndex++) {
|
||||||
var port_configuration_e = port_configuration_template_e.clone();
|
var port_configuration_e = port_configuration_template_e.clone();
|
||||||
|
|
||||||
var serialPort = SERIAL_CONFIG.ports[portIndex];
|
var serialPort = SERIAL_CONFIG.ports[portIndex];
|
||||||
|
|
|
@ -163,9 +163,12 @@ TABS.servos.initialize = function (callback) {
|
||||||
|
|
||||||
|
|
||||||
var selection = $('.channel input', this);
|
var selection = $('.channel input', this);
|
||||||
var val = selection.index(selection.filter(':checked'));
|
var channelIndex = parseInt(selection.index(selection.filter(':checked')));
|
||||||
|
if (channelIndex == -1) {
|
||||||
|
channelIndex = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
SERVO_CONFIG[info.obj].indexOfChannelToForward = parseInt(val);
|
SERVO_CONFIG[info.obj].indexOfChannelToForward = channelIndex;
|
||||||
|
|
||||||
|
|
||||||
SERVO_CONFIG[info.obj].middle = parseInt($('.middle input', this).val());
|
SERVO_CONFIG[info.obj].middle = parseInt($('.middle input', this).val());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue