You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include "model/Console.h"
|
|
|
|
|
|
|
|
#include <model/DataSender.h>
|
|
|
|
|
|
|
|
Console::Console()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//********************************************************************************
|
|
|
|
void Console::injectDataSender(DataSender *sender)
|
|
|
|
{
|
|
|
|
_dataSender = sender;
|
|
|
|
}
|
|
|
|
|
|
|
|
//********************************************************************************
|
|
|
|
void Console::test()
|
|
|
|
{
|
|
|
|
QByteArray arr;
|
|
|
|
arr.append(0x01);
|
|
|
|
arr.append(0x03);
|
|
|
|
arr.append(0x05);
|
|
|
|
_dataSender->send(arr);
|
|
|
|
}
|
|
|
|
|
|
|
|
//********************************************************************************
|
|
|
|
void Console::dualPress()
|
|
|
|
{
|
|
|
|
QByteArray arr;
|
|
|
|
|
|
|
|
arr.resize(8);
|
|
|
|
arr[0] = 0x00;
|
|
|
|
arr[1] = 0x01;
|
|
|
|
arr[2] = 0x04;
|
|
|
|
arr[3] = 0x1D;
|
|
|
|
arr[4] = 0x00;
|
|
|
|
arr[5] = 0x00;
|
|
|
|
arr[6] = 0x00;
|
|
|
|
arr[7] = 0x00;
|
|
|
|
_dataSender->send(arr);
|
|
|
|
}
|
|
|
|
|
|
|
|
//********************************************************************************
|
|
|
|
void Console::dualRelease()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//********************************************************************************
|