From ada09a8aaa0a5e79fc5467b26ba6d30f49e24a95 Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Sun, 11 Jan 2015 19:39:53 +0100 Subject: [PATCH 01/12] OP-1674 Add frequency display and limiting values - Allow channel 250. --- .../plugins/config/configpipxtremewidget.cpp | 51 +++++++ .../plugins/config/configpipxtremewidget.h | 3 + .../src/plugins/config/pipxtreme.ui | 134 ++++++++++++------ 3 files changed, 143 insertions(+), 45 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp index 6595b6366..60073eb7a 100644 --- a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp @@ -97,6 +97,11 @@ ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget // Connect the selection changed signals. connect(m_oplink->PPMOnly, SIGNAL(toggled(bool)), this, SLOT(ppmOnlyChanged())); + connect(m_oplink->MinimumChannel, SIGNAL(valueChanged(int)), this, SLOT(minChannelChanged())); + connect(m_oplink->MaximumChannel, SIGNAL(valueChanged(int)), this, SLOT(maxChannelChanged())); + + m_oplink->MinimumChannel->setKeyboardTracking(false); + m_oplink->MaximumChannel->setKeyboardTracking(false); // Request and update of the setting object. settingsUpdated = false; @@ -318,6 +323,52 @@ void ConfigPipXtremeWidget::ppmOnlyChanged() m_oplink->ComSpeed->setEnabled(!is_ppm_only); } +void ConfigPipXtremeWidget::minChannelChanged() +{ + ChannelChanged(false); +} + +void ConfigPipXtremeWidget::maxChannelChanged() +{ + ChannelChanged(true); +} + +void ConfigPipXtremeWidget::ChannelChanged(bool isMax) +{ + int minChannel = m_oplink->MinimumChannel->value(); + int maxChannel = m_oplink->MaximumChannel->value(); + + int minimalChannelRange = 10; + + if ((maxChannel - minChannel) < minimalChannelRange) { + if (isMax) { + minChannel = maxChannel - minimalChannelRange; + } else { + maxChannel = minChannel + minimalChannelRange; + } + + if (maxChannel > 250) { + maxChannel = 250; + minChannel = 250 - minimalChannelRange; + } + + if (minChannel < 0) { + minChannel = 0; + maxChannel = minimalChannelRange; + } + } + + m_oplink->MaximumChannel->setValue(maxChannel); + m_oplink->MinimumChannel->setValue(minChannel); + + // Calculate and Display frequency in Mhz + float minFrequency = 430 + (minChannel * 0.040); + float maxFrequency = 430 + (maxChannel * 0.040); + + m_oplink->MinFreq->setText(QString::number(minFrequency, 'f', 3) + "Mhz"); + m_oplink->MaxFreq->setText(QString::number(maxFrequency, 'f', 3) + "Mhz"); +} + /** @} @} diff --git a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.h b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.h index 986f7c7bd..1d38183e1 100644 --- a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.h +++ b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.h @@ -62,6 +62,9 @@ private slots: void disconnected(); void bind(); void ppmOnlyChanged(); + void minChannelChanged(); + void maxChannelChanged(); + void ChannelChanged(bool isMax); }; #endif // CONFIGTXPIDWIDGET_H diff --git a/ground/openpilotgcs/src/plugins/config/pipxtreme.ui b/ground/openpilotgcs/src/plugins/config/pipxtreme.ui index baa3482c2..e9393331f 100644 --- a/ground/openpilotgcs/src/plugins/config/pipxtreme.ui +++ b/ground/openpilotgcs/src/plugins/config/pipxtreme.ui @@ -49,8 +49,8 @@ 0 0 - 810 - 575 + 835 + 545 @@ -72,14 +72,14 @@ Configuration - + Com speed in bps. - + @@ -95,7 +95,7 @@ - + @@ -111,7 +111,7 @@ - + @@ -124,7 +124,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -153,7 +153,20 @@ - + + + + + 16777215 + 16777215 + + + + Choose the function for the USB virtual com port + + + + @@ -172,7 +185,7 @@ - + @@ -188,20 +201,10 @@ - - - - - 16777215 - 16777215 - - - - Choose the function for the USB virtual com port - - + + - + @@ -217,10 +220,29 @@ - - + + + + + 60 + 16777215 + + + + + 50 + false + + + + Channel 0 is 430 MHz, channel 250 is 440 MHz, and the channel spacing is 40 KHz. + + + 250 + + - + @@ -252,22 +274,6 @@ - - - - - 50 - false - - - - Channel 0 is 430 MHz, channel 249 is 440 MHz, and the channel spacing is 40 KHz. - - - 249 - - - @@ -286,6 +292,12 @@ + + + 60 + 16777215 + + 50 @@ -293,10 +305,10 @@ - Channel 0 is 430 MHz, channel 249 is 440 MHz, and the channel spacing is 40 KHz. + Channel 0 is 430 MHz, channel 250 is 440 MHz, and the channel spacing is 40 KHz. - 249 + 250 @@ -318,6 +330,12 @@ + + + 60 + 16777215 + + 50 @@ -328,7 +346,7 @@ Sets the random sequence of channels to use for frequency hopping. - 249 + 250 @@ -396,6 +414,32 @@ + + + + + 105 + 16777215 + + + + 440.000Mhz + + + + + + + + 105 + 16777215 + + + + 430.000Mhz + + + From 4c27a78072796de17cfce0d005b31457312862bd Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Mon, 12 Jan 2015 12:57:01 +0100 Subject: [PATCH 02/12] OP-1674 Allow channel 250 --- flight/pios/common/pios_rfm22b.c | 6 +++--- flight/pios/inc/pios_rfm22b_priv.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flight/pios/common/pios_rfm22b.c b/flight/pios/common/pios_rfm22b.c index 203fe1179..aa6525f8b 100644 --- a/flight/pios/common/pios_rfm22b.c +++ b/flight/pios/common/pios_rfm22b.c @@ -167,7 +167,7 @@ static const uint8_t channel_list[] = { 217, 27, 87, 122, 125, 135, 148, 178, 71, 206, 57, 141, 35, 30, 246, 159, 16, 32, 15, 229, 20, 12, 223, 150, 101, 79, 56, 102, 111, 174, 236, 137, 143, 52, 225, 64, 224, 112, 168, 243, 130, 108, 202, 123, 146, 228, 75, 46, 153, 7, 192, 175, 151, 222, 59, 82, 90, 1, 65, 109, 44, 165, 84, 43, 36, 128, 196, 67, 80, - 136, 86, 70, 234, 66, 185, 10, 164, 177, 116, 50, 107, 183, 215, 212, 60, 227, 133, 120, 14 + 136, 86, 70, 234, 66, 185, 10, 164, 177, 116, 50, 107, 183, 215, 212, 60, 227, 133, 120, 14, 250 }; /* Local function forwared declarations */ @@ -558,7 +558,7 @@ void PIOS_RFM22B_SetTxPower(uint32_t rfm22b_id, enum rfm22b_tx_power tx_pwr) /** * Sets the range and number of channels to use for the radio. - * The channels are 0 to 255 divided across the 430-440 MHz range. + * The channels are 0 to 250 divided across the 430-440 MHz range. * The number of channels configured will be spread across the selected channel range. * The channel spacing is 10MHz / 250 = 40kHz * @@ -1618,7 +1618,7 @@ static void rfm22_setNominalCarrierFrequency(struct pios_rfm22b_dev *rfm22b_dev, { // Set the frequency channels to start at 430MHz uint32_t frequency_hz = RFM22B_NOMINAL_CARRIER_FREQUENCY; - // The step size is 10MHz / 250 channels = 40khz, and the step size is specified in 10khz increments. + // The step size is 10MHz / 250 = 40khz, and the step size is specified in 10khz increments. uint8_t freq_hop_step_size = 4; // holds the hbsel (1 or 2) diff --git a/flight/pios/inc/pios_rfm22b_priv.h b/flight/pios/inc/pios_rfm22b_priv.h index bacc2dcda..4ad3c816d 100644 --- a/flight/pios/inc/pios_rfm22b_priv.h +++ b/flight/pios/inc/pios_rfm22b_priv.h @@ -40,7 +40,7 @@ // ************************************ #define RFM22B_MAX_PACKET_LEN 64 -#define RFM22B_NUM_CHANNELS 250 +#define RFM22B_NUM_CHANNELS 251 // 0 (432Mhz) to 250 (440Mhz) = 251 channels // ************************************ From ce9244fb7512f4a96c8ecdb6a23196b5cb7e52b8 Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Tue, 20 Jan 2015 22:43:55 +0100 Subject: [PATCH 03/12] OP-1337 Translation update for 15.01 --- .../translations/openpilotgcs_fr.ts | 258 ++++++++++++++---- 1 file changed, 203 insertions(+), 55 deletions(-) diff --git a/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts b/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts index cf9877756..b8a5264ef 100644 --- a/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts +++ b/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts @@ -4508,7 +4508,12 @@ p, li { white-space: pre-wrap; } Les paramètres importés ne sont pas compatibles avec ce plugin et ne seront pas importés ! - + + Unknown compatibility level: %1 + Niveau de compatibilité inconnu : %1 + + + WARNING: ATTENTION : @@ -4518,9 +4523,8 @@ p, li { white-space: pre-wrap; } ERREUR : - Unknown compatibility level: - Niveau de compatibilité inconnu : + Niveau de compatibilité inconnu : @@ -6180,9 +6184,8 @@ p, li { white-space: pre-wrap; } Options de Configuration et Calibration - Manual Calibration - Calibration Manuelle + Calibration Manuelle @@ -6489,6 +6492,37 @@ Applique et Enregistre tous les paramètres sur la SD Start Transmitter Setup Wizard Démarrer l'Assistant Configuration Émetteur + + + Assisted Control stick deadband + + + + + Assisted Control stick deadband in percents of full range (2-12) for use with GPSAssist. This can not be disabled. + + + + + Start Manual Calibration + Démarrer Calibration Manuelle + + + + Assisted Control + + + + + <html><head/><body><p>Assisted Control options augment the primary flight mode. GPSAssist adds brake/hold to Stabilization and PositionHold.</p></body></html> + + + + + fieldname:FlightModeAssistMap + Do not translate ! + + MixerCurve @@ -9098,7 +9132,7 @@ les données en cache Diagramme de Connexion - + Save File Enregistrer Fichier @@ -9323,6 +9357,16 @@ Veuillez sélectionner la configuration de voilure fixe désirée ci-dessous :This setup currently expects a flying-wing setup, an elevon plus rudder setup is not yet supported. Setup should include only two elevons, and should explicitly not include a rudder. Cette configuration concerne les ailes volantes, la dérive n'est pas encore supportée actuellement. La configuration s'applique à deux servos d'élevons, sans dérive. + + + Vtail + Vtail + + + + This setup expects a traditional glider airframe using two independent aileron servos on their own channel (not connected by Y adapter) plus Vtail mixing elevator/rudder. + Cette configuration concerne un planeur classique utilisant deux servos d'ailerons indépendants ayant leur propre branchement (pas connectés avec un adaptateur en Y) plus un empenage en Vé avec mixage profondeur/direction. + HeliPage @@ -9435,17 +9479,15 @@ p, li { white-space: pre-wrap; } Le Quadricoptère (+) utilise quatre moteurs et il est similaire au Quadricoptère X mais la direction de déplacement est décalée de 45 degrés. Les moteurs avant et arrière tournent dans le sens horaire et les moteurs gauche et droit tournent dans le sens antihoraire. Cette configuration a été l'une des premières à être utilisée et est encore utilisée pour le vol sportif. Cette agencement n'est pas bien adapté pour que FPV car le moteur de devant a tendance à être dans le champ de vision de la caméra. - Quadcopter H - Quadricoptère H + Quadricoptère H - Quadcopter H, Blackout miniH - Quadricoptère H, blackout miniH + Quadricoptère H, blackout miniH - + Hexacopter Hexacoptère @@ -9480,7 +9522,7 @@ p, li { white-space: pre-wrap; } Hexacoptère X - + OpenPilot Multirotor Configuration Configuration Multirotor OpenPilot @@ -9494,7 +9536,7 @@ Please select the type of multirotor you want to create a configuration for belo Veuillez sélectionner le type de multirotor désiré pour la configuration ci-dessous : - + Hexacopter H Hexacoptère H @@ -9527,7 +9569,7 @@ Veuillez sélectionner le type de multirotor désiré pour la configuration ci-d - + Start Démarrer @@ -9760,6 +9802,50 @@ p, li { white-space: pre-wrap; } <html><head/><body><p align="center"><span style=" font-family:'MS Shell Dlg 2'; font-size:12pt; font-weight:600;">The Surface Vehicle section of the OpenPilot Setup Wizard is not yet implemented</span><br/></p></body></html> <html><head/><body><p align="center"><span style=" font-family:'MS Shell Dlg 2'; font-size:12pt; font-weight:600;">La partie Véhicule roulant de l'Assistant de Configuration OpenPilot n'est pas encore implémentée</span><br/></p></body></html> + + + OpenPilot Ground Vehicle Configuration + Configuration Véhicule Terrestre OpenPilot + + + + This part of the wizard will set up the OpenPilot controller for use with a ground vehicle utilizing servos. The wizard supports the most common types of ground vehicle, other variants can be configured by using custom configuration options in the Configuration plugin in the GCS. + +Please select the type of ground vehicle you want to create a configuration for below: + Cette partie de l'assistant va permettre le configuration du contrôleur OpenPilot pour fonctionner avec des véhicules terrestres utilisant plusieurs moteurs/servos. L'assistant supporte les types de configurations les plus courants. D'autres variantes de véhicules peuvent être configurées dans l'onglet "Véhicule" > "Personnalisé" du plugin de configuration de GCS. + +Veuillez sélectionner le type de véhicule terrestre dont vous voulez créer la configuration ci-dessous : + + + + Car + Voiture + + + + This setup expects a traditional car with a rear motor and a front streering servo + Cette configuration correspond à une voiture classique avec un moteur à l'arrière et un servo de direction à l'avant + + + + Tank + Tank + + + + This setup expects a traditional vehicle using only two motors and differential steering + Cette configuration correspond à une véhicule classique utilisant deux moteurs et une direction par différentiel entre ces moteurs + + + + Motorcycle + Motocycle + + + + This setup currently expects a motorcyle setup, using one motor and one servo for steering. + Cette configuration correspond à une moto utilisant un moteur et un servo pour la direction. + VehiclePage @@ -10453,26 +10539,25 @@ Voulez-vous toujours continuer ? ConfigInputWidget - + http://wiki.openpilot.org/x/04Cf Lien Wiki FR http://wiki.openpilot.org/x/aIBqAQ - Arming Settings are now set to 'Always Disarmed' for your safety. Contexte : Onglet "Paramètres d'Armement" Pour des raisons de sécurité les Paramètres d'Armement ont été modifiés à 'Toujours Désarmé'. - + You will have to reconfigure the arming settings manually when the wizard is finished. After the last step of the wizard you will be taken to the Arming Settings screen. redirigé vers / sur ? Vous devrez reconfigurer manuellement les paramètres d'armement lorsque l'assistant sera terminé. Après la dernière étape de l'assistant, vous serez redirigé vers l'écran des Paramètres d'Armement. - + Next Suivant @@ -10668,9 +10753,28 @@ Bougez le manche %1. Vous avez la possibilité d'appuyer sur Suivant pour ignorer ce canal. - + + Stop Manual Calibration + Arrêter Calibration Manuelle + + + + <p>Arming Settings are now set to 'Always Disarmed' for your safety.</p><p>Be sure your receiver is powered with an external source and Transmitter is on.</p><p align='center'><b>Stop Manual Calibration</b> when done</p> + <p>Pour des raisons de sécurité les Paramètres d'Armement ont été modifiés à 'Toujours Désarmé'.</p><p>Veuillez vérifier que votre récepteur est alimenté avec une source externe et que la radio Rx est allumée. <p align='center'><b>Arrêter Calibration Manuelle</b> à la fin</p> + + + + You will have to reconfigure the arming settings manually when the manual calibration is finished. + Vous devrez reconfigurer les paramètres d'armement manuellement lorsque la calibration manuelle sera terminée. + + + + Start Manual Calibration + Démarrer Calibration Manuelle + + You will have to reconfigure the arming settings manually when the wizard is finished. - Vous devrez reconfigurer les paramètres d'armement manuellement lorsque l'assistant sera terminé. + Vous devrez reconfigurer les paramètres d'armement manuellement lorsque l'assistant sera terminé. @@ -10950,12 +11054,27 @@ Bougez le manche %1. ScopeGadgetWidget - + Click legend to show/hide scope trace. Double click legend or plot to show/hide legend. Cliquer sur la légende pour afficher/cacher le tracé du graphique. Double clic sur la légende ou le tracé pour afficher/cacher la légende. + + + Clear + Effacer + + + + Copy to Clipboard + Copier dans le Presse-papiers + + + + Options... + Options... + SetupWizard @@ -10965,7 +11084,7 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende.Assistant Configuration OpenPilot - + Controller type: Type de contrôleur : @@ -11001,18 +11120,19 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende. - + - + + - + Unknown Inconnu - + Vehicle type: Type de véhicule : @@ -11023,12 +11143,13 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende. - + + Vehicle sub type: Sous-type véhicule : - + Tricopter Tricoptère @@ -11043,9 +11164,8 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende.Quadricoptère + - Quadcopter H - Quadricoptère H + Quadricoptère H @@ -11118,7 +11238,22 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende.Véhicule surface - + + Car + Voiture + + + + Tank + Tank + + + + Motorcycle + Motocycle + + + Input type: Type d'entrée : @@ -11140,7 +11275,7 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende. Spektrum Satellite - + @@ -11158,7 +11293,7 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende.Contrôleur Rapide (%1 Hz) - + Servo type: Type Servo : @@ -11258,7 +11393,7 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende. Writing Airspeed sensor settings - Écriture paramètres capteur Vitesse Air + Écriture paramètres capteur Vitesse Air @@ -11266,13 +11401,14 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende.Écriture paramètres matériels - + + Writing actuator settings Écriture paramètres actionneurs - + Writing flight mode settings 1/2 Écriture paramètres mode de vol 1/2 @@ -11298,7 +11434,7 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende.Écriture paramètres de stabilisation - + Writing mixer settings Écriture paramètres mixeur @@ -12256,39 +12392,32 @@ La carte sera redémarrée et tous les paramètres effacés. Affectations sorties - Engine - Moteur + Moteur - Select output channel for the engine - Sélectionner le canal de sortie pour le moteur + Sélectionner le canal de sortie pour le moteur - Aileron 1 - Aileron 1 + Aileron 1 - Select output channel for the first aileron (or elevon) - Sélectionner le canal de sortie pour le premier aileron (ou élevon) + Sélectionner le canal de sortie pour le premier aileron (ou élevon) - Aileron 2 - Aileron 2 + Aileron 2 - Select output channel for the second aileron (or elevon) - Sélectionner le canal de sortie pour le second aileron (ou élevon) + Sélectionner le canal de sortie pour le second aileron (ou élevon) - Motor - Moteur + Moteur @@ -12360,6 +12489,16 @@ La carte sera redémarrée et tous les paramètres effacés. Mixer OK + + + Motor 1 + Moteur 1 + + + + Vehicle frame + + MultiRotorConfigWidget @@ -14267,7 +14406,7 @@ Des valeurs trop élevées pour les contrôles principaux peuvent entraîner des et même conduire au crash. A utiliser avec prudence. - + Chan %1 Canal %1 @@ -14276,6 +14415,16 @@ et même conduire au crash. A utiliser avec prudence. Text Texte + + + Channel value + Valeur canal + + + + Channel Value + Valeur Canal + ConfigVehicleTypeWidget @@ -14677,7 +14826,7 @@ It is suggested that if this is a first time configuration of your controller, r Il est suggéré que si cela est une première configuration de votre contrôleur, plutôt que d'utiliser cette option, sélectionnez à la place un ensemble de réglages qui correspond le mieux à votre propre appareil dans la liste ci-dessus. Si vous n'êtes pas en mesure d'en choisir un, sélectionnez l'élément générique de la liste. - + Current Tuning Réglages Actuels @@ -15011,9 +15160,8 @@ p, li { white-space: pre-wrap; } Multirotor - Quadricoptère X - Multirotor - Quadrocopter H - Multirotor - Quadricoptère H + Multirotor - Quadricoptère H From ded27c6f46b7e340c14234807a6e36a9d983c713 Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Tue, 20 Jan 2015 23:18:20 +0100 Subject: [PATCH 04/12] OP-1337 Wiki links English only --- .../translations/openpilotgcs_fr.ts | 45 +++++++------------ 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts b/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts index b8a5264ef..9ca2fcb3b 100644 --- a/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts +++ b/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts @@ -4393,8 +4393,7 @@ p, li { white-space: pre-wrap; } http://wiki.openpilot.org/x/OQBj - Lien Wiki FR - http://wiki.openpilot.org/x/hoBqAQ + @@ -5237,8 +5236,7 @@ valeur. url:http://wiki.openpilot.org/display/Doc/Camera+Stabilization+Configuration - Lien Wiki FR - url:http://wiki.openpilot.org/x/UoHWAQ + @@ -7113,8 +7111,7 @@ Une valeur de 0.00 désactive le filtre. url:http://wiki.openpilot.org/display/Doc/Revolution+Manual+Sensor+Calibration - Lien Wiki FR - url:http://wiki.openpilot.org/x/FQWJAQ + @@ -7650,8 +7647,7 @@ value as the Kp. url:http://wiki.openpilot.org/x/DAO9 - Wiki FR - url:http://wiki.openpilot.org/x/d4BqAQ + @@ -8617,8 +8613,7 @@ uniquement lorsque le système est armé, sans désactiver le module. url:http://wiki.openpilot.org/x/DACiAQ - Wiki FR - url:http://wiki.openpilot.org/x/N4DWAQ + @@ -9984,8 +9979,7 @@ persistant de la carte, et ensuite ferme la boite de dialogue. http://wiki.openpilot.org/display/Doc/UAV+Settings+import-export - Lien Wiki FR - http://wiki.openpilot.org/x/IQCJAQ + @@ -10503,8 +10497,7 @@ p, li { white-space: pre-wrap; } http://wiki.openpilot.org/x/D4AUAQ - Lien Wiki FR - http://wiki.openpilot.org/x/HoBqAQ + @@ -10517,8 +10510,7 @@ p, li { white-space: pre-wrap; } http://wiki.openpilot.org/x/44Cf - Lien Wiki FR - http://wiki.openpilot.org/x/IIBqAQ + @@ -10541,8 +10533,7 @@ Voulez-vous toujours continuer ? http://wiki.openpilot.org/x/04Cf - Lien Wiki FR - http://wiki.openpilot.org/x/aIBqAQ + @@ -11670,8 +11661,7 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende. http://wiki.openpilot.org/display/Doc/Erase+board+settings - Wiki FR - Uploader - http://wiki.openpilot.org/x/SYBqAQ + @@ -11775,8 +11765,7 @@ Double clic sur la légende ou le tracé pour afficher/cacher la légende. http://wiki.openpilot.org/x/AoBZ - Lien Wiki FR - http://wiki.openpilot.org/x/SYBqAQ + @@ -13082,8 +13071,7 @@ Méfiez-vous de ne pas vous verrouiller l'accès ! url:http://wiki.openpilot.org/x/hgAGAQ - Lien Wiki FR - url:http://wiki.openpilot.org/x/B4BYAQ + @@ -13269,8 +13257,7 @@ p, li { white-space: pre-wrap; } http://wiki.openpilot.org/x/WIGf - Lien Wiki FR - http://wiki.openpilot.org/x/aoBqAQ + @@ -13283,8 +13270,7 @@ p, li { white-space: pre-wrap; } http://wiki.openpilot.org/x/GgDBAQ - Lien Wiki FR - http://wiki.openpilot.org/x/TYRNAQ + @@ -14456,8 +14442,7 @@ et même conduire au crash. A utiliser avec prudence. http://wiki.openpilot.org/x/44Cf - Lien Wiki FR - http://wiki.openpilot.org/x/IIBqAQ + From 9828e4a5bf1b4cde9916ddf1dfccbf1b9b607a81 Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Wed, 21 Jan 2015 14:03:18 +0100 Subject: [PATCH 05/12] OP-1652 Rename Flex-IO pins for ws281x leds --- shared/uavobjectdefinition/hwsettings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/uavobjectdefinition/hwsettings.xml b/shared/uavobjectdefinition/hwsettings.xml index b6bacdd03..6bf66d066 100644 --- a/shared/uavobjectdefinition/hwsettings.xml +++ b/shared/uavobjectdefinition/hwsettings.xml @@ -25,7 +25,7 @@ - + From bc178b8a95797ea3abc0f1e0faba09298c261989 Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Wed, 21 Jan 2015 14:12:36 +0100 Subject: [PATCH 06/12] OP-1652 WS281x pins : Update flight side for revo --- flight/targets/boards/revolution/board_hw_defs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/targets/boards/revolution/board_hw_defs.c b/flight/targets/boards/revolution/board_hw_defs.c index 63b784f09..77bb01156 100644 --- a/flight/targets/boards/revolution/board_hw_defs.c +++ b/flight/targets/boards/revolution/board_hw_defs.c @@ -2074,7 +2074,7 @@ const struct pios_ws2811_pin_cfg pios_ws2811_pin_cfg[] = { .GPIO_OType = GPIO_OType_PP, }, }, - [HWSETTINGS_WS2811LED_OUT_FLEXIPIN3] = { + [HWSETTINGS_WS2811LED_OUT_FLEXIOPIN3] = { .gpio = GPIOB, .gpioInit = { .GPIO_Pin = GPIO_Pin_12, @@ -2083,7 +2083,7 @@ const struct pios_ws2811_pin_cfg pios_ws2811_pin_cfg[] = { .GPIO_OType = GPIO_OType_PP, }, }, - [HWSETTINGS_WS2811LED_OUT_FLEXIPIN4] = { + [HWSETTINGS_WS2811LED_OUT_FLEXIOPIN4] = { .gpio = GPIOB, .gpioInit = { .GPIO_Pin = GPIO_Pin_13, From 68f9763e732d1d5f1e8581f29b2f725a4afce3ec Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Wed, 21 Jan 2015 14:32:21 +0100 Subject: [PATCH 07/12] OP-1652 Typo FlexiIOPin --- flight/targets/boards/revolution/board_hw_defs.c | 4 ++-- shared/uavobjectdefinition/hwsettings.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flight/targets/boards/revolution/board_hw_defs.c b/flight/targets/boards/revolution/board_hw_defs.c index 77bb01156..9c7e6980b 100644 --- a/flight/targets/boards/revolution/board_hw_defs.c +++ b/flight/targets/boards/revolution/board_hw_defs.c @@ -2074,7 +2074,7 @@ const struct pios_ws2811_pin_cfg pios_ws2811_pin_cfg[] = { .GPIO_OType = GPIO_OType_PP, }, }, - [HWSETTINGS_WS2811LED_OUT_FLEXIOPIN3] = { + [HWSETTINGS_WS2811LED_OUT_FLEXIIOPIN3] = { .gpio = GPIOB, .gpioInit = { .GPIO_Pin = GPIO_Pin_12, @@ -2083,7 +2083,7 @@ const struct pios_ws2811_pin_cfg pios_ws2811_pin_cfg[] = { .GPIO_OType = GPIO_OType_PP, }, }, - [HWSETTINGS_WS2811LED_OUT_FLEXIOPIN4] = { + [HWSETTINGS_WS2811LED_OUT_FLEXIIOPIN4] = { .gpio = GPIOB, .gpioInit = { .GPIO_Pin = GPIO_Pin_13, diff --git a/shared/uavobjectdefinition/hwsettings.xml b/shared/uavobjectdefinition/hwsettings.xml index 6bf66d066..2fb566340 100644 --- a/shared/uavobjectdefinition/hwsettings.xml +++ b/shared/uavobjectdefinition/hwsettings.xml @@ -25,7 +25,7 @@ - + From fa7159686b1387347afbab5c0b09cbac5d1ba093 Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Wed, 21 Jan 2015 22:26:16 +0100 Subject: [PATCH 08/12] OP-1337 Gps assist translation --- .../share/openpilotgcs/translations/openpilotgcs_fr.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts b/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts index 9ca2fcb3b..1cd212e60 100644 --- a/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts +++ b/ground/openpilotgcs/share/openpilotgcs/translations/openpilotgcs_fr.ts @@ -6493,27 +6493,27 @@ Applique et Enregistre tous les paramètres sur la SD Assisted Control stick deadband - + Zone morte des manches - Pilotage assisté Assisted Control stick deadband in percents of full range (2-12) for use with GPSAssist. This can not be disabled. - + Zone morte des manches du pilotage assisté en pourcentage du débattement maximum (2-12) pour utiliser GPSAssist. Ne peut être désactivé. Start Manual Calibration - Démarrer Calibration Manuelle + Démarrer Calibration Manuelle Assisted Control - + Pilotage Assisté <html><head/><body><p>Assisted Control options augment the primary flight mode. GPSAssist adds brake/hold to Stabilization and PositionHold.</p></body></html> - + <html><head/><body><p>Les options du pilotage assisté améliorent le mode de vol courant. GPSAssist ajoute le freinage/maintien en position à la Stabilisation et PositionHold.</p></body></html> From c506fc93d6da7359237d868cd01484e77b248578 Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Thu, 22 Jan 2015 19:49:06 +0100 Subject: [PATCH 09/12] OP-1674 Revert changes from previous commit in flight side, keep comments changes --- flight/pios/common/pios_rfm22b.c | 2 +- flight/pios/inc/pios_rfm22b_priv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/pios/common/pios_rfm22b.c b/flight/pios/common/pios_rfm22b.c index aa6525f8b..4aed541ed 100644 --- a/flight/pios/common/pios_rfm22b.c +++ b/flight/pios/common/pios_rfm22b.c @@ -167,7 +167,7 @@ static const uint8_t channel_list[] = { 217, 27, 87, 122, 125, 135, 148, 178, 71, 206, 57, 141, 35, 30, 246, 159, 16, 32, 15, 229, 20, 12, 223, 150, 101, 79, 56, 102, 111, 174, 236, 137, 143, 52, 225, 64, 224, 112, 168, 243, 130, 108, 202, 123, 146, 228, 75, 46, 153, 7, 192, 175, 151, 222, 59, 82, 90, 1, 65, 109, 44, 165, 84, 43, 36, 128, 196, 67, 80, - 136, 86, 70, 234, 66, 185, 10, 164, 177, 116, 50, 107, 183, 215, 212, 60, 227, 133, 120, 14, 250 + 136, 86, 70, 234, 66, 185, 10, 164, 177, 116, 50, 107, 183, 215, 212, 60, 227, 133, 120, 14 }; /* Local function forwared declarations */ diff --git a/flight/pios/inc/pios_rfm22b_priv.h b/flight/pios/inc/pios_rfm22b_priv.h index 4ad3c816d..bacc2dcda 100644 --- a/flight/pios/inc/pios_rfm22b_priv.h +++ b/flight/pios/inc/pios_rfm22b_priv.h @@ -40,7 +40,7 @@ // ************************************ #define RFM22B_MAX_PACKET_LEN 64 -#define RFM22B_NUM_CHANNELS 251 // 0 (432Mhz) to 250 (440Mhz) = 251 channels +#define RFM22B_NUM_CHANNELS 250 // ************************************ From 8f0c0407fb8e60d8c5538b85783d461e0a23b820 Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Thu, 22 Jan 2015 23:56:20 +0100 Subject: [PATCH 10/12] OP-1674 Changes from review : added constants and set limits - UI changes, Freq close to channel number. --- .../plugins/config/configpipxtremewidget.cpp | 41 ++++--- .../plugins/config/configpipxtremewidget.h | 2 +- .../src/plugins/config/pipxtreme.ui | 113 +++++++++--------- 3 files changed, 83 insertions(+), 73 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp index 60073eb7a..684f32b78 100644 --- a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp @@ -32,6 +32,12 @@ #include #include +// Channel range and Frequency display +static const int MAX_CHANNEL_NUM = 250; +static const int MIN_CHANNEL_RANGE = 10; +static const float FIRST_FREQUENCY = 430.000; +static const float FREQUENCY_STEP = 0.040; + ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget(parent) { m_oplink = new Ui_OPLinkWidget(); @@ -103,6 +109,9 @@ ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget m_oplink->MinimumChannel->setKeyboardTracking(false); m_oplink->MaximumChannel->setKeyboardTracking(false); + m_oplink->MaximumChannel->setMaximum(MAX_CHANNEL_NUM); + m_oplink->MinimumChannel->setMaximum(MAX_CHANNEL_NUM - MIN_CHANNEL_RANGE); + // Request and update of the setting object. settingsUpdated = false; autoLoadWidgets(); @@ -325,48 +334,46 @@ void ConfigPipXtremeWidget::ppmOnlyChanged() void ConfigPipXtremeWidget::minChannelChanged() { - ChannelChanged(false); + channelChanged(false); } void ConfigPipXtremeWidget::maxChannelChanged() { - ChannelChanged(true); + channelChanged(true); } -void ConfigPipXtremeWidget::ChannelChanged(bool isMax) +void ConfigPipXtremeWidget::channelChanged(bool isMax) { int minChannel = m_oplink->MinimumChannel->value(); int maxChannel = m_oplink->MaximumChannel->value(); - int minimalChannelRange = 10; - - if ((maxChannel - minChannel) < minimalChannelRange) { + if ((maxChannel - minChannel) < MIN_CHANNEL_RANGE) { if (isMax) { - minChannel = maxChannel - minimalChannelRange; + minChannel = maxChannel - MIN_CHANNEL_RANGE; } else { - maxChannel = minChannel + minimalChannelRange; + maxChannel = minChannel + MIN_CHANNEL_RANGE; } - if (maxChannel > 250) { - maxChannel = 250; - minChannel = 250 - minimalChannelRange; + if (maxChannel > MAX_CHANNEL_NUM) { + maxChannel = MAX_CHANNEL_NUM; + minChannel = MAX_CHANNEL_NUM - MIN_CHANNEL_RANGE; } if (minChannel < 0) { minChannel = 0; - maxChannel = minimalChannelRange; + maxChannel = MIN_CHANNEL_RANGE; } } m_oplink->MaximumChannel->setValue(maxChannel); m_oplink->MinimumChannel->setValue(minChannel); - // Calculate and Display frequency in Mhz - float minFrequency = 430 + (minChannel * 0.040); - float maxFrequency = 430 + (maxChannel * 0.040); + // Calculate and Display frequency in MHz + float minFrequency = FIRST_FREQUENCY + (minChannel * FREQUENCY_STEP); + float maxFrequency = FIRST_FREQUENCY + (maxChannel * FREQUENCY_STEP); - m_oplink->MinFreq->setText(QString::number(minFrequency, 'f', 3) + "Mhz"); - m_oplink->MaxFreq->setText(QString::number(maxFrequency, 'f', 3) + "Mhz"); + m_oplink->MinFreq->setText("(" + QString::number(minFrequency, 'f', 3) + " MHz)"); + m_oplink->MaxFreq->setText("(" + QString::number(maxFrequency, 'f', 3) + " MHz)"); } /** diff --git a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.h b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.h index 1d38183e1..bd2ebd0bf 100644 --- a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.h +++ b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.h @@ -64,7 +64,7 @@ private slots: void ppmOnlyChanged(); void minChannelChanged(); void maxChannelChanged(); - void ChannelChanged(bool isMax); + void channelChanged(bool isMax); }; #endif // CONFIGTXPIDWIDGET_H diff --git a/ground/openpilotgcs/src/plugins/config/pipxtreme.ui b/ground/openpilotgcs/src/plugins/config/pipxtreme.ui index e9393331f..9cbe0265c 100644 --- a/ground/openpilotgcs/src/plugins/config/pipxtreme.ui +++ b/ground/openpilotgcs/src/plugins/config/pipxtreme.ui @@ -6,7 +6,7 @@ 0 0 - 834 + 971 652 @@ -49,8 +49,8 @@ 0 0 - 835 - 545 + 949 + 558 @@ -350,54 +350,6 @@ - - - - - 50 - false - - - - Only PPM packets will be transmitted. - - - PPM Only - - - - - - - - 50 - false - - - - If selected, data will only be transmitted from the coordinator to the Rx modem. - - - One-Way - - - - - - - - 50 - false - - - - PPM packets will be received by this modem. Must be selected if Coordinator modem is configured for PPM. - - - PPM - - - @@ -418,12 +370,12 @@ - 105 + 110 16777215 - 440.000Mhz + 440.000 (MHz) @@ -431,12 +383,63 @@ - 105 + 110 16777215 - 430.000Mhz + 430.000 (MHz) + + + + + + + + 50 + false + + + + false + + + If selected, data will only be transmitted from the coordinator to the Rx modem. + + + One-Way + + + + + + + + 50 + false + + + + Only PPM packets will be transmitted. + + + PPM Only + + + + + + + + 50 + false + + + + PPM packets will be received by this modem. Must be selected if Coordinator modem is configured for PPM. + + + PPM From 5d4b1df85c55913c7dc9893b765be1cc0546580f Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Sat, 24 Jan 2015 00:56:31 +0100 Subject: [PATCH 11/12] OP-1652 Fix comment --- flight/pios/stm32f4xx/pios_ws2811.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/pios/stm32f4xx/pios_ws2811.c b/flight/pios/stm32f4xx/pios_ws2811.c index 4b8e9d987..f0a9ddf29 100644 --- a/flight/pios/stm32f4xx/pios_ws2811.c +++ b/flight/pios/stm32f4xx/pios_ws2811.c @@ -74,7 +74,7 @@ static void genericTIM_OCxPreloadConfig(TIM_TypeDef *TIMx, uint16_t TIM_OCPreloa }, }, .... - [HWSETTINGS_WS2811LED_OUT_FLEXIPIN4] = { + [HWSETTINGS_WS2811LED_OUT_FLEXIIOPIN4] = { .gpio = GPIOB, .gpioInit = { .GPIO_Pin = GPIO_Pin_13, From 7e421b99a44fafcd8b2db64bfa341b250530b1dd Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Sun, 25 Jan 2015 15:47:58 +0100 Subject: [PATCH 12/12] uncrustificationization --- .../targets/boards/revolution/board_hw_defs.c | 28 +++++++++---------- .../plugins/setupwizard/connectiondiagram.cpp | 4 +-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/flight/targets/boards/revolution/board_hw_defs.c b/flight/targets/boards/revolution/board_hw_defs.c index 9c7e6980b..4d5b8aa22 100644 --- a/flight/targets/boards/revolution/board_hw_defs.c +++ b/flight/targets/boards/revolution/board_hw_defs.c @@ -2020,54 +2020,54 @@ void DMA2_Stream1_IRQHandler(void) __attribute__((alias("PIOS_WS2811_irq_handler // this will not clash with PWM in or servo output as // pins will be reconfigured as _OUT so the alternate function is disabled. const struct pios_ws2811_pin_cfg pios_ws2811_pin_cfg[] = { - [HWSETTINGS_WS2811LED_OUT_SERVOOUT1] = { + [HWSETTINGS_WS2811LED_OUT_SERVOOUT1] = { .gpio = GPIOB, - .gpioInit = { + .gpioInit = { .GPIO_Pin = GPIO_Pin_0, .GPIO_Speed = GPIO_Speed_25MHz, .GPIO_Mode = GPIO_Mode_OUT, .GPIO_OType = GPIO_OType_PP, }, }, - [HWSETTINGS_WS2811LED_OUT_SERVOOUT2] = { + [HWSETTINGS_WS2811LED_OUT_SERVOOUT2] = { .gpio = GPIOB, - .gpioInit = { + .gpioInit = { .GPIO_Pin = GPIO_Pin_1, .GPIO_Speed = GPIO_Speed_25MHz, .GPIO_Mode = GPIO_Mode_OUT, .GPIO_OType = GPIO_OType_PP, }, }, - [HWSETTINGS_WS2811LED_OUT_SERVOOUT3] = { + [HWSETTINGS_WS2811LED_OUT_SERVOOUT3] = { .gpio = GPIOA, - .gpioInit = { + .gpioInit = { .GPIO_Pin = GPIO_Pin_3, .GPIO_Speed = GPIO_Speed_25MHz, .GPIO_Mode = GPIO_Mode_OUT, .GPIO_OType = GPIO_OType_PP, }, }, - [HWSETTINGS_WS2811LED_OUT_SERVOOUT4] = { + [HWSETTINGS_WS2811LED_OUT_SERVOOUT4] = { .gpio = GPIOA, - .gpioInit = { + .gpioInit = { .GPIO_Pin = GPIO_Pin_2, .GPIO_Speed = GPIO_Speed_25MHz, .GPIO_Mode = GPIO_Mode_OUT, .GPIO_OType = GPIO_OType_PP, }, }, - [HWSETTINGS_WS2811LED_OUT_SERVOOUT5] = { + [HWSETTINGS_WS2811LED_OUT_SERVOOUT5] = { .gpio = GPIOA, - .gpioInit = { + .gpioInit = { .GPIO_Pin = GPIO_Pin_1, .GPIO_Speed = GPIO_Speed_25MHz, .GPIO_Mode = GPIO_Mode_OUT, .GPIO_OType = GPIO_OType_PP, }, }, - [HWSETTINGS_WS2811LED_OUT_SERVOOUT6] = { + [HWSETTINGS_WS2811LED_OUT_SERVOOUT6] = { .gpio = GPIOA, - .gpioInit = { + .gpioInit = { .GPIO_Pin = GPIO_Pin_0, .GPIO_Speed = GPIO_Speed_25MHz, .GPIO_Mode = GPIO_Mode_OUT, @@ -2076,7 +2076,7 @@ const struct pios_ws2811_pin_cfg pios_ws2811_pin_cfg[] = { }, [HWSETTINGS_WS2811LED_OUT_FLEXIIOPIN3] = { .gpio = GPIOB, - .gpioInit = { + .gpioInit = { .GPIO_Pin = GPIO_Pin_12, .GPIO_Speed = GPIO_Speed_25MHz, .GPIO_Mode = GPIO_Mode_OUT, @@ -2085,7 +2085,7 @@ const struct pios_ws2811_pin_cfg pios_ws2811_pin_cfg[] = { }, [HWSETTINGS_WS2811LED_OUT_FLEXIIOPIN4] = { .gpio = GPIOB, - .gpioInit = { + .gpioInit = { .GPIO_Pin = GPIO_Pin_13, .GPIO_Speed = GPIO_Speed_25MHz, .GPIO_Mode = GPIO_Mode_OUT, diff --git a/ground/openpilotgcs/src/plugins/setupwizard/connectiondiagram.cpp b/ground/openpilotgcs/src/plugins/setupwizard/connectiondiagram.cpp index 897568c52..20b1d9887 100644 --- a/ground/openpilotgcs/src/plugins/setupwizard/connectiondiagram.cpp +++ b/ground/openpilotgcs/src/plugins/setupwizard/connectiondiagram.cpp @@ -141,7 +141,7 @@ void ConnectionDiagram::setupGraphicsScene() break; default: break; - } + } case VehicleConfigurationSource::VEHICLE_SURFACE: switch (m_configSource->getVehicleSubType()) { case VehicleConfigurationSource::GROUNDVEHICLE_CAR: @@ -156,7 +156,7 @@ void ConnectionDiagram::setupGraphicsScene() default: break; } - case VehicleConfigurationSource::VEHICLE_HELI: + case VehicleConfigurationSource::VEHICLE_HELI: default: break; }