Skip to content

Commit

Permalink
[ArDrone] Navdata decoder update (incl sonar)
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Sep 22, 2013
1 parent f652bae commit 70ab7eb
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 152 deletions.
7 changes: 6 additions & 1 deletion conf/messages.xml
Expand Up @@ -48,6 +48,7 @@
<field name="my" type="int16" />
<field name="mz" type="int16" />
<field name="chksum" type="uint16" />
<field name="checksum_errors" type="uint32" />
</message>

<message name="ATTITUDE" id="6">
Expand Down Expand Up @@ -626,7 +627,11 @@
<field name="GX3_chksm" type="uint16"/>
</message>

<!-- 74 is free -->
<message name="EXPLAIN" id="74">
<field name="type" type="uint8" values="NAME|SETTING|WAYPOINT|BLOCK|IMAV2013"/>
<field name="id" type="uint8"/>
<field name="string" type="uint8[]"/>
</message>

<message name="VIDEO_TELEMETRY" id="75">
<field name="blob_x1" type="int32" unit="pixels"/>
Expand Down
3 changes: 2 additions & 1 deletion sw/airborne/boards/ardrone/electrical_raw.c
Expand Up @@ -69,7 +69,8 @@ int fd;

void electrical_init(void) {
// First we try to kill the program.elf if it is running (done here because initializes first)
system("killall -9 program.elf");
int ret = system("killall -9 program.elf");
(void) ret;

// Initialize 12c device for power
fd = open( "/dev/i2c-1", O_RDWR );
Expand Down

0 comments on commit 70ab7eb

Please sign in to comment.