Rev 1871 | Rev 1879 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1871 | Rev 1876 | ||
---|---|---|---|
Line 305... | Line 305... | ||
305 | FromNC_Rotate_C = FromNaviCtrl.Param.Byte[5]; |
305 | FromNC_Rotate_C = FromNaviCtrl.Param.Byte[5]; |
306 | FromNC_Rotate_S = FromNaviCtrl.Param.Byte[6]; |
306 | FromNC_Rotate_S = FromNaviCtrl.Param.Byte[6]; |
307 | if(CareFree && FromNaviCtrl.Param.sInt[4] >= 0) |
307 | if(CareFree && FromNaviCtrl.Param.sInt[4] >= 0) |
308 | { |
308 | { |
309 | KompassSollWert = FromNaviCtrl.Param.sInt[4]; // bei Carefree kann NC den Kompass-Sollwinkel vorgeben |
309 | KompassSollWert = FromNaviCtrl.Param.sInt[4]; // bei Carefree kann NC den Kompass-Sollwinkel vorgeben |
- | 310 | if(EE_Parameter.CamOrientation) // Kamera angle is not front |
|
- | 311 | { |
|
- | 312 | KompassSollWert += 360 - ((unsigned int) EE_Parameter.CamOrientation * 15); |
|
- | 313 | KompassSollWert %= 360; |
|
- | 314 | } |
|
310 | } |
315 | } |
311 | POI_KameraNick = (POI_KameraNick + FromNaviCtrl.Param.sInt[5]) / 2; // FromNaviCtrl.Param.sInt[5]; // Nickwinkel |
316 | POI_KameraNick = (POI_KameraNick + FromNaviCtrl.Param.sInt[5]) / 2; // FromNaviCtrl.Param.sInt[5]; // Nickwinkel |
312 | break; |
317 | break; |
313 | case SPI_NCCMD_VERSION: |
318 | case SPI_NCCMD_VERSION: |
314 | NC_Version.Major = FromNaviCtrl.Param.Byte[0]; |
319 | NC_Version.Major = FromNaviCtrl.Param.Byte[0]; |