Subversion Repositories Projects

Rev

Rev 674 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 674 Rev 750
Line 66... Line 66...
66
    connect(sb_GIER_12, SIGNAL(valueChanged(int)), this, SLOT(slot_CheckValue(int)));
66
    connect(sb_GIER_12, SIGNAL(valueChanged(int)), this, SLOT(slot_CheckValue(int)));
67
 
67
 
68
}
68
}
69
 
69
 
70
// Connection-Object übergeben.
70
// Connection-Object übergeben.
71
void dlg_MotorMixer::set_Objects(Input *t_Input, cSettings *t_Settings, s_Directorys t_Dir)
71
void dlg_MotorMixer::set_Objects(cSettings *t_Settings, s_Directorys t_Dir)
72
{
72
{
73
    o_Input    = t_Input;
-
 
74
    o_Settings = t_Settings;
73
    o_Settings = t_Settings;
75
    s_Dir      = t_Dir;
74
    s_Dir      = t_Dir;
76
}
75
}
77
 
76
 
78
// Motordaten übernehmen.
77
// Motordaten übernehmen.
Line 243... Line 242...
243
 
242
 
244
// Mixer von der FC Lesen.
243
// Mixer von der FC Lesen.
245
void dlg_MotorMixer::read_Mixer()
244
void dlg_MotorMixer::read_Mixer()
246
{
245
{
247
    c_Data[0] = 0;
246
    c_Data[0] = 0;
248
    o_Input->send_Data(HandlerMK::make_Frame('n', ADDRESS_FC, c_Data, 0).toLatin1().data(), DATA_READ_MIXER);
247
//    o_Input->send_Data(HandlerMK::make_Frame('n', ADDRESS_FC, c_Data, 0).toLatin1().data(), DATA_READ_MIXER);
-
 
248
    emit sig_SendData(HandlerMK::make_Frame('n', ADDRESS_FC, c_Data, 0).toLatin1().data(), DATA_READ_MIXER);
249
}
249
}
250
 
250
 
251
// Button-Slots
251
// Button-Slots
252
void dlg_MotorMixer::slot_pb_READ()
252
void dlg_MotorMixer::slot_pb_READ()
253
{
253
{
Line 258... Line 258...
258
{
258
{
259
    get_MotorData();
259
    get_MotorData();
260
 
260
 
261
    memcpy((unsigned char *)&c_Data, (unsigned char *)&MK_Mixer, sizeof(MK_Mixer));
261
    memcpy((unsigned char *)&c_Data, (unsigned char *)&MK_Mixer, sizeof(MK_Mixer));
262
 
262
 
263
    o_Input->send_Data(HandlerMK::make_Frame('m', ADDRESS_FC, c_Data, sizeof(MK_Mixer)).toLatin1().data(), DATA_WRITE_MIXER);
263
//    o_Input->send_Data(HandlerMK::make_Frame('m', ADDRESS_FC, c_Data, sizeof(MK_Mixer)).toLatin1().data(), DATA_WRITE_MIXER);
-
 
264
    emit sig_SendData(HandlerMK::make_Frame('m', ADDRESS_FC, c_Data, sizeof(MK_Mixer)).toLatin1().data(), DATA_WRITE_MIXER);
264
}
265
}
265
 
266
 
266
void dlg_MotorMixer::slot_pb_LOAD()
267
void dlg_MotorMixer::slot_pb_LOAD()
267
{
268
{
268
    QString Dir = QDir::homePath();
269
    QString Dir = QDir::homePath();