Rev 345 | Rev 358 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 345 | Rev 351 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | #include "uart1.h" |
65 | #include "uart1.h" |
66 | #include "compass.h" |
66 | #include "compass.h" |
67 | #include "analog.h" |
67 | #include "analog.h" |
68 | #include "main.h" |
68 | #include "main.h" |
69 | #include "led.h" |
69 | #include "led.h" |
- | 70 | #include "timer2.h" |
|
Line 70... | Line 71... | ||
70 | 71 | ||
71 | //________________________________________________________________________________________________________________________________________ |
72 | //________________________________________________________________________________________________________________________________________ |
72 | // Function: GPX_DocumentInit(GPX_Document_t *) |
73 | // Function: GPX_DocumentInit(GPX_Document_t *) |
73 | // |
74 | // |
Line 407... | Line 408... | ||
407 | sprintf(string, "<AnalogInputs>%d,%d,%d,%d</AnalogInputs>\r\n",AnalogData.Ch4,AnalogData.Ch5,AnalogData.Ch6,AnalogData.Ch7); |
408 | sprintf(string, "<AnalogInputs>%d,%d,%d,%d</AnalogInputs>\r\n",AnalogData.Ch4,AnalogData.Ch5,AnalogData.Ch6,AnalogData.Ch7); |
408 | fputs_(string, doc->file); |
409 | fputs_(string, doc->file); |
409 | // NC Mode (contains the status) |
410 | // NC Mode (contains the status) |
410 | sprintf(string, "<NCFlag>0x%02X</NCFlag>\r\n", NCFlags); |
411 | sprintf(string, "<NCFlag>0x%02X</NCFlag>\r\n", NCFlags); |
411 | fputs_(string, doc->file); |
412 | fputs_(string, doc->file); |
- | 413 | sprintf(string, "<Servo>%d,%d,%d</Servo>\r\n", ServoParams.NickControl,ServoParams.RollControl,POI_KameraNick/10); // Raw Poti-Values of the Servo control and the POI_Nick in 1° |
|
- | 414 | fputs_(string, doc->file); |
|
- | 415 | sprintf(string, "<WP>%d,%d,%d</WP>\r\n",NaviData.WaypointIndex,NaviData.WaypointNumber,FC_WP_EventChannel); // x of y Waypoints and the actual value of the Event Channel |
|
- | 416 | fputs_(string, doc->file); |
|
412 | break; |
417 | break; |
413 | case 7: |
418 | case 7: |
414 | // Flags |
419 | // Flags |
415 | sprintf(string, "<FCFlags2>0x%02x,0x%02x</FCFlags2>\r\n",Logging_FCStatusFlags1,Logging_FCStatusFlags2); |
420 | sprintf(string, "<FCFlags2>0x%02x,0x%02x</FCFlags2>\r\n",Logging_FCStatusFlags1,Logging_FCStatusFlags2); |
416 | fputs_(string, doc->file); |
421 | fputs_(string, doc->file); |