From 596ed48c7fdadd4a5d41b740722e36fe36750f25 Mon Sep 17 00:00:00 2001 From: Christophe De Wagter Date: Wed, 20 Apr 2011 14:34:14 +0200 Subject: [PATCH] Chimu also in Lisa --- conf/airframes/CDW/ChimuLisaFw.xml | 238 +++++++++++++---------- sw/airborne/modules/ins/ins_chimu_uart.c | 4 +- 2 files changed, 141 insertions(+), 101 deletions(-) diff --git a/conf/airframes/CDW/ChimuLisaFw.xml b/conf/airframes/CDW/ChimuLisaFw.xml index 8a6337cb4f6..0e2fef40aaa 100644 --- a/conf/airframes/CDW/ChimuLisaFw.xml +++ b/conf/airframes/CDW/ChimuLisaFw.xml @@ -1,68 +1,17 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + + + @@ -78,95 +27,186 @@
- - + +
- +
- - + +
-
- - +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
- + + + + + + - + + +
- + - - - - - - + + + + + + + + - - - - - - - +
- - + + + - - - - + + - -
+ -
- - + + + +
+
+ + + + + + + + +
+
- - - - + + +
+
+ + +
+ +
- + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sw/airborne/modules/ins/ins_chimu_uart.c b/sw/airborne/modules/ins/ins_chimu_uart.c index 1805c2ff93a..2304d2f880e 100644 --- a/sw/airborne/modules/ins/ins_chimu_uart.c +++ b/sw/airborne/modules/ins/ins_chimu_uart.c @@ -33,8 +33,8 @@ volatile uint8_t new_ins_attitude; void ins_init( void ) { -// uint8_t rate[12] = {0xae, 0xae, 0x06, 0xaa, 0x10, 0x05, 0xff, 0x79, 0x00, 0x00, 0xab, 0x76 }; // 50Hz attitude only + SPI - uint8_t rate[12] = {0xae, 0xae, 0x06, 0xaa, 0x10, 0x04, 0xff, 0x79, 0x00, 0x00, 0xab, 0xd3 }; // 25Hz attitude only + SPI + uint8_t rate[12] = {0xae, 0xae, 0x06, 0xaa, 0x10, 0x05, 0xff, 0x79, 0x00, 0x00, 0xab, 0x76 }; // 50Hz attitude only + SPI +// uint8_t rate[12] = {0xae, 0xae, 0x06, 0xaa, 0x10, 0x04, 0xff, 0x79, 0x00, 0x00, 0xab, 0xd3 }; // 25Hz attitude only + SPI // uint8_t euler[7] = {0xae, 0xae, 0x01, 0xaa, 0x09, 0x00, 0xaf }; // 25Hz attitude only + SPI uint8_t quaternions[7] = {0xae, 0xae, 0x01, 0xaa, 0x09, 0x01, 0x39 }; // 25Hz attitude only + SPI