77,8 → 77,8 |
**************************************************************************** */ |
void OsdClear(void) |
{ |
unsigned char i; |
for(i=0;i<80;i++) OSDBuff[i] = ' '; |
unsigned char i; |
for(i=0;i<80;i++) OSDBuff[i] = ' '; |
} |
|
/* **************************************************************************** |
94,8 → 94,8 |
**************************************************************************** */ |
void LcdClear(void) |
{ |
unsigned char i; |
for(i=0;i<80;i++) DisplayBuff[i] = ' '; |
unsigned char i; |
for(i=0;i<80;i++) DisplayBuff[i] = ' '; |
} |
|
|
162,21 → 162,21 |
**************************************************************************** */ |
SIGNAL(SIG_USART1_TRANS) |
{ |
static unsigned int ptr = 0; |
|
unsigned char tmp_tx; |
if(!UART2PrintAbgeschlossen) |
{ |
ptr++; // die [0] wurde schon gesendet |
tmp_tx = OSDBuff[ptr]; |
if((tmp_tx == '\r') /* tmp_tx == 0 */) |
{ |
ptr = 0; |
UART2PrintAbgeschlossen = 1; |
} |
UDR1 = tmp_tx; |
} |
else ptr = 0; |
static unsigned int ptr = 0; |
|
unsigned char tmp_tx; |
if(!UART2PrintAbgeschlossen) |
{ |
ptr++; // die [0] wurde schon gesendet |
tmp_tx = OSDBuff[ptr]; |
if((tmp_tx == '\r') /* tmp_tx == 0 */) |
{ |
ptr = 0; |
UART2PrintAbgeschlossen = 1; |
} |
UDR1 = tmp_tx; |
} |
else ptr = 0; |
} |
|
|
281,11 → 281,11 |
Phi45 = c_atan2((int)(100.F * sin45 * (-sinTheta_P - sinPhi_P_cosTheta_P) / (cosPhi_P * cosTheta_P)) , 100); |
dx = c_cos_8192(Phi45) / 128; |
dy = c_sin_8192(Phi45) / 128; |
x1 = 180 - dx; |
x1 = 180 - dx; |
y1 = 120 + 2 * Theta45 + dy; |
x2 = 180 + dx; |
y2 = y1 - 2 * dy; |
|
|
OSDPtr = 0; |
OSD_printf_("\33[%d;%d.r\33[%d;%d+r\33[0/r",x1_old,y1_old,x2_old,y2_old); |
#endif |