Unterschiede zwischen den Revisionen 3 und 44 (über 41 Versionen hinweg)
Revision 3 vom 29.09.2008 08:56
Größe: 1060
Autor: wowie
Kommentar:
Revision 44 vom 19.03.2009 19:05
Größe: 11471
Autor: KeyOz
Kommentar:
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 ( 1 byte ) || ||
|| b || ExternControl || struct ExternControl (uart.h) || ||
|| c || ExternControl + Debug request || struct ExternControl (uart.h) || ||
|| h || request Display line || Key Value ( 1 Byte ) || ||
|| t || Engine Test || values for the 4 engines ( 4 Bytes ) || ||
|| k || Dubwise Keys || keys ( 4 bytes) || ||
|| v || Version Request || none || ||
|| g || Debug Request || none || ||
|| q || Settings Request || settings-num 1 Byte - or 0xff for actual setting (1 Byte) || ||
|| l || Write Setting 1 || mk_param_struct (fc.h) || ||
|| m || Write Setting 2 || mk_param_struct (fc.h) || ||
|| n || Write Setting 3 || mk_param_struct (fc.h) || ||
|| o || Write Setting 4 || mk_param_struct (fc.h) || ||
|| p || Write Setting 5 || mk_param_struct (fc.h) || ||
|| R || Reset ATMEGA || in SIGNAL(INT_VEC_RX || ||
= Common Commands =
||<tablewidth="" tablestyle="text-align: center;"bgcolor="#cccccc"> ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Received '''''''' ''' ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Send '''''''' ''' ||
||<bgcolor="#cccccc">'''''Description''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''ID''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Address''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Data''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''ID''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Address''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||<bgcolor="#cccccc">'''''Data''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ||
||Labels of analog values ||'a' ||!AnyAddr ||u8 Index of Analog Channel ||'A' ||!SlaveAddr ||u8 Index, char[16] label text ||
||!ExternControl ||'b' ||!AnyAddr ||!ExternControl Struct ||'B' ||!SlaveAddr ||!ConfirmFrame ||
||Request display lines || 'h' ||!AnyAddr || u8 !RemoteKey ||'H' ||!SlaveAddr ||u8 !DisplayLine, char[20] !DisplayLine Text ||
||Request display || 'l' ||!AnyAddr || u8 !MenuItem ||'L' ||!SlaveAddr ||u8 !MenuItem, u8 !MaxMenuItem, char[80] Display Text ||
||Version Request ||'v' ||!AnyAddr || none || 'V' ||!SlaveAddr ||!Version Info Struct ||
||!ExternControl Request ||'g' ||!AnyAddr || none ||'G' ||!SlaveAddr ||!ExternControl Struct ||
||Debug Request ||'d' ||!AnyAddr ||u8 !AutoSendInterval ||'D' ||!SlaveAddr ||Debug Data Struct ||
||Reset ||'R' ||!AnyAddr ||none ||- ||- ||- ||
= Flight-Ctrl =
||<tablewidth="" tablestyle="text-align: center;"bgcolor="#cccccc"> ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Received by FC '''''''' ''' ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Send by FC '''''''' ''' ||<bgcolor="#cccccc"> ||
||<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' || FC-Addr || s16 Compass Value ||'w' || MK3MAG-Addr ||Nick Roll Attitude ... ||0.71f ||
|| Engine Test ||'t' || FC-Addr || u8[4] values for the 4 engines || 'T' || FC-Addr ||- ||0.71f ||
|| Settings Request ||'q' ||FC-Addr || u8 Settings Index ( 1..5 or 0xff for actual setting) ||'Q' ||FC-Addr ||u8 Settings Index, u8 Settings Version, Settings Struct ||0.71f ||
|| Write Settings || 's' ||FC-Addr || u8 Settins Index, u8 Settings Version, Settings Struct ||'S' ||FC-Addr ||u8 Settings Index (1 ..5, 0=Error) ||0.71f ||
|| Read PPM Channels || 'p' ||FC-Addr ||none ||'P' ||FC-Addr ||s16 PPM-Array[11] ||0.71f ||
|| Mixer Request ||'n' ||FC-Addr || none ||'N' ||FC-Addr ||u8 !MixerRevision, u8 Name[12], u8 MixerTable[16][4] ||0.73 ||
|| Mixer Write ||'m' ||FC-Addr || u8 !MixerRevision, u8 Name[12], u8 MixerTable[16][4] ||'M' ||FC-Addr || u8 ack (1 = okay, 0 = error) ||0.73 ||
= Navi-Ctrl =
||<tablewidth="" tablestyle="text-align: center;"bgcolor="#cccccc"> ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Received by NC '''''''' ''' ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Send by NC '''''''' ''' ||<bgcolor="#cccccc"> ||
||<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;"> Error Text Request ||<style="text-align: center;">'e' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">none ||<style="text-align: center;">'E' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">char[] 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;">NC-Addr ||<style="text-align: center;"> [:en/WayPointStruct:WayPointStruct] ||<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;">NC-Addr ||<style="text-align: center;">[:en/WayPointStruct:WayPointStruct] ||<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;">'o' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;"> 1 byte sending interval ( in 10ms steps ) ||<style="text-align: center;">'O' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">[:en/NaviDataStruct:NaviDataStruct] ||<style="text-align: center;"> 0.12h ||
||<style="text-align: center;">Redirect UART ||<style="text-align: center;">'u' ||<style="text-align: center;">NC-Addr ||<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 ||
= MK3-MAG =
||<tablewidth="" tablestyle="text-align: center;"bgcolor="#cccccc"> ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Received by MK3-MAG '''''''' ''' ||||||<bgcolor="#cccccc" style="text-align: center;">'''''Send by MK3-MAG '''''''' ''' ||<bgcolor="#cccccc"> ||
||<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;"> Heading Request ||<style="text-align: center;">'w' ||<style="text-align: center;">MK3MAG-Addr ||<style="text-align: center;">Attitude (s16 Nick, s16 Roll, u8 Param1, u8 Param2, u8 !CalcState, u8 Orientation) ||<style="text-align: center;">'K' ||<style="text-align: center;">FC-Addr ||<style="text-align: center;">s16 Heading ||<style="text-align: center;"> since beginning ||
----
 . CategoryCoding KategorieFirmware KategorieFirmware

Common Commands

Received

Send

Description

ID

Address

Data

ID

Address

Data

Labels of analog values

'a'

AnyAddr

u8 Index of Analog Channel

'A'

SlaveAddr

u8 Index, char[16] label text

ExternControl

'b'

AnyAddr

ExternControl Struct

'B'

SlaveAddr

ConfirmFrame

Request display lines

'h'

AnyAddr

u8 RemoteKey

'H'

SlaveAddr

u8 DisplayLine, char[20] DisplayLine Text

Request display

'l'

AnyAddr

u8 MenuItem

'L'

SlaveAddr

u8 MenuItem, u8 MaxMenuItem, char[80] Display Text

Version Request

'v'

AnyAddr

none

'V'

SlaveAddr

!Version Info Struct

ExternControl Request

'g'

AnyAddr

none

'G'

SlaveAddr

ExternControl Struct

Debug Request

'd'

AnyAddr

u8 AutoSendInterval

'D'

SlaveAddr

Debug Data Struct

Reset

'R'

AnyAddr

none

-

-

-

Flight-Ctrl

Received by FC

Send by FC

Description

ID

Address

Data

ID

Address

Data

since FC Firmware

Compass Heading

'K'

FC-Addr

s16 Compass Value

'w'

MK3MAG-Addr

Nick Roll Attitude ...

0.71f

Engine Test

't'

FC-Addr

u8[4] values for the 4 engines

'T'

FC-Addr

-

0.71f

Settings Request

'q'

FC-Addr

u8 Settings Index ( 1..5 or 0xff for actual setting)

'Q'

FC-Addr

u8 Settings Index, u8 Settings Version, Settings Struct

0.71f

Write Settings

's'

FC-Addr

u8 Settins Index, u8 Settings Version, Settings Struct

'S'

FC-Addr

u8 Settings Index (1 ..5, 0=Error)

0.71f

Read PPM Channels

'p'

FC-Addr

none

'P'

FC-Addr

s16 PPM-Array[11]

0.71f

Mixer Request

'n'

FC-Addr

none

'N'

FC-Addr

u8 MixerRevision, u8 Name[12], u8 MixerTable[16][4]

0.73

Mixer Write

'm'

FC-Addr

u8 MixerRevision, u8 Name[12], u8 MixerTable[16][4]

'M'

FC-Addr

u8 ack (1 = okay, 0 = error)

0.73

Navi-Ctrl

Received by NC

Send by NC

Description

ID

Address

Data

ID

Address

Data

since NC Firmware

Error Text Request

'e'

NC-Addr

none

'E'

NC-Addr

char[] Error Message String

0.12h

Send target Position

's'

NC-Addr

[:en/WayPointStruct:WayPointStruct]

-

-

-

0.12h

Send Waypoint

'w'

NC-Addr

[:en/WayPointStruct:WayPointStruct]

-

-

-

0.12h

Request OSD-Data

'o'

NC-Addr

1 byte sending interval ( in 10ms steps )

'O'

NC-Addr

[:en/NaviDataStruct:NaviDataStruct]

0.12h

Redirect UART

'u'

NC-Addr

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

MK3-MAG

Received by MK3-MAG

Send by MK3-MAG

Description

ID

Address

Data

ID

Address

Data

since MK3-MAG Firmware

Heading Request

'w'

MK3MAG-Addr

Attitude (s16 Nick, s16 Roll, u8 Param1, u8 Param2, u8 CalcState, u8 Orientation)

'K'

FC-Addr

s16 Heading

since beginning