Ejemplo n.º 1
0
/* tell zapit stored satellite positions in diseqc 1.2 motor */
void CZapitClient::setScanMotorPosList( ScanMotorPosList& motorPosList )
{
	send(CZapitMessages::CMD_SCANSETSCANMOTORPOSLIST);

	for (uint32_t i = 0; i < motorPosList.size(); i++)
	{
		send_data((char*)&motorPosList[i], sizeof(motorPosList[i]));
	}
	close_connection();
}
Ejemplo n.º 2
0
/* tell zapit stored satellite positions in diseqc 1.2 motor */
void CZapitClient::setScanMotorPosList( ScanMotorPosList& motorPosList )
{
	CZapitMessages::commandInt num;
	send(CZapitMessages::CMD_SCANSETSCANMOTORPOSLIST);

	num.val = motorPosList.size();
	send_data((char* )&num, sizeof(num));

	for (int i=0; i<num.val; i++)
	{
		send_data((char*)&motorPosList[i], sizeof(motorPosList[i]));
	}
	close_connection();
}