fix(afhds3): Unable to set SBUS, IBUS display issue, indiv channel PWM freq (#3443)
* Fix the BUG of V0 receiver setting IBUS SBUS; add the setting item of INRM301. * Fix check failure; remove some unused characters. * Fix typos and rename variables as well as fix compilation errors. * add language
This commit is contained in:
@@ -32,17 +32,128 @@ static const lv_coord_t row_dsc[] = {LV_GRID_CONTENT,
|
|||||||
#define SET_DIRTY()
|
#define SET_DIRTY()
|
||||||
|
|
||||||
static const char* _analog_outputs[] = { "PWM", "PPM" };
|
static const char* _analog_outputs[] = { "PWM", "PPM" };
|
||||||
static const char* _bus_types[] = { "iBUS", "iBUS2", "SBUS" };
|
static const char* _bus_types[] = { "iBUS OUT", "iBUS IN", "SBUS" };
|
||||||
static const char* _v1_bus_types[] = { "PWM", "PPM", "SBUS", "iBUS IN", "iBUS OUT" };
|
static const char* _v1_bus_types[] = { "PWM", "PPM", "SBUS", "iBUS IN", "iBUS OUT" };
|
||||||
|
static const char* _v1_pwmfreq_types[] = { STR_ANALOG_SERVO, STR_DIGITAL_SERVO, "SR833HZ", "SFR1000HZ", STR_MULTI_CUSTOM };
|
||||||
|
static const char* _v0_pwmfreq_types[] = { STR_ANALOG_SERVO, STR_DIGITAL_SERVO, STR_MULTI_CUSTOM };
|
||||||
|
|
||||||
|
static const uint16_t _v1_index2pwmvalue[] = {50, 333, 2, 1, 50};
|
||||||
|
static const uint16_t _v0_index2pwmvalue[] = {50, 333, 50};
|
||||||
|
static uint16_t _v1_pwmvalue_type[2][32] = {0xff};
|
||||||
|
static uint8_t channel_num[]={18, 10, 18, 8, 12};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static void pwmfreq_changed(lv_event_t* e)
|
||||||
|
{
|
||||||
|
auto obj = lv_event_get_target(e);
|
||||||
|
auto dat = (Choice*)lv_obj_get_user_data(obj);
|
||||||
|
if (!dat) return;
|
||||||
|
|
||||||
|
auto num_edit_obj = (lv_obj_t*)lv_event_get_user_data(e);
|
||||||
|
if (!num_edit_obj) return;
|
||||||
|
|
||||||
|
if (dat->getIntValue() == 4) {
|
||||||
|
lv_obj_clear_flag(num_edit_obj, LV_OBJ_FLAG_HIDDEN);
|
||||||
|
} else {
|
||||||
|
lv_obj_add_flag(num_edit_obj, LV_OBJ_FLAG_HIDDEN);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
static void pwmfreq_changedV0(lv_event_t* e)
|
||||||
|
{
|
||||||
|
auto obj = lv_event_get_target(e);
|
||||||
|
auto dat = (Choice*)lv_obj_get_user_data(obj);
|
||||||
|
if (!dat) return;
|
||||||
|
|
||||||
|
auto num_edit_obj = (lv_obj_t*)lv_event_get_user_data(e);
|
||||||
|
if (!num_edit_obj) return;
|
||||||
|
|
||||||
|
if (dat->getIntValue() == 2) {
|
||||||
|
lv_obj_clear_flag(num_edit_obj, LV_OBJ_FLAG_HIDDEN);
|
||||||
|
} else {
|
||||||
|
lv_obj_add_flag(num_edit_obj, LV_OBJ_FLAG_HIDDEN);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
PWMfrequencyChoice::PWMfrequencyChoice(Window* parent, uint8_t moduleIdx, uint8_t channelIdx) :
|
||||||
|
FormGroup(parent, rect_t{})
|
||||||
|
{
|
||||||
|
setFlexLayout(LV_FLEX_FLOW_ROW);
|
||||||
|
lv_obj_set_width(lvobj, LV_SIZE_CONTENT);
|
||||||
|
uint16_t &pwmvalue_type = _v1_pwmvalue_type[moduleIdx][channelIdx];
|
||||||
|
auto vCfg = &afhds3::getConfig(moduleIdx)->v1;
|
||||||
|
if( 0xff ==pwmvalue_type )
|
||||||
|
{
|
||||||
|
if ( 50 == vCfg->PWMFrequenciesV1.PWMFrequencies[channelIdx] ) pwmvalue_type = 0;
|
||||||
|
else if ( 333 == vCfg->PWMFrequenciesV1.PWMFrequencies[channelIdx] ) pwmvalue_type = 1;
|
||||||
|
else if ( 2 == vCfg->PWMFrequenciesV1.PWMFrequencies[channelIdx] ) pwmvalue_type = 2;
|
||||||
|
else if ( 1 == vCfg->PWMFrequenciesV1.PWMFrequencies[channelIdx] ) pwmvalue_type = 3;
|
||||||
|
else pwmvalue_type = 4;
|
||||||
|
}
|
||||||
|
auto choice = new Choice(this, rect_t{}, _v1_pwmfreq_types, 0, 4,
|
||||||
|
[=,&pwmvalue_type]{
|
||||||
|
return pwmvalue_type;
|
||||||
|
},
|
||||||
|
[=,&pwmvalue_type](int32_t newValue) {
|
||||||
|
pwmvalue_type=newValue;
|
||||||
|
vCfg->PWMFrequenciesV1.PWMFrequencies[channelIdx] = _v1_index2pwmvalue[newValue];
|
||||||
|
});
|
||||||
|
auto num_edit = new NumberEdit(this, rect_t{}, 50, 400,
|
||||||
|
[=,&pwmvalue_type] { return (pwmvalue_type==4?vCfg->PWMFrequenciesV1.PWMFrequencies[channelIdx]:50); },
|
||||||
|
[=](int16_t newVal) {
|
||||||
|
vCfg->PWMFrequenciesV1.PWMFrequencies[channelIdx] = newVal;
|
||||||
|
});
|
||||||
|
c_obj = choice->getLvObj();
|
||||||
|
auto btn_obj = num_edit->getLvObj();
|
||||||
|
lv_obj_add_event_cb(c_obj, pwmfreq_changed, LV_EVENT_VALUE_CHANGED, btn_obj);
|
||||||
|
lv_event_send(c_obj, LV_EVENT_VALUE_CHANGED, nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
PWMfrequencyChoice::PWMfrequencyChoice(Window* parent, uint8_t moduleIdx ) :
|
||||||
|
FormGroup(parent, rect_t{})
|
||||||
|
{
|
||||||
|
setFlexLayout(LV_FLEX_FLOW_ROW);
|
||||||
|
lv_obj_set_width(lvobj, LV_SIZE_CONTENT);
|
||||||
|
uint16_t &pwmvalue_type = _v1_pwmvalue_type[moduleIdx][0];
|
||||||
|
auto vCfg = &afhds3::getConfig(moduleIdx)->v0;
|
||||||
|
if( 0xff ==pwmvalue_type )
|
||||||
|
{
|
||||||
|
if ( 50 == (vCfg->PWMFrequency.Frequency&0x7fff) ) pwmvalue_type = 0;
|
||||||
|
else if ( 333 == (vCfg->PWMFrequency.Frequency&0x7fff) ) pwmvalue_type = 1;
|
||||||
|
else pwmvalue_type = 2;
|
||||||
|
}
|
||||||
|
auto choice = new Choice(this, rect_t{}, _v0_pwmfreq_types, 0, 2,
|
||||||
|
[=,&pwmvalue_type]{
|
||||||
|
return pwmvalue_type;
|
||||||
|
},
|
||||||
|
[=,&pwmvalue_type](int32_t newValue) {
|
||||||
|
pwmvalue_type=newValue;
|
||||||
|
vCfg->PWMFrequency.Frequency = _v0_index2pwmvalue[newValue];
|
||||||
|
});
|
||||||
|
auto num_edit = new NumberEdit(this, rect_t{}, 50, 400,
|
||||||
|
[=,&pwmvalue_type] { return (pwmvalue_type==2?vCfg->PWMFrequency.Frequency&0x7fff:50); },
|
||||||
|
[=](int16_t newVal) {
|
||||||
|
vCfg->PWMFrequency.Frequency = newVal;
|
||||||
|
});
|
||||||
|
c_obj = choice->getLvObj();
|
||||||
|
auto btn_obj = num_edit->getLvObj();
|
||||||
|
lv_obj_add_event_cb(c_obj, pwmfreq_changedV0, LV_EVENT_VALUE_CHANGED, btn_obj);
|
||||||
|
lv_event_send(c_obj, LV_EVENT_VALUE_CHANGED, nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
void PWMfrequencyChoice::update() const
|
||||||
|
{
|
||||||
|
lv_event_send(c_obj, LV_EVENT_VALUE_CHANGED, nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AFHDS3_Options::AFHDS3_Options(uint8_t moduleIdx) : Page(ICON_MODEL_SETUP)
|
AFHDS3_Options::AFHDS3_Options(uint8_t moduleIdx) : Page(ICON_MODEL_SETUP)
|
||||||
{
|
{
|
||||||
cfg = afhds3::getConfig(moduleIdx);
|
cfg = afhds3::getConfig(moduleIdx);
|
||||||
|
|
||||||
std::string title =
|
std::string title =
|
||||||
moduleIdx == INTERNAL_MODULE ? STR_INTERNALRF : STR_EXTERNALRF;
|
moduleIdx == INTERNAL_MODULE ? STR_INTERNALRF : STR_EXTERNALRF;
|
||||||
title += "\nAFHDS3";
|
title += "AFHDS3";
|
||||||
|
title += moduleIdx == INTERNAL_MODULE ?"\nINRM301":"\nFRM303";
|
||||||
header.setTitle(title);
|
header.setTitle(title);
|
||||||
|
|
||||||
auto form = new FormGroup(&body, rect_t{});
|
auto form = new FormGroup(&body, rect_t{});
|
||||||
@@ -55,56 +166,87 @@ AFHDS3_Options::AFHDS3_Options(uint8_t moduleIdx) : Page(ICON_MODEL_SETUP)
|
|||||||
auto vCfg = &cfg->v0;
|
auto vCfg = &cfg->v0;
|
||||||
|
|
||||||
auto line = form->newLine(&grid);
|
auto line = form->newLine(&grid);
|
||||||
new StaticText(line, rect_t{}, "PWM frequency");
|
std::string temp_str ="PWM";
|
||||||
new NumberEdit(line, rect_t{}, 50, 400, GET_SET_DEFAULT(vCfg->PWMFrequency.Frequency));
|
temp_str += TR_POWERMETER_FREQ;
|
||||||
|
new StaticText(line, rect_t{}, temp_str);
|
||||||
|
new PWMfrequencyChoice(line, moduleIdx );
|
||||||
|
//new NumberEdit(line, rect_t{}, 50, 400, GET_SET_DEFAULT(vCfg->PWMFrequency.Frequency));
|
||||||
|
temp_str ="PWM";
|
||||||
|
temp_str +=STR_SYNC;
|
||||||
line = form->newLine(&grid);
|
line = form->newLine(&grid);
|
||||||
new StaticText(line, rect_t{}, "PWM sychronized");
|
new StaticText(line, rect_t{}, temp_str);
|
||||||
new CheckBox(line, rect_t{}, GET_SET_DEFAULT(vCfg->PWMFrequency.Synchronized));
|
new CheckBox(line, rect_t{}, GET_SET_DEFAULT(vCfg->PWMFrequency.Synchronized));
|
||||||
|
|
||||||
|
|
||||||
line = form->newLine(&grid);
|
line = form->newLine(&grid);
|
||||||
new StaticText(line, rect_t{}, "Analog output");
|
temp_str = TR_CHANS;
|
||||||
|
temp_str += "1";
|
||||||
|
new StaticText(line, rect_t{}, temp_str );
|
||||||
new Choice(line, rect_t{}, _analog_outputs,
|
new Choice(line, rect_t{}, _analog_outputs,
|
||||||
afhds3::SES_ANALOG_OUTPUT_PWM, afhds3::SES_ANALOG_OUTPUT_PPM,
|
afhds3::SES_ANALOG_OUTPUT_PWM, afhds3::SES_ANALOG_OUTPUT_PPM,
|
||||||
GET_SET_DEFAULT(vCfg->AnalogOutput));
|
GET_SET_DEFAULT(vCfg->AnalogOutput));
|
||||||
|
|
||||||
line = form->newLine(&grid);
|
line = form->newLine(&grid);
|
||||||
new StaticText(line, rect_t{}, "External bus type");
|
new StaticText(line, rect_t{}, STR_SERIAL_BUS);
|
||||||
new Choice(line, rect_t{}, _bus_types,
|
new Choice(line, rect_t{}, _bus_types,
|
||||||
afhds3::EB_BT_IBUS1, afhds3::EB_BT_SBUS1,
|
0, 2,
|
||||||
GET_SET_DEFAULT(vCfg->ExternalBusType));
|
GET_SET_DEFAULT(cfg->BusType.ExternalBusType));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
auto vCfg = &cfg->v1;
|
auto vCfg = &cfg->v1;
|
||||||
|
for (uint8_t i = 0; i < channel_num[vCfg->PhyMode]; i++) {
|
||||||
|
std::string temp_str=TR_CHANS;
|
||||||
|
temp_str += std::to_string(i+1);
|
||||||
|
auto line = form->newLine(&grid);
|
||||||
|
new StaticText(line, rect_t{}, temp_str);
|
||||||
|
new PWMfrequencyChoice(line, moduleIdx, i);
|
||||||
|
|
||||||
auto line = form->newLine(&grid);
|
temp_str ="PWM";
|
||||||
new StaticText(line, rect_t{}, "PWM frequency");
|
temp_str +=STR_SYNC;
|
||||||
new NumberEdit(line, rect_t{}, 50, 400,
|
line = form->newLine(&grid);
|
||||||
GET_DEFAULT(vCfg->PWMFrequenciesV1.PWMFrequencies[0]),
|
new StaticText(line, rect_t{}, temp_str);
|
||||||
[=](int16_t newVal) {
|
new CheckBox(
|
||||||
for (uint8_t i = 0; i < SES_NB_MAX_CHANNELS; i++) {
|
line, rect_t{}, GET_DEFAULT((vCfg->PWMFrequenciesV1.Synchronized&1<<i)>>i),
|
||||||
vCfg->PWMFrequenciesV1.PWMFrequencies[i] = newVal;
|
[=](uint8_t newVal) {
|
||||||
}
|
vCfg->PWMFrequenciesV1.Synchronized &= ~(1<<i);
|
||||||
});
|
vCfg->PWMFrequenciesV1.Synchronized |= (newVal?1:0)<<i;
|
||||||
|
});
|
||||||
line = form->newLine(&grid);
|
}
|
||||||
new StaticText(line, rect_t{}, "PWM sychronized");
|
|
||||||
new CheckBox(
|
|
||||||
line, rect_t{}, GET_DEFAULT(vCfg->PWMFrequenciesV1.Synchronized),
|
|
||||||
[=](uint8_t newVal) {
|
|
||||||
vCfg->PWMFrequenciesV1.Synchronized = newVal ? 0xFFFFFFFF : 0;
|
|
||||||
});
|
|
||||||
|
|
||||||
for (uint8_t i = 0; i < SES_NPT_NB_MAX_PORTS; i++) {
|
for (uint8_t i = 0; i < SES_NPT_NB_MAX_PORTS; i++) {
|
||||||
line = form->newLine(&grid);
|
auto line = form->newLine(&grid);
|
||||||
|
|
||||||
std::string portName = "NP";
|
std::string portName = "NP";
|
||||||
portName += 'A' + i;
|
portName += 'A' + i;
|
||||||
|
|
||||||
new StaticText(line, rect_t{}, portName.c_str());
|
new StaticText(line, rect_t{}, portName.c_str());
|
||||||
new Choice(line, rect_t{}, _v1_bus_types, afhds3::SES_NPT_PWM,
|
new Choice(line, rect_t{}, _v1_bus_types, afhds3::SES_NPT_PWM,
|
||||||
afhds3::SES_NPT_IBUS1_OUT,
|
afhds3::SES_NPT_IBUS1_OUT,
|
||||||
GET_SET_DEFAULT(vCfg->NewPortTypes[i]));
|
GET_DEFAULT(vCfg->NewPortTypes[i]),
|
||||||
|
[=](int32_t newValue) {
|
||||||
|
if(!newValue)
|
||||||
|
vCfg->NewPortTypes[i] = newValue;
|
||||||
|
else {
|
||||||
|
uint8_t j = 0;
|
||||||
|
for ( j = 0; j < SES_NPT_NB_MAX_PORTS; j++) {
|
||||||
|
if ( vCfg->NewPortTypes[j]== newValue && i != j )
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//The RX does not support two or more ports to output IBUS (the same is true for PPM and SBUS).
|
||||||
|
if(j==SES_NPT_NB_MAX_PORTS ) vCfg->NewPortTypes[i] = newValue;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
auto line = form->newLine(&grid);
|
||||||
|
new StaticText(line, rect_t{}, STR_SIGNAL_OUTPUT);
|
||||||
|
std::vector<std::string> signed_strength_ch;
|
||||||
|
signed_strength_ch.emplace_back(STR_OFF);
|
||||||
|
for(int i=0; i<channel_num[cfg->v1.PhyMode]; i++ ){
|
||||||
|
std::string temstr = TR_CHANS;
|
||||||
|
temstr += std::to_string(i+1);
|
||||||
|
signed_strength_ch.emplace_back(temstr);
|
||||||
|
}
|
||||||
|
new Choice(line, rect_t{}, signed_strength_ch,
|
||||||
|
0, channel_num[cfg->v1.PhyMode],
|
||||||
|
[=] { return cfg->v1.SignalStrengthRCChannelNb==0xff?0:cfg->v1.SignalStrengthRCChannelNb+1; },
|
||||||
|
[=](int32_t newValue) { newValue?cfg->v1.SignalStrengthRCChannelNb = newValue-1:cfg->v1.SignalStrengthRCChannelNb=0xff;});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,15 @@
|
|||||||
#include "page.h"
|
#include "page.h"
|
||||||
#include "pulses/afhds3_config.h"
|
#include "pulses/afhds3_config.h"
|
||||||
|
|
||||||
|
struct PWMfrequencyChoice : public FormGroup {
|
||||||
|
PWMfrequencyChoice(Window* parent, uint8_t moduleIdx, uint8_t channelIdx);
|
||||||
|
PWMfrequencyChoice(Window* parent, uint8_t moduleIdx);
|
||||||
|
void update() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
lv_obj_t* c_obj;
|
||||||
|
};
|
||||||
|
|
||||||
class AFHDS3_Options : public Page
|
class AFHDS3_Options : public Page
|
||||||
{
|
{
|
||||||
afhds3::Config_u* cfg;
|
afhds3::Config_u* cfg;
|
||||||
|
|||||||
+175
-72
@@ -73,6 +73,37 @@ static uint8_t _phyMode_channels[] = {
|
|||||||
// EMPTY_DT,
|
// EMPTY_DT,
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
//Product number
|
||||||
|
#define PN_FRM301 ( (0x1234<<16) | 0x0003 )
|
||||||
|
#define PN_FRM004 ( (0x1234<<16) | 0x0007 )
|
||||||
|
#define PN_FRM005 ( (0x1234<<16) | 0x0009 )
|
||||||
|
|
||||||
|
#define PN_FTR10 ( (0x1234<<16) | 0x0002 )
|
||||||
|
#define PN_FGR4 ( (0x1234<<16) | 0x0004 )
|
||||||
|
|
||||||
|
#define PN_FTR4 ( (0x1234<<16) | 0x0006 )
|
||||||
|
#define PN_FGR4S ( (0x1234<<16) | 0x0006 )
|
||||||
|
#define PN_FGR4P ( (0x1234<<16) | 0x0006 )
|
||||||
|
|
||||||
|
#define PN_FTR16S ( (0x0001<<16) | 0x0103 )
|
||||||
|
//#define PN_MINIZ ( (0x0001<<16) | 0x0104 )
|
||||||
|
|
||||||
|
#define PN_FTR8B ( (0x0001<<16) | 0x0105 )
|
||||||
|
#define PN_FTR12B ( (0x0001<<16) | 0x0106 )
|
||||||
|
#define PN_FGR8B ( (0x0001<<16) | 0x0107 )
|
||||||
|
#define PN_FGR12B ( (0x0001<<16) | 0x0108 )
|
||||||
|
#define PN_GMR ( (0x0001<<16) | 0x0109 )
|
||||||
|
#define PN_TMR ( (0x0001<<16) | 0x010A )
|
||||||
|
#define PN_INR4_GYB ( (0x0001<<16) | 0x010B )
|
||||||
|
#define PN_INR6_HS ( (0x0001<<16) | 0x010C )
|
||||||
|
#define PN_FTR4B ( (0x0001<<16) | 0x010D )
|
||||||
|
#define PN_FGR4B ( (0x0001<<16) | 0x010E )
|
||||||
|
#define PN_FBR12 ( (0x0001<<16) | 0x010F )
|
||||||
|
#define PN_INR6_FC ( (0x0001<<16) | 0x0110 )
|
||||||
|
#define PN_TR8B ( (0x0001<<16) | 0x0111 )
|
||||||
|
#define PN_FBR8 ( (0x0001<<16) | 0x0112 )
|
||||||
|
#define PN_FBR4 ( (0x0001<<16) | 0x0113 )
|
||||||
|
|
||||||
// enum used by command response -> translate to ModuleState
|
// enum used by command response -> translate to ModuleState
|
||||||
enum MODULE_READY_E {
|
enum MODULE_READY_E {
|
||||||
MODULE_STATUS_UNKNOWN = 0x00,
|
MODULE_STATUS_UNKNOWN = 0x00,
|
||||||
@@ -146,14 +177,29 @@ enum DeviceAddress {
|
|||||||
IRM301 = 0x05,
|
IRM301 = 0x05,
|
||||||
};
|
};
|
||||||
|
|
||||||
PACK(struct ModuleVersion {
|
PACK(struct ModuleVersion
|
||||||
|
{
|
||||||
|
uint16_t companyNumber;
|
||||||
|
uint32_t txID;
|
||||||
|
uint32_t rxID;
|
||||||
uint32_t productNumber;
|
uint32_t productNumber;
|
||||||
uint32_t hardwereVersion;
|
uint32_t hardwareVersion;
|
||||||
uint32_t bootloaderVersion;
|
uint32_t bootloaderVersion;
|
||||||
uint32_t firmwareVersion;
|
uint32_t firmwareVersion;
|
||||||
uint32_t rfVersion;
|
uint32_t rfVersion;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
PACK(struct ReceiverVersion
|
||||||
|
{
|
||||||
|
uint32_t ProductNumber;
|
||||||
|
uint16_t MainboardVersion;
|
||||||
|
uint16_t RFModuleVersion;
|
||||||
|
uint16_t BootloaderVersion;
|
||||||
|
uint16_t FirmwareVersion;
|
||||||
|
uint16_t RFLibraryVersion;
|
||||||
|
} );
|
||||||
|
|
||||||
PACK(struct CommandResult_s {
|
PACK(struct CommandResult_s {
|
||||||
uint16_t command;
|
uint16_t command;
|
||||||
uint8_t result;
|
uint8_t result;
|
||||||
@@ -171,6 +217,7 @@ union AfhdsFrameData {
|
|||||||
|
|
||||||
#define FRM302_STATUS 0x56
|
#define FRM302_STATUS 0x56
|
||||||
|
|
||||||
|
uint8_t receiver_type( unsigned long productnumber );
|
||||||
class ProtoState
|
class ProtoState
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -251,6 +298,7 @@ class ProtoState
|
|||||||
bool modelIDSet;
|
bool modelIDSet;
|
||||||
bool modelcfgGet;
|
bool modelcfgGet;
|
||||||
uint8_t modelID;
|
uint8_t modelID;
|
||||||
|
uint32_t cmd_flg;
|
||||||
/**
|
/**
|
||||||
* Command count used for counting actual number of commands sent in run mode
|
* Command count used for counting actual number of commands sent in run mode
|
||||||
*/
|
*/
|
||||||
@@ -275,6 +323,7 @@ class ProtoState
|
|||||||
* Actual module version - must be requested from module
|
* Actual module version - must be requested from module
|
||||||
*/
|
*/
|
||||||
ModuleVersion version;
|
ModuleVersion version;
|
||||||
|
ReceiverVersion rx_version;
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char* const moduleStateText[] =
|
static const char* const moduleStateText[] =
|
||||||
@@ -559,16 +608,29 @@ void ProtoState::parseData(uint8_t* rxBuffer, uint8_t rxBufferCount)
|
|||||||
moduleData->afhds3.emi = cfg.v0.EMIStandard;
|
moduleData->afhds3.emi = cfg.v0.EMIStandard;
|
||||||
moduleData->afhds3.telemetry = cfg.v0.IsTwoWay;
|
moduleData->afhds3.telemetry = cfg.v0.IsTwoWay;
|
||||||
moduleData->afhds3.phyMode = cfg.v0.PhyMode;
|
moduleData->afhds3.phyMode = cfg.v0.PhyMode;
|
||||||
|
cfg.BusType.ExternalBusType = cfg.v0.ExternalBusType;
|
||||||
} break;
|
} break;
|
||||||
case COMMAND::MODULE_VERSION:
|
case COMMAND::MODULE_VERSION:
|
||||||
std::memcpy((void*) &version, &responseFrame->value, sizeof(version));
|
std::memcpy((void*) &version, &responseFrame->value, sizeof(version));
|
||||||
TRACE("AFHDS3 [MODULE_VERSION] Product %d, HW %d, BOOT %d, FW %d",
|
TRACE("AFHDS3 [MODULE_VERSION] Product %d, HW %d, BOOT %d, FW %d",
|
||||||
version.productNumber, version.hardwereVersion,
|
version.productNumber, version.hardwareVersion,
|
||||||
version.bootloaderVersion, version.firmwareVersion);
|
version.bootloaderVersion, version.firmwareVersion);
|
||||||
break;
|
break;
|
||||||
case COMMAND::MODULE_STATE:
|
case COMMAND::MODULE_STATE:
|
||||||
TRACE("AFHDS3 [MODULE_STATE] %02X", responseFrame->value);
|
TRACE("AFHDS3 [MODULE_STATE] %02X", responseFrame->value);
|
||||||
setState((ModuleState)responseFrame->value);
|
setState((ModuleState)responseFrame->value);
|
||||||
|
if(STATE_SYNC_DONE == (ModuleState)responseFrame->value){
|
||||||
|
if(this->cmd_flg & 0x04)
|
||||||
|
{
|
||||||
|
this->cmd_flg &= ~0x04;
|
||||||
|
this->cmd_flg |= 0x02;
|
||||||
|
trsp.enqueue(COMMAND::MODULE_VERSION, FRAME_TYPE::REQUEST_GET_DATA);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->cmd_flg |= 0x04;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case COMMAND::MODULE_MODE:
|
case COMMAND::MODULE_MODE:
|
||||||
TRACE("AFHDS3 [MODULE_MODE] %02X", responseFrame->value);
|
TRACE("AFHDS3 [MODULE_MODE] %02X", responseFrame->value);
|
||||||
@@ -630,10 +692,38 @@ void ProtoState::parseData(uint8_t* rxBuffer, uint8_t rxBufferCount)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case COMMAND::COMMAND_RESULT: {
|
case COMMAND::COMMAND_RESULT: {
|
||||||
// AfhdsFrameData* respData = responseFrame->GetData();
|
uint8_t *data = &responseFrame->value;
|
||||||
// TRACE("COMMAND RESULT %02X result %d datalen %d",
|
uint16_t cmd_code = *data++;
|
||||||
// respData->CommandResult.command, respData->CommandResult.result,
|
cmd_code |= (*data++)<<8;
|
||||||
// respData->CommandResult.respLen);
|
uint8_t result = *data++;
|
||||||
|
switch (cmd_code)
|
||||||
|
{
|
||||||
|
case RX_CMD_GET_VERSION :
|
||||||
|
if(RX_CMDRESULT::RXSUCCESS==result)
|
||||||
|
{
|
||||||
|
if(14==*data++)
|
||||||
|
{
|
||||||
|
this->cmd_flg &= ~0x02;
|
||||||
|
std::memcpy((void*) &rx_version, data, sizeof(rx_version));
|
||||||
|
this->cmd_flg |= 0x08;
|
||||||
|
}
|
||||||
|
}break;
|
||||||
|
case RX_CMD_BUS_TYPE_V0:
|
||||||
|
if(RX_CMDRESULT::RXSUCCESS==result)
|
||||||
|
{
|
||||||
|
this->cmd_flg &= ~0x28;
|
||||||
|
}break;
|
||||||
|
case RX_CMD_IBUS_DIRECTION:
|
||||||
|
if(RX_CMDRESULT::RXSUCCESS==*data++)
|
||||||
|
{
|
||||||
|
this->cmd_flg &= ~0x10;
|
||||||
|
auto *cfg = this->getConfig();
|
||||||
|
if( 0==cfg->version && 2==cfg->v0.ExternalBusType)
|
||||||
|
this->cmd_flg |= 0x20;
|
||||||
|
}break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -656,70 +746,63 @@ inline bool isPWM(uint8_t mode)
|
|||||||
|
|
||||||
bool ProtoState::syncSettings()
|
bool ProtoState::syncSettings()
|
||||||
{
|
{
|
||||||
// RUN_POWER targetPower = getRunPower();
|
if (this->state != ModuleState::STATE_SYNC_DONE) {
|
||||||
|
return false;
|
||||||
// /*not sure if we need to prevent them in bind mode*/
|
}
|
||||||
// if (getModuleMode(module_index) != ::ModuleSettingsMode::MODULE_MODE_BIND &&
|
if(this->cmd_flg&0x02)
|
||||||
// targetPower != cfg.config.runPower) {
|
{
|
||||||
// cfg.config.runPower = moduleData->afhds3.runPower;
|
uint8_t data[] = { (uint8_t)(RX_CMD_GET_VERSION&0xFF), (uint8_t)((RX_CMD_GET_VERSION>>8)&0xFF), 0x00 };
|
||||||
// uint8_t data[] = {0x13, 0x20, 0x02, moduleData->afhds3.runPower, 0};
|
trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data, sizeof(data));
|
||||||
// TRACE("AFHDS3 SET TX POWER %d", moduleData->afhds3.runPower);
|
return true;
|
||||||
// trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data,
|
}
|
||||||
// sizeof(data));
|
auto *cfg = this->getConfig();
|
||||||
// return true;
|
if((this->cmd_flg&0x38) && (!cfg->version) )
|
||||||
// }
|
{
|
||||||
|
uint8_t bustype = cfg->BusType.ExternalBusType<=1?0:2;
|
||||||
// // other settings only in 2 way mode (state must be synchronized)
|
uint8_t busdir = cfg->BusType.ExternalBusType;
|
||||||
// if (this->state != ModuleState::STATE_SYNC_DONE) {
|
if( 1==receiver_type(rx_version.ProductNumber) )
|
||||||
// return false;
|
{
|
||||||
// }
|
if(this->cmd_flg&0x08)
|
||||||
|
{
|
||||||
// if (moduleData->afhds3.rxFreq() != cfg.config.pwmFreq) {
|
uint8_t data[] = { (uint8_t)(RX_CMD_BUS_TYPE_V0&0xFF), (uint8_t)((RX_CMD_BUS_TYPE_V0>>8)&0xFF), 0x1, bustype };
|
||||||
// cfg.config.pwmFreq = moduleData->afhds3.rxFreq();
|
trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data, sizeof(data));
|
||||||
// uint8_t data[] = {0x17, 0x70, 0x02,
|
if(busdir<2)
|
||||||
// (uint8_t)(moduleData->afhds3.rxFreq() & 0xFF),
|
this->cmd_flg |= 0x10;
|
||||||
// (uint8_t)(moduleData->afhds3.rxFreq() >> 8)};
|
return true;
|
||||||
// TRACE("AFHDS3 SET RX FREQ");
|
}
|
||||||
// trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data,
|
if((this->cmd_flg&0x10) && busdir<2)
|
||||||
// sizeof(data));
|
{
|
||||||
// return true;
|
cfg->BusType.ExternalBusType = IBUS1_OUT;
|
||||||
// }
|
busdir = IBUS1_OUT;
|
||||||
|
uint8_t data1[] = { (uint8_t)(RX_CMD_IBUS_DIRECTION&0xFF), (uint8_t)((RX_CMD_IBUS_DIRECTION>>8)&0xFF), 0x1, busdir };
|
||||||
// PULSE_MODE modelPulseMode = isPWM(moduleData->afhds3.mode)
|
trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data1, sizeof(data1));
|
||||||
// ? PULSE_MODE::PWM_MODE
|
return true;
|
||||||
// : PULSE_MODE::PPM_MODE;
|
}
|
||||||
// if (modelPulseMode != cfg.config.pulseMode) {
|
}
|
||||||
// cfg.config.pulseMode = modelPulseMode;
|
else if( 2==receiver_type(rx_version.ProductNumber) )
|
||||||
// TRACE("AFHDS3 PWM/PPM %d", modelPulseMode);
|
{
|
||||||
// uint8_t data[] = {0x16, 0x70, 0x01, (uint8_t)(modelPulseMode)};
|
if(this->cmd_flg&0x08)
|
||||||
// trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data,
|
{
|
||||||
// sizeof(data));
|
uint8_t data[] = { (uint8_t)(RX_CMD_BUS_TYPE_V0&0xFF), (uint8_t)((RX_CMD_BUS_TYPE_V0>>8)&0xFF), 0x1, 0 };
|
||||||
// return true;
|
trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data, sizeof(data));
|
||||||
// }
|
this->cmd_flg |= 0x10;
|
||||||
|
return true;
|
||||||
// SERIAL_MODE modelSerialMode = isSbus(moduleData->afhds3.mode)
|
}
|
||||||
// ? SERIAL_MODE::SBUS_MODE
|
else if((this->cmd_flg&0x10))
|
||||||
// : SERIAL_MODE::IBUS;
|
{
|
||||||
// if (modelSerialMode != cfg.config.serialMode) {
|
if(busdir>=2) busdir = 0; //IBUSOUT
|
||||||
// cfg.config.serialMode = modelSerialMode;
|
uint8_t data1[] = { (uint8_t)(RX_CMD_IBUS_DIRECTION&0xFF), (uint8_t)((RX_CMD_IBUS_DIRECTION>>8)&0xFF), 0x1, busdir };
|
||||||
// TRACE("AFHDS3 IBUS/SBUS %d", modelSerialMode);
|
trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data1, sizeof(data1));
|
||||||
// uint8_t data[] = {0x18, 0x70, 0x01, (uint8_t)(modelSerialMode)};
|
return true;
|
||||||
// trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data,
|
}
|
||||||
// sizeof(data));
|
else if((this->cmd_flg&0x20))
|
||||||
// return true;
|
{
|
||||||
// }
|
uint8_t data[] = { (uint8_t)(RX_CMD_BUS_TYPE_V0&0xFF), (uint8_t)((RX_CMD_BUS_TYPE_V0>>8)&0xFF), 0x1, 2 };
|
||||||
|
trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data, sizeof(data));
|
||||||
// if (moduleData->afhds3.failsafeTimeout != cfg.config.failSafeTimout) {
|
return true;
|
||||||
// moduleData->afhds3.failsafeTimeout = cfg.config.failSafeTimout;
|
}
|
||||||
// uint8_t data[] = {0x12, 0x60, 0x02,
|
}
|
||||||
// (uint8_t)(moduleData->afhds3.failsafeTimeout & 0xFF),
|
}
|
||||||
// (uint8_t)(moduleData->afhds3.failsafeTimeout >> 8)};
|
|
||||||
// trsp.sendFrame(COMMAND::SEND_COMMAND, FRAME_TYPE::REQUEST_SET_EXPECT_DATA, data,
|
|
||||||
// sizeof(data));
|
|
||||||
// TRACE("AFHDS3 FAILSAFE TMEOUT, %d", moduleData->afhds3.failsafeTimeout);
|
|
||||||
// return true;
|
|
||||||
// }
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -798,7 +881,7 @@ void ProtoState::applyConfigFromModel()
|
|||||||
cfg.v0.EMIStandard = moduleData->afhds3.emi;
|
cfg.v0.EMIStandard = moduleData->afhds3.emi;
|
||||||
cfg.v0.IsTwoWay = moduleData->afhds3.telemetry;
|
cfg.v0.IsTwoWay = moduleData->afhds3.telemetry;
|
||||||
cfg.v0.PhyMode = moduleData->afhds3.phyMode;
|
cfg.v0.PhyMode = moduleData->afhds3.phyMode;
|
||||||
|
cfg.v0.ExternalBusType = cfg.BusType.ExternalBusType==1?0:cfg.BusType.ExternalBusType;
|
||||||
// Failsafe
|
// Failsafe
|
||||||
setFailSafe(cfg.v0.FailSafe);
|
setFailSafe(cfg.v0.FailSafe);
|
||||||
if (moduleData->failsafeMode != FAILSAFE_NOPULSES) {
|
if (moduleData->failsafeMode != FAILSAFE_NOPULSES) {
|
||||||
@@ -809,6 +892,26 @@ void ProtoState::applyConfigFromModel()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t receiver_type( unsigned long productnumber )
|
||||||
|
{
|
||||||
|
if(PN_FTR10 == productnumber || PN_FGR4 == productnumber || PN_FTR16S == productnumber)
|
||||||
|
{
|
||||||
|
return 1; // This type of RX can be set to IBUS-OUT/SBUS
|
||||||
|
}
|
||||||
|
else if(PN_FTR4 == productnumber)
|
||||||
|
{
|
||||||
|
return 2; // This type of RX can be set to IBUS-IN/IBUS-OUT/SBUS
|
||||||
|
}
|
||||||
|
else if( (PN_FTR8B&0xFFFF) <= productnumber)
|
||||||
|
{
|
||||||
|
return 3; //V1 RX
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
inline int16_t ProtoState::convert(int channelValue)
|
inline int16_t ProtoState::convert(int channelValue)
|
||||||
{
|
{
|
||||||
//pulseValue = limit<uint16_t>(0, 988 + ((channelValue + 1024) / 2), 0xfff);
|
//pulseValue = limit<uint16_t>(0, 988 + ((channelValue + 1024) / 2), 0xfff);
|
||||||
|
|||||||
@@ -43,6 +43,12 @@ enum eEB_BusType {
|
|||||||
EB_BT_SBUS1
|
EB_BT_SBUS1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
IBUS1_OUT,
|
||||||
|
IBUS1_IN, //Not yet supported
|
||||||
|
} eIBUS1_DIR;
|
||||||
|
|
||||||
// 48 bytes
|
// 48 bytes
|
||||||
PACK(struct sDATA_ConfigV0 {
|
PACK(struct sDATA_ConfigV0 {
|
||||||
uint8_t Version; // =0
|
uint8_t Version; // =0
|
||||||
@@ -98,12 +104,18 @@ PACK(struct sDATA_ConfigV1 {
|
|||||||
sSES_PWMFrequenciesAPPV1 PWMFrequenciesV1;
|
sSES_PWMFrequenciesAPPV1 PWMFrequenciesV1;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
PACK(struct sDATA_BusType {
|
||||||
|
uint8_t buffer[sizeof(sDATA_ConfigV1)];
|
||||||
|
uint8_t ExternalBusType; // eEB_BusType
|
||||||
|
});
|
||||||
|
|
||||||
union Config_u
|
union Config_u
|
||||||
{
|
{
|
||||||
uint8_t version;
|
uint8_t version;
|
||||||
sDATA_ConfigV0 v0;
|
sDATA_ConfigV0 v0;
|
||||||
sDATA_ConfigV1 v1;
|
sDATA_ConfigV1 v1;
|
||||||
uint8_t buffer[sizeof(sDATA_ConfigV1)];
|
uint8_t buffer[sizeof(sDATA_ConfigV1)];
|
||||||
|
sDATA_BusType BusType;
|
||||||
};
|
};
|
||||||
|
|
||||||
Config_u* getConfig(uint8_t moduleIdx);
|
Config_u* getConfig(uint8_t moduleIdx);
|
||||||
|
|||||||
@@ -70,6 +70,14 @@ enum COMMAND : uint8_t {
|
|||||||
#define RX_CMD_BUS_FAILSAFE ( 0x702A )
|
#define RX_CMD_BUS_FAILSAFE ( 0x702A )
|
||||||
#define RX_CMD_GET_VERSION ( 0x701F )
|
#define RX_CMD_GET_VERSION ( 0x701F )
|
||||||
|
|
||||||
|
enum RX_CMDRESULT: uint8_t
|
||||||
|
{
|
||||||
|
RXSUCCESS=0,
|
||||||
|
RXTIMEOUT=1,
|
||||||
|
RXERROR=2, //not support
|
||||||
|
RXINVALID=3,
|
||||||
|
};
|
||||||
|
|
||||||
// one byte frames for request queue
|
// one byte frames for request queue
|
||||||
struct Frame {
|
struct Frame {
|
||||||
enum COMMAND command;
|
enum COMMAND command;
|
||||||
|
|||||||
@@ -990,3 +990,10 @@ const char STR_USBJOYSTICK_CIRC_COUTOUT[] = TR_USBJOYSTICK_CIRC_COUTOUT;
|
|||||||
ISTR(VUSBJOYSTICK_CIRC_COUTOUT);
|
ISTR(VUSBJOYSTICK_CIRC_COUTOUT);
|
||||||
const char STR_USBJOYSTICK_APPLY_CHANGES[] = TR_USBJOYSTICK_APPLY_CHANGES;
|
const char STR_USBJOYSTICK_APPLY_CHANGES[] = TR_USBJOYSTICK_APPLY_CHANGES;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const char STR_DIGITAL_SERVO[] = TR_DIGITAL_SERVO;
|
||||||
|
const char STR_ANALOG_SERVO[] = TR_ANALOG_SERVO;
|
||||||
|
const char STR_SIGNAL_OUTPUT[] = TR_SIGNAL_OUTPUT;
|
||||||
|
const char STR_SERIAL_BUS[] = TR_SERIAL_BUS;
|
||||||
|
const char STR_SYNC[] = TR_SYNC;
|
||||||
|
|
||||||
|
|||||||
@@ -816,6 +816,13 @@ extern const char STR_CONFIRMRESET[];
|
|||||||
extern const char STR_TOO_MANY_LUA_SCRIPTS[];
|
extern const char STR_TOO_MANY_LUA_SCRIPTS[];
|
||||||
extern const char STR_BLCOLOR[];
|
extern const char STR_BLCOLOR[];
|
||||||
|
|
||||||
|
extern const char STR_DIGITAL_SERVO[];
|
||||||
|
extern const char STR_ANALOG_SERVO[];
|
||||||
|
extern const char STR_SIGNAL_OUTPUT[];
|
||||||
|
extern const char STR_SERIAL_BUS[];
|
||||||
|
extern const char STR_SYNC[];
|
||||||
|
|
||||||
|
|
||||||
struct LanguagePack {
|
struct LanguagePack {
|
||||||
const char * id;
|
const char * id;
|
||||||
const char * name;
|
const char * name;
|
||||||
|
|||||||
@@ -1279,3 +1279,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "数字舵机333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "模拟舵机50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "信号强度输出"
|
||||||
|
#define TR_SERIAL_BUS "串行总线"
|
||||||
|
#define TR_SYNC "同步"
|
||||||
|
|||||||
@@ -1281,3 +1281,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1294,3 +1294,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Cirk. klip", "Cikulær klip")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Cirk. klip", "Cikulær klip")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "Ingen","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "Ingen","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Gem ændringer"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Gem ændringer"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1280,3 +1280,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1273,3 +1273,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1284,3 +1284,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1297,3 +1297,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1302,3 +1302,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Appliquer changements"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Appliquer changements"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
@@ -1289,3 +1289,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1274,3 +1274,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1294,3 +1294,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1278,3 +1278,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1287,3 +1287,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1318,3 +1318,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Cirk. klipp", "Cirkulärt klipp")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Cirk. klipp", "Cirkulärt klipp")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "Ingen","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "Ingen","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Tillämpa ändringar"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Tillämpa ändringar"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "Servo333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "Servo 50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "Signal output"
|
||||||
|
#define TR_SERIAL_BUS "Serial bus"
|
||||||
|
#define TR_SYNC "Sync"
|
||||||
|
|||||||
@@ -1277,3 +1277,9 @@
|
|||||||
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
#define TR_USBJOYSTICK_CIRC_COUTOUT TR("Circ. cut", "Circular cutout")
|
||||||
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
#define TR_VUSBJOYSTICK_CIRC_COUTOUT "None","X-Y, Z-rX","X-Y, rX-rY"
|
||||||
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
#define TR_USBJOYSTICK_APPLY_CHANGES "Apply changes"
|
||||||
|
|
||||||
|
#define TR_DIGITAL_SERVO "數字舵機333HZ"
|
||||||
|
#define TR_ANALOG_SERVO "模擬舵機50HZ"
|
||||||
|
#define TR_SIGNAL_OUTPUT "信號強度輸出"
|
||||||
|
#define TR_SERIAL_BUS "串行總線"
|
||||||
|
#define TR_SYNC "同步"
|
||||||
|
|||||||
Reference in New Issue
Block a user