Unterschiede zwischen den Revisionen 1 und 14 (über 13 Versionen hinweg)
Revision 1 vom 27.09.2008 16:58
Größe: 1022
Autor: ligi
Kommentar: initial
Revision 14 vom 20.11.2008 02:26
Größe: 3361
Autor: killagreg
Kommentar: NC command table expanded
Gelöschter Text ist auf diese Art markiert. Hinzugefügter Text ist auf diese Art markiert.
Zeile 1: Zeile 1:
|| ''' Command ''' || ''' Description ''' || ''' Parameter's ''' || '''since FC Firmware'' ||
|| K || compass || compass value|| ||
|| a || labels of analog Values || position of requested analog Value|| ||
|| b || ExternControl || ExternControl struct || ||
|| c || ExternControl + Debug request || ExternControl struct || ||
|| h || request Display line || Key Value || ||
|| t || Engine Test || values for the 4 engines || ||
|| k || Dubwise Keys || 4 bytes keys || ||
|| v || Version Request || none || ||
|| g || Debug Request || none || ||
|| q || Settings Request || settings-num 1 Byte - or 0xff for actual setting || ||
|| l || Write Setting 1 || settings-struct || ||
|| m || Write Setting 2 || settings-struct || ||
|| n || Write Setting 3 || settings-struct || ||
|| o || Write Setting 4 || settings-struct || ||
|| p || Write Setting 4 || settings-struct || ||
= Flight-Ctrl =
|| ||||||<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) ||- ||- ||- || ||
= Navi-Ctrl =
|| ||||||<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 ||
|| ExternControl Request ||g ||any || none ||G ||2 ||ExternControl || ||
|| 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 ||
||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 ||
----
 . CategoryCoding
----
 . KategorieFirmware KategorieFirmware
----
 . KategorieFirmware KategorieFirmware

Flight-Ctrl

Received by FC

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)

-

-

-

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 )

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

ExternControl Request

g

any

none

G

2

ExternControl

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

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