Rev 614 | Rev 639 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 614 | Rev 633 | ||
---|---|---|---|
Line 379... | Line 379... | ||
379 | 379 | ||
380 | u8 GPX_TrackSegementAddPoint(GPX_Document_t *doc,unsigned char part) |
380 | u8 GPX_TrackSegementAddPoint(GPX_Document_t *doc,unsigned char part) |
Line 381... | Line 381... | ||
381 | { |
381 | { |
- | 382 | ||
382 | 383 | u8 retvalue = 0; |
|
383 | u8 retvalue = 0; |
384 | static u8 LastLoggedFlags2 = 0; |
Line 384... | Line 385... | ||
384 | s8 string[120]; |
385 | s8 string[120]; |
Line 443... | Line 444... | ||
443 | fputs_(string, doc->file); |
444 | fputs_(string, doc->file); |
444 | // Status of the complete MikroKopter |
445 | // Status of the complete MikroKopter |
445 | sprintf(string, "<ErrorCode>%03d</ErrorCode>\r\n",ErrorCode); |
446 | sprintf(string, "<ErrorCode>%03d</ErrorCode>\r\n",ErrorCode); |
446 | fputs_(string, doc->file); |
447 | fputs_(string, doc->file); |
447 | // Flags |
448 | // Flags |
- | 449 | if(LastLoggedFlags2 & FC_STATUS2_OUT1_ACTIVE && !(FC.StatusFlags2 & FC_STATUS2_OUT1_ACTIVE)) Logging_FCStatusFlags2 &= ~FC_STATUS2_OUT1_ACTIVE; // to avoid that the OUT-Flags are longer high than required |
|
- | 450 | if(LastLoggedFlags2 & FC_STATUS2_OUT2_ACTIVE && !(FC.StatusFlags2 & FC_STATUS2_OUT2_ACTIVE)) Logging_FCStatusFlags2 &= ~FC_STATUS2_OUT2_ACTIVE; |
|
448 | sprintf(string, "<FCFlags2>0x%02x,0x%02x</FCFlags2>\r\n",Logging_FCStatusFlags1,Logging_FCStatusFlags2); |
451 | sprintf(string, "<FCFlags2>0x%02x,0x%02x</FCFlags2>\r\n",Logging_FCStatusFlags1,Logging_FCStatusFlags2); |
449 | fputs_(string, doc->file); |
452 | fputs_(string, doc->file); |
- | 453 | LastLoggedFlags2 = Logging_FCStatusFlags2; |
|
450 | Logging_FCStatusFlags1 = FC.StatusFlags; |
454 | Logging_FCStatusFlags1 = FC.StatusFlags; |
451 | Logging_FCStatusFlags2 = FC.StatusFlags2; |
455 | Logging_FCStatusFlags2 = FC.StatusFlags2; |
452 | // NC Mode (contains the status) |
456 | // NC Mode (contains the status) |
453 | sprintf(string, "<NCFlag>0x%02X</NCFlag>\r\n", NCFlags); |
457 | sprintf(string, "<NCFlag>0x%02X</NCFlag>\r\n", NCFlags); |
454 | fputs_(string, doc->file); |
458 | fputs_(string, doc->file); |