Größe: 3014
Kommentar: NC command table edited
|
Größe: 9977
Kommentar: addr is 3
|
Gelöschter Text ist auf diese Art markiert. | Hinzugefügter Text ist auf diese Art markiert. |
Zeile 2: | Zeile 2: |
|| ||||||<style="text-align: center;">'''Received by FC ''' ||||||<style="text-align: center;">'''Send by FC ''' || || ||'''Description''' ||'''ID''' ||'''Address''' ||'''Data''' ||'''ID''' ||'''Address''' ||'''Data''' ||'''since FC Firmware''' || || compass ||K || || compass value ||w ||1 ||Nick Roll Attitude ... || || || labels of analog Values ||a ||any || position of requested analog Value ( 1 byte ) ||A ||position ||16 char label text || || || !ExternControl ||b ||any || struct !ExternControl (uart.h) ||Confirm Frame ID ||'\r' ||struct !ExternControl (uart.h) || 0.68b || || !ExternControl + Debug request ||c ||any || struct !ExternControl (uart.h) ||D ||1 ||Debug Data || 0.68b || || request Display line ||h ||any || param ( 1 Byte ) param == 255 PPM-channels are replyed else the diplay line cyclic 0->1->2->3->4 ||0,1,2,3,4 ||0 ||20 char display line text or PPM channels || || || Engine Test ||t ||any || values for the 4 engines ( 4 Bytes ) ||- ||- ||- || || || Dubwise Keys ||k ||any || keys (4 bytes) ||key[3] ||'\r' ||keys (4 bytes) || 0.67e || || Version Request ||v ||any || none ||V ||1 ||Version Info Struct || || || ExternControl Request ||g ||any || none ||G ||1 ||ExternControl || || || Settings Request ||q ||any || 1 Byte settings-num form 1 to 5, or 0xff for actual setting (1 Byte) ||L M N O P ||1 ||mk_param_struct (fc.h) || || || Write Setting 1 ||l ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Write Setting 2 ||m ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Write Setting 3 ||n ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Write Setting 4 ||o ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Write Setting 5 ||p ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Debug Request ||f ||any || none ||D ||1 ||Debug Data || v0.71f || || Reset ATMEGA ||R ||any || in SIGNAL(INT_VEC_RX) ||- ||- ||- || || |
||<tablewidth="" tablestyle="text-align: center;"> ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Received by FC '''''''' ''' ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Send by FC '''''''' ''' || || ||<bgcolor="#cccccc">'''''Description''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''ID''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Address''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Data''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''ID''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Address''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Data''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''since FC Firmware''''' || || Compass Heading ||'K' || || compass value ||'w' ||1 ||Nick Roll Attitude ... || || || Labels of analog values ||'a' ||any|| position of requested analog value ( 1 byte coded as '0'+pos ) ||'A' ||'0'+pos ||16 char label text || || || !ExternControl ||'b' ||any || struct !ExternControl (uart.h) ||- ||'\r' ||- || 0.68b || || !ExternControl + Debug request ||'c' ||any || struct !ExternControl (uart.h) ||'D' ||1 ||Debug Data || 0.68b || || Request display line ||'h' ||any || param ( 1 Byte ) param == 255 PPM-channels are replyed else the display line cyclic 0->1->2->3->4 ||'0','1','2','3','4' ||0 ||20 char display line text or PPM channels || || || Engine Test ||'t' ||any || values for the 4 engines ( 4 Bytes ) ||- ||- ||- || || || Dubwise Keys ||'k' ||any || keys (4 bytes) ||key[3] ||'\r' ||keys (4 bytes) || 0.67e || || Version Request ||'v' ||any || none ||'V' ||1 ||Version Info Struct || || || !ExternControl Request ||'g' ||any || none ||'G' ||1 ||!ExternControl || || || Settings Request ||'q' ||any || 1 Byte settings-num form 1 to 5, or 0xff for actual setting (1 Byte) ||'L', 'M', 'N', 'O', 'P' ||1 ||mk_param_struct (fc.h) || || || Write Setting 1 ||'l' ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Write Setting 2 ||'m' ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Write Setting 3 ||'n' ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Write Setting 4 ||'o' ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Write Setting 5 ||'p' ||any || mk_param_struct (fc.h) ||- ||- ||- || || || Debug Request ||'f' ||any || none ||'D' ||1 ||Debug Data || v0.71f || || Reset ATMEGA ||'R' ||any || in SIGNAL(INT_VEC_RX) ||- ||- ||- || || |
Zeile 22: | Zeile 22: |
|| ||||||<style="text-align: center;">'''Received by NC ''' ||||||<style="text-align: center;">'''Send By NC''' || || || Description ''' ''' ||ID ||Address ||Data ''' ''' ||ID ||Address ||Data || since NC Firmware || || labels of analog Values ||a ||any || position of requested analog Value ( 1 byte ) ||A ||2 ||16 char label text || since beginning || || request Display line ||h ||any || param ( 1 Byte ) param == 255 PPM-channels are replyed else the diplay line cyclic 0->1->2->3->4 ||0,1,2,3,4 ||0 ||20 char display line or version info || since beginning || || Version Request ||v ||any ||- ||V ||Version Info || || since beginning || || Error Code Request ||e ||any ||- ||E ||Error Message String || || 0.12h || || Send target Position ||s ||any || Waypoint Struct ||- ||- ||- || 0.12h || || Send Waypoint ||w ||any ||Waypoint Struct ||- ||- ||- || 0.12h || || Request OSD-Data ||q ||any || 1 byte sending interval ( in 10ms steps ) ||Q ||2 ||NaviData Struct || 0.12h || |
||<tablewidth="" tablestyle="text-align: center;"> ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Received by NC '''''''' ''' ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Send by NC '''''''' ''' || || ||<bgcolor="#cccccc">'''''Description''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''ID''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Address''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Data''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''ID''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Address''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Data''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''since NC Firmware''''' || ||<style="text-align: center;"> Labels of analog Values ||<style="text-align: center;">'a' ||<style="text-align: center;">any ||<style="text-align: center;"> position of requested analog Value ( 1 byte , '0'+ pos) ||<style="text-align: center;">'A' ||<style="text-align: center;">'0'+pos||<style="text-align: center;">16 char label text ||<style="text-align: center;"> since beginning || ||<style="text-align: center;"> Request Display line ||<style="text-align: center;">'h' ||<style="text-align: center;">any ||<style="text-align: center;"> param ( 1 Byte ) param == 255 PPM-channels are replyed else the diplay line cyclic 0->1->2->3->4 ||<style="text-align: center;">'0','1','2','3','4' ||<style="text-align: center;">0 ||<style="text-align: center;">20 char display line or version info ||<style="text-align: center;"> since beginning || || !ExternControl ||'b' ||any || struct !ExternControl (uart1.h) ||- ||'\r' ||- || since beginning || || !ExternControl + Debug request ||'c' ||any || struct !ExternControl (uart1.h) ||'D' ||2 ||Debug Data || since beginning || ||<style="text-align: center;"> Version Request ||<style="text-align: center;">'v' ||<style="text-align: center;">any ||<style="text-align: center;">none ||<style="text-align: center;">'V' ||<style="text-align: center;">2 ||<style="text-align: center;">Version Info Struct ||<style="text-align: center;"> since beginning || ||<style="text-align: center;"> !ExternControl Request ||<style="text-align: center;">'g' ||<style="text-align: center;">any ||<style="text-align: center;"> none ||<style="text-align: center;">'G' ||<style="text-align: center;">2 ||<style="text-align: center;"> !ExternControl ||<style="text-align: center;">since beginning || ||<style="text-align: center;"> Error Code Request ||<style="text-align: center;">'e' ||<style="text-align: center;">any ||<style="text-align: center;">none ||<style="text-align: center;">'E' ||<style="text-align: center;">2 ||<style="text-align: center;">Error Message String ||<style="text-align: center;"> 0.12h || ||<style="text-align: center;"> Send target Position ||<style="text-align: center;">'s' ||<style="text-align: center;">any ||<style="text-align: center;"> Waypoint Struct (waypoint.h) ||<style="text-align: center;">- ||<style="text-align: center;">- ||<style="text-align: center;">- ||<style="text-align: center;"> 0.12h || ||<style="text-align: center;"> Send Waypoint ||<style="text-align: center;">'w' ||<style="text-align: center;">any ||<style="text-align: center;">Waypoint Struct(waypoint.h) ||<style="text-align: center;">- ||<style="text-align: center;">- ||<style="text-align: center;">- ||<style="text-align: center;"> 0.12h || ||<style="text-align: center;"> Request OSD-Data ||<style="text-align: center;">'q' ||<style="text-align: center;">any ||<style="text-align: center;"> 1 byte sending interval ( in 10ms steps ) ||<style="text-align: center;">'Q' ||<style="text-align: center;">2 ||<style="text-align: center;">!NaviData Struct ||<style="text-align: center;"> 0.12h || ||<style="text-align: center;">Redirect UART ||<style="text-align: center;">'u' ||<style="text-align: center;">any ||<style="text-align: center;">1 byte param for uart selector (0=FC, 1=MK3MAG, 2=MKGPS), can be switched back to NC debug by sending the magic packet "0x1B,0x1B,0x55,0xAA,0x00" ||<style="text-align: center;">- ||<style="text-align: center;">- ||<style="text-align: center;">- ||<style="text-align: center;">0.12h || ||<style="text-align: center;">Reset ||<style="text-align: center;">'R' ||<style="text-align: center;">any ||<style="text-align: center;">none ||<style="text-align: center;">- ||<style="text-align: center;">- ||<style="text-align: center;">- ||<style="text-align: center;">since beginning || = MK3-MAG = ||<tablewidth="" tablestyle="text-align: center;"> ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Received by MK3-MAG '''''''' ''' ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Send by MK3-MAG '''''''' ''' || || ||<bgcolor="#cccccc">'''''Description''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''ID''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Address''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Data''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''ID''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Address''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Data''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''since MK3-MAG Firmware''''' || ||<style="text-align: center;"> Labels of analog Values ||<style="text-align: center;">'a' ||<style="text-align: center;">any ||<style="text-align: center;"> position of requested analog Value ( 1 byte , '0'+ pos) ||<style="text-align: center;">'A' ||<style="text-align: center;">'0'+pos||<style="text-align: center;">16 char label text ||<style="text-align: center;"> since beginning || ||<style="text-align: center;"> Version Request ||<style="text-align: center;">'v' ||<style="text-align: center;">any ||<style="text-align: center;">none ||<style="text-align: center;">'V' ||<style="text-align: center;">3 ||<style="text-align: center;">Version Info Struct ||<style="text-align: center;"> since beginning || /!\ ToDo: complete list for mk3mag |
Zeile 32: | Zeile 46: |
. CategoryCoding ---- . KategorieFirmware KategorieFirmware ---- KategorieFirmware |
. CategoryCoding KategorieFirmware KategorieFirmware |
Flight-Ctrl
|
Received by FC |
Send by FC |
|
||||
Description |
ID |
Address |
Data |
ID |
Address |
Data |
since FC Firmware |
Compass Heading |
'K' |
|
compass value |
'w' |
1 |
Nick Roll Attitude ... |
|
Labels of analog values |
'a' |
any |
position of requested analog value ( 1 byte coded as '0'+pos ) |
'A' |
'0'+pos |
16 char label text |
|
ExternControl |
'b' |
any |
struct ExternControl (uart.h) |
- |
'\r' |
- |
0.68b |
ExternControl + Debug request |
'c' |
any |
struct ExternControl (uart.h) |
'D' |
1 |
Debug Data |
0.68b |
Request display line |
'h' |
any |
param ( 1 Byte ) param == 255 PPM-channels are replyed else the display line cyclic 0->1->2->3->4 |
'0','1','2','3','4' |
0 |
20 char display line text or PPM channels |
|
Engine Test |
't' |
any |
values for the 4 engines ( 4 Bytes ) |
- |
- |
- |
|
Dubwise Keys |
'k' |
any |
keys (4 bytes) |
key[3] |
'\r' |
keys (4 bytes) |
0.67e |
Version Request |
'v' |
any |
none |
'V' |
1 |
Version Info Struct |
|
ExternControl Request |
'g' |
any |
none |
'G' |
1 |
ExternControl |
|
Settings Request |
'q' |
any |
1 Byte settings-num form 1 to 5, or 0xff for actual setting (1 Byte) |
'L', 'M', 'N', 'O', 'P' |
1 |
mk_param_struct (fc.h) |
|
Write Setting 1 |
'l' |
any |
mk_param_struct (fc.h) |
- |
- |
- |
|
Write Setting 2 |
'm' |
any |
mk_param_struct (fc.h) |
- |
- |
- |
|
Write Setting 3 |
'n' |
any |
mk_param_struct (fc.h) |
- |
- |
- |
|
Write Setting 4 |
'o' |
any |
mk_param_struct (fc.h) |
- |
- |
- |
|
Write Setting 5 |
'p' |
any |
mk_param_struct (fc.h) |
- |
- |
- |
|
Debug Request |
'f' |
any |
none |
'D' |
1 |
Debug Data |
v0.71f |
Reset ATMEGA |
'R' |
any |
in SIGNAL(INT_VEC_RX) |
- |
- |
- |
|
Navi-Ctrl
|
Received by NC |
Send by NC |
|
||||
Description |
ID |
Address |
Data |
ID |
Address |
Data |
since NC Firmware |
Labels of analog Values |
'a' |
any |
position of requested analog Value ( 1 byte , '0'+ pos) |
'A' |
'0'+pos |
16 char label text |
since beginning |
Request Display line |
'h' |
any |
param ( 1 Byte ) param == 255 PPM-channels are replyed else the diplay line cyclic 0->1->2->3->4 |
'0','1','2','3','4' |
0 |
20 char display line or version info |
since beginning |
ExternControl |
'b' |
any |
struct ExternControl (uart1.h) |
- |
'\r' |
- |
since beginning |
ExternControl + Debug request |
'c' |
any |
struct ExternControl (uart1.h) |
'D' |
2 |
Debug Data |
since beginning |
Version Request |
'v' |
any |
none |
'V' |
2 |
Version Info Struct |
since beginning |
ExternControl Request |
'g' |
any |
none |
'G' |
2 |
ExternControl |
since beginning |
Error Code Request |
'e' |
any |
none |
'E' |
2 |
Error Message String |
0.12h |
Send target Position |
's' |
any |
Waypoint Struct (waypoint.h) |
- |
- |
- |
0.12h |
Send Waypoint |
'w' |
any |
Waypoint Struct(waypoint.h) |
- |
- |
- |
0.12h |
Request OSD-Data |
'q' |
any |
1 byte sending interval ( in 10ms steps ) |
'Q' |
2 |
NaviData Struct |
0.12h |
Redirect UART |
'u' |
any |
1 byte param for uart selector (0=FC, 1=MK3MAG, 2=MKGPS), can be switched back to NC debug by sending the magic packet "0x1B,0x1B,0x55,0xAA,0x00" |
- |
- |
- |
0.12h |
Reset |
'R' |
any |
none |
- |
- |
- |
since beginning |
MK3-MAG
|
Received by MK3-MAG |
Send by MK3-MAG |
|
||||
Description |
ID |
Address |
Data |
ID |
Address |
Data |
since MK3-MAG Firmware |
Labels of analog Values |
'a' |
any |
position of requested analog Value ( 1 byte , '0'+ pos) |
'A' |
'0'+pos |
16 char label text |
since beginning |
Version Request |
'v' |
any |
none |
'V' |
3 |
Version Info Struct |
since beginning |
ToDo: complete list for mk3mag