##// END OF EJS Templates
Plugin modified to allow the launch of interactiv tests from the python interpreter...
Plugin modified to allow the launch of interactiv tests from the python interpreter the signal processPacketStoreNowSig is sent by the SLOT processPacketStoreLater(unsigned int delay) the SLOT WriteSPWDelay(QList<int> dataList, unsigned int delay) allows the storage of a TC for a sending after "delay" ms

File last commit:

r11:0c9852fa341b default
r11:0c9852fa341b default
Show More
rmappluginpythonwrapper.h
55 lines | 1.8 KiB | text/x-c | CLexer
/ rmapplugin / rmappluginpythonwrapper.h
#ifndef RMAPPLUGINPYTHONWRAPPER_H
#define RMAPPLUGINPYTHONWRAPPER_H
#include <QObject>
#include <genericPySysdriver.h>
#include <QList>
#include <QVariant>
#include "rmapoperations.h"
#include "ccsds.h"
#include <tcpackettosend.h>
#include <QTimer>
class rmappluginPythonWrapper : public genericPySysdriver
{
Q_OBJECT
public:
explicit rmappluginPythonWrapper(QObject *parent = 0);
QList<ccsdsPacketToProcess_t> *ccsdsPacketStore;
void processPacketStore();
unsigned int storeCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size);
QList<TCPacketToSend*> TCPacketStore;
QTimer *timer;
signals:
void ccsdsPacketIsAvailable(unsigned int size);
void wakeUpCallingThread();
unsigned int WriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication);
void updateTargetAddress(unsigned char newAddress);
void updateSourceAddress(unsigned char newAddress);
void activateTCLoopSig();
void processPacketStoreNowSig();
void sendMessage(QString message);
public slots:
QList<QVariant> getData();
QList<QVariant> ReadSPW(unsigned int size);
void WriteSPW(QList<int> dataList);
void WriteSPWDelay(QList<int> dataList, unsigned int delay=0);
void processPacketStoreLater(unsigned int delay);
void sendProcessPacketStoreNowSig(){emit processPacketStoreNowSig();}
void sendTCLoop();
void sendTC();
void reEmitWriteSPWSig(char *Value, unsigned int count, char targetLogicalAddress, char userApplication)
{emit WriteSPWSig(Value, count, targetLogicalAddress, userApplication);}
void setTargetAddressValue(unsigned int address);
void setSourceAddressValue(unsigned int address);
void ProcessPendingEvents();
};
#endif // RMAPPLUGINPYTHONWRAPPER_H