Unterschiede zwischen den Revisionen 46 und 53 (über 7 Versionen hinweg)
Revision 46 vom 28.03.2009 02:01
Größe: 12261
Autor: killagreg
Kommentar:
Revision 53 vom 01.12.2009 00:43
Größe: 12552
Autor: killagreg
Kommentar:
Gelöschter Text ist auf diese Art markiert. Hinzugefügter Text ist auf diese Art markiert.
Zeile 1: Zeile 1:
= Common Commands = == Common Commands ==
Zeile 6: Zeile 6:
||Request display lines || 'h' ||!AnyAddr || u8 !RemoteKey ||'H' ||!SlaveAddr ||u8 !DisplayLine, char[20] !DisplayLine Text || ||Request display || 'h' ||!AnyAddr || u8 ~!RemoteKey, u8 !AutoSendInterval ||'H' ||!SlaveAddr || char[80] !DisplayText ||
Zeile 9: Zeile 9:
||!ExternControl Request ||'g' ||!AnyAddr || none ||'G' ||!SlaveAddr ||!ExternControl Struct ||
Zeile 12: Zeile 11:
= Flight-Ctrl = == Flight-Ctrl ==
Zeile 16: Zeile 15:
|| Engine Test ||'t' || FC-Addr || u8[4] values for the 4 engines || 'T' || FC-Addr ||- ||0.71f || || Engine Test ||'t' || FC-Addr || u8[16] values for the engines || 'T' || FC-Addr ||- ||0.71f ||
Zeile 18: Zeile 17:
|| 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 || || Write Settings || 's' ||FC-Addr || u8 Settings Index, u8 Settings Version, Settings Struct ||'S' ||FC-Addr ||u8 Settings Index (1 ..5, 0=Error) ||0.71f ||
Zeile 20: Zeile 19:
|| Set 3D-Data Interval || 'c' || !AnyAddr || u8 Interval || 'C' || FC-Addr || struct Data3D|| 0.72p ||
Zeile 22: Zeile 22:
= Navi-Ctrl = || Change setting ||'f' ||FC-Addr || u8 Number of new Setting ||'F' ||FC-Addr || u8 Number ||0.77 ||
|| Serial Poti ||'y' ||FC-Addr || s8 Poti[12] ||- ||- || - ||0.77 ||

== Navi-Ctrl ==
Zeile 25: Zeile 28:
||<style="text-align: center;"> Serial Link Test ||<style="text-align: center;">'z' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">u16 !EchoPattern ||<style="text-align: center;">'Z' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">u16 !EchoPattern ||<style="text-align: center;"> 0.14e || ||<style="text-align: center;"> Serial Link Test ||<style="text-align: center;">'z' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">u16 !EchoPattern ||<style="text-align: center;">'Z' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">u16 !EchoPattern ||<style="text-align: center;"> 0.14f ||
Zeile 29: Zeile 32:
||<style="text-align: center;"> Request Waypoint ||<style="text-align: center;">'x' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">u8 WP-Index ||<style="text-align: center;">'X' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">u8 Number of WPs, u8 WP-Index, [:en/WayPointStruct:WayPointStruct] ||<style="text-align: center;"> 0.14e || ||<style="text-align: center;"> Request Waypoint ||<style="text-align: center;">'x' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">u8 WP-Index ||<style="text-align: center;">'X' ||<style="text-align: center;">NC-Addr ||<style="text-align: center;">u8 Number of WPs, u8 WP-Index, [:en/WayPointStruct:WayPointStruct] ||<style="text-align: center;"> 0.14f ||
Zeile 32: Zeile 35:
= MK3-MAG = || Set 3D-Data Interval || 'c' || !AnyAddr || u8 Interval || 'C' || NC-Addr || struct Data3D|| 0.14a ||
== MK3-MAG ==

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

'h'

AnyAddr

u8 ~RemoteKey, u8 AutoSendInterval

'H'

SlaveAddr

char[80] DisplayText

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

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[16] values for the 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 Settings 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

Set 3D-Data Interval

'c'

AnyAddr

u8 Interval

'C'

FC-Addr

struct Data3D

0.72p

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

Change setting

'f'

FC-Addr

u8 Number of new Setting

'F'

FC-Addr

u8 Number

0.77

Serial Poti

'y'

FC-Addr

s8 Poti[12]

-

-

-

0.77

Received by NC

Send by NC

Description

ID

Address

Data

ID

Address

Data

since NC Firmware

Serial Link Test

'z'

NC-Addr

u16 EchoPattern

'Z'

NC-Addr

u16 EchoPattern

0.14f

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] (sending an invalid position will clear the WPList)

'W'

NC-Addr

u8 Number of WPs

0.12h

Request Waypoint

'x'

NC-Addr

u8 WP-Index

'X'

NC-Addr

u8 Number of WPs, u8 WP-Index, [:en/WayPointStruct:WayPointStruct]

0.14f

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

Set 3D-Data Interval

'c'

AnyAddr

u8 Interval

'C'

NC-Addr

struct Data3D

0.14a

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