1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
// XWaveCtrl.cpp: Body of the XWaveCtrl class.
//
//////////////////////////////////////////////////////////////////////
#include "XWaveCtrl.h"
#include <stdio.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
XWaveCtrl::XWaveCtrl()
{
}
XWaveCtrl::~XWaveCtrl()
{
}
void XWaveCtrl::OnPacketReceived(CigiBasePacket *Packet)
{
CigiWaveCtrlV3 *InPckt = (CigiWaveCtrlV3 *)Packet;
printf("===> WaveCtrl <===\n");
printf("EntityRgnID ==> %d\n",InPckt->GetEntityRgnID());
printf("WaveID ==> %d\n",InPckt->GetWaveID());
printf("WaveEn ==> %d\n",InPckt->GetWaveEn());
printf("Scope ==> %d\n",InPckt->GetScope());
printf("Breaker ==> %d\n",InPckt->GetBreaker());
printf("WaveHt ==> %f\n",InPckt->GetWaveHt());
printf("WaveLen ==> %f\n",InPckt->GetWaveLen());
printf("Period ==> %f\n",InPckt->GetPeriod());
printf("Direction ==> %f\n",InPckt->GetDirection());
printf("PhaseOff ==> %f\n",InPckt->GetPhaseOff());
printf("Leading ==> %f\n",InPckt->GetLeading());
}
|