DRONE/dronecommunication.c
void transmit_data(serial_data_struct* pdata_package){
	if (uart0_filestream != -1)
	{
		int count = write(uart0_filestream, pdata_package->txrxdata, pdata_package->cmdLength);
        /*
		printf( "   SENT (len %d): ", pdata_package->cmdLength);		
		for(int i=0; i<pdata_package->cmdLength;++i)
		{
			printf( "%c", pdata_package->txrxdata[i]);
		}
		printf( " \n");	
		if (count < 0)		
		{
			printf("UART TX error\n");
		}
        */
	}
}
//>> Adding checksum and transmitting  data
//------------------------------------------------------------------------------------------------------
>> Adding checksum and transmitting  data
>> Adding checksum and transmitting data
void transmit_data(serial_data_struct* pdata_package){
	if (uart0_filestream != -1)
	{
		int count = write(uart0_filestream, pdata_package->txrxdata, pdata_package->cmdLength);
	}
}
void transmit_data ( serial_data_struct * pdata_package ) { if ( uart0_filestream != -1 ) { int count = write ( uart0_filestream , pdata_package -> txrxdata , pdata_package -> cmdLength ) ; } }
>> Adding checksum and transmitting  data
>> Adding checksum and transmitting data
/*
		printf( "   SENT (len %d): ", pdata_package->cmdLength);		
		for(int i=0; i<pdata_package->cmdLength;++i)
		{
			printf( "%c", pdata_package->txrxdata[i]);
		}
		printf( " \n");	
		if (count < 0)		
		{
			printf("UART TX error\n");
		}
        */