Subversion Repositories Projects

Rev

Rev 449 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 449 Rev 450
Line 75... Line 75...
75
    o_Settings   = t_Settings;
75
    o_Settings   = t_Settings;
76
}
76
}
Line 77... Line 77...
77
 
77
 
78
// Motordaten übernehmen.
78
// Motordaten übernehmen.
79
//FIXME: put this in libMK/Handler.cpp and fill motor values in KopterData
79
//FIXME: put this in libMK/Handler.cpp and fill motor values in KopterData
80
/*
80
 
81
void dlg_MotorMixer::set_MotorConfig(sRxData RX)
81
void dlg_MotorMixer::set_MotorConfig(char * data)
82
{
82
{
Line 83... Line 83...
83
    int Pos = 0;
83
    int Pos = 0;
Line 84... Line 84...
84
 
84
 
Line 85... Line 85...
85
    MixerName = ToolBox::dataToQString(RX.decode, 1, 12);
85
    MixerName = ToolBox::dataToQString(data, 1, 12);
86
 
86
 
87
    Pos = 13;
87
    Pos = 13;
88
 
88
 
89
    for (int z = 0; z < 16; z++)
89
    for (int z = 0; z < 16; z++)
90
    {
90
    {
91
        for (int y = 0; y < 4; y++)
91
        for (int y = 0; y < 4; y++)
92
        {
92
        {
Line 93... Line 93...
93
            Motor[z][y] = Parser::dataToChar(RX.decode,Pos);
93
            Motor[z][y] = Parser::dataToChar(data,Pos);
94
            Pos++;
94
            Pos++;
95
        }
-
 
Line 96... Line 95...
96
    }
95
        }
97
 
96
    }
98
    set_MotorData();
97
 
99
}
98
    set_MotorData();