|
|
|
@ -15,6 +15,7 @@ function tab_initialize_servos() {
|
|
|
|
|
// request current Servos Config
|
|
|
|
|
send_message(MSP_codes.MSP_IDENT, MSP_codes.MSP_IDENT, false, function() {
|
|
|
|
|
send_message(MSP_codes.MSP_SERVO_CONF, MSP_codes.MSP_SERVO_CONF, false, function() {
|
|
|
|
|
send_message(MSP_codes.MSP_BOXNAMES, MSP_codes.MSP_BOXNAMES, false, function() {
|
|
|
|
|
// drop previous table
|
|
|
|
|
$('div.tab-servos table.fields tr:not(:first)').remove();
|
|
|
|
|
|
|
|
|
@ -89,6 +90,17 @@ function tab_initialize_servos() {
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
model.html('Doesn\'t support servos');
|
|
|
|
|
|
|
|
|
|
// implementation of feature servo_tilt
|
|
|
|
|
if (AUX_CONFIG.indexOf('CAMSTAB') > -1 || AUX_CONFIG.indexOf('CAMTRIG') > -1) {
|
|
|
|
|
// Gimbal on
|
|
|
|
|
// needs to be verified
|
|
|
|
|
model.html('Gimbal / Tilt Servos');
|
|
|
|
|
|
|
|
|
|
// rate
|
|
|
|
|
process_servos('Pitch Servo', '', 0, 2);
|
|
|
|
|
process_servos('Roll Servo', '', 1, 2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UI hooks for dynamically generated elements
|
|
|
|
@ -100,6 +112,7 @@ function tab_initialize_servos() {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('a.update').click(function() {
|
|
|
|
|
if (supported_models.indexOf(CONFIG.multiType) != -1) {
|
|
|
|
|