Rev 819 | Rev 854 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 819 | Rev 846 | ||
---|---|---|---|
Line 278... | Line 278... | ||
278 | DebugGetAnforderung = 1; |
278 | DebugGetAnforderung = 1; |
279 | break; |
279 | break; |
280 | case 'q':// "Get"-Anforderung für Settings |
280 | case 'q':// "Get"-Anforderung für Settings |
281 | // Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
281 | // Bei Get werden die vom PC einstellbaren Werte vom PC zurückgelesen |
282 | Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
282 | Decode64((unsigned char *) &tmp_char_arr2[0],sizeof(tmp_char_arr2),3,AnzahlEmpfangsBytes); |
- | 283 | while(!UebertragungAbgeschlossen); |
|
283 | if(tmp_char_arr2[0] != 0xff) |
284 | if(tmp_char_arr2[0] != 0xff) |
284 | { |
285 | { |
285 | if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
286 | if(tmp_char_arr2[0] > 5) tmp_char_arr2[0] = 5; |
286 | ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
287 | ReadParameterSet(tmp_char_arr2[0], (unsigned char *) &EE_Parameter.Kanalbelegung[0], STRUCT_PARAM_LAENGE); |
287 | SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE); |
288 | SendOutData('L' + tmp_char_arr2[0] -1,MeineSlaveAdresse,(unsigned char *) &EE_Parameter.Kanalbelegung[0],STRUCT_PARAM_LAENGE); |
Line 369... | Line 370... | ||
369 | DebugGetAnforderung = 0; |
370 | DebugGetAnforderung = 0; |
370 | } |
371 | } |
Line 371... | Line 372... | ||
371 | 372 | ||
372 | if((CheckDelay(Kompass_Timer)) && UebertragungAbgeschlossen) |
373 | if((CheckDelay(Kompass_Timer)) && UebertragungAbgeschlossen) |
373 | { |
374 | { |
374 | WinkelOut.Winkel[0] = (int) (IntegralNick / 1024); // etwa in Grad |
375 | WinkelOut.Winkel[0] = (int) (IntegralNick / 108); // etwa in 0,1 Grad |
375 | WinkelOut.Winkel[1] = (int) (IntegralRoll / 1024); // etwa in Grad |
376 | WinkelOut.Winkel[1] = (int) (IntegralRoll / 108); // etwa in 0,1 Grad |
376 | WinkelOut.UserParameter[0] = Parameter_UserParam1; |
377 | WinkelOut.UserParameter[0] = Parameter_UserParam1; |
377 | WinkelOut.UserParameter[1] = Parameter_UserParam2; |
378 | WinkelOut.UserParameter[1] = Parameter_UserParam2; |
378 | SendOutData('w',MeineSlaveAdresse,(unsigned char *) &WinkelOut,sizeof(WinkelOut)); |
379 | SendOutData('w',MeineSlaveAdresse,(unsigned char *) &WinkelOut,sizeof(WinkelOut)); |
379 | if(WinkelOut.CalcState > 4) WinkelOut.CalcState = 0; |
380 | if(WinkelOut.CalcState > 4) WinkelOut.CalcState = 0; |