comparison Small_CPU/Src/baseCPU2.c @ 899:2225c467f1e9 Evo_2_23

Added data path and visualization for position data: The GNSS data exchange is now initialized and triggered on a cyclic basis (once a second). RTE verion has been increased because of interface change. For now only the position data is shown in a T7 surface views. The functionality may be switched on/off using the compile switch ENABLE_GNSS.
author Ideenmodellierer
date Mon, 30 Sep 2024 21:56:05 +0200
parents 651d21777b61
children 6a7701f66b16
comparison
equal deleted inserted replaced
898:fac13aa6ba93 899:2225c467f1e9
166 166
167 // SHALL LOAD AT 0x08000000 + 0x00005000 = 0x08005000. 167 // SHALL LOAD AT 0x08000000 + 0x00005000 = 0x08005000.
168 // See CPU2-RTE.ld 168 // See CPU2-RTE.ld
169 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= { 169 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= {
170 .versionFirst = 3, 170 .versionFirst = 3,
171 .versionSecond = 3, 171 .versionSecond = 4,
172 .versionThird = 0, 172 .versionThird = 0,
173 .versionBeta = 1, 173 .versionBeta = 1,
174 174
175 /* 4 bytes with trailing 0 */ 175 /* 4 bytes with trailing 0 */
176 .signature = "mh", 176 .signature = "mh",
432 432
433 // GNSS tests 433 // GNSS tests
434 GNSS_IO_init(); 434 GNSS_IO_init();
435 MX_USART6_UART_Init(); 435 MX_USART6_UART_Init();
436 GNSS_Init(&GNSS_Handle, &huart6); 436 GNSS_Init(&GNSS_Handle, &huart6);
437
438 #if 0
437 HAL_Delay(1000); 439 HAL_Delay(1000);
438 GNSS_LoadConfig(&GNSS_Handle); 440 GNSS_LoadConfig(&GNSS_Handle);
439 HAL_Delay(250); 441 HAL_Delay(250);
440 GNSS_GetUniqID(&GNSS_Handle); 442 GNSS_GetUniqID(&GNSS_Handle);
441 GNSS_ParseBuffer(&GNSS_Handle); 443 GNSS_ParseBuffer(&GNSS_Handle);
442 HAL_Delay(250); 444 HAL_Delay(250);
443 GNSS_GetPVTData(&GNSS_Handle); 445 GNSS_GetPVTData(&GNSS_Handle);
444 GNSS_ParseBuffer(&GNSS_Handle); 446 GNSS_ParseBuffer(&GNSS_Handle);
445 447 #endif
446 /* 448 /*
447 * Demo code from SimpleMethod 449 * Demo code from SimpleMethod
448 * called 1/second 450 * called 1/second
449 while (1) { 451 while (1) {
450 452