paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paparazzi-devel] Tiny1.1 compile errors


From: onefastdaddy
Subject: [Paparazzi-devel] Tiny1.1 compile errors
Date: Thu, 28 Aug 2014 16:32:27 -0700 (PDT)

Hello,

Did something break with the tiny_1.1 definitions? 

I have several tiny_1.1 autopilots I would like to use and am trying to
program them. I'm getting the following when compiling:
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:16:26: error:
'IOLED_3_BANKPIN' undeclared (first use in this function)
 #define __LED_PIN_REG(i) IO ## i ## PIN
                          ^
/home/dconger/paparazzi-latest/sw/include/std.h:139:7: note: in definition
of macro 'RunOnceEvery'
       _code;      \
       ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:17:25: note:
in expansion of macro '__LED_PIN_REG'
 #define _LED_PIN_REG(i) __LED_PIN_REG(i)
                         ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:22:24: note:
in expansion of macro '_LED_PIN_REG'
 #define LED_PIN_REG(i) _LED_PIN_REG(LED_ ## i ## _BANK)
                        ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:31:9: note:
in expansion of macro 'LED_PIN_REG'
     if (LED_PIN_REG(i) & _BV(LED_PIN(i))) \
         ^
subsystems/ahrs/ahrs_aligner.c:94:21: note: in expansion of macro
'LED_TOGGLE'
   RunOnceEvery(50, {LED_TOGGLE(AHRS_ALIGNER_LED);});
                     ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:16:26: note:
each undeclared identifier is reported only once for each function it
appears in
 #define __LED_PIN_REG(i) IO ## i ## PIN
                          ^
/home/dconger/paparazzi-latest/sw/include/std.h:139:7: note: in definition
of macro 'RunOnceEvery'
       _code;      \
       ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:17:25: note:
in expansion of macro '__LED_PIN_REG'
 #define _LED_PIN_REG(i) __LED_PIN_REG(i)
                         ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:22:24: note:
in expansion of macro '_LED_PIN_REG'
 #define LED_PIN_REG(i) _LED_PIN_REG(LED_ ## i ## _BANK)
                        ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:31:9: note:
in expansion of macro 'LED_PIN_REG'
     if (LED_PIN_REG(i) & _BV(LED_PIN(i))) \
         ^
subsystems/ahrs/ahrs_aligner.c:94:21: note: in expansion of macro
'LED_TOGGLE'
   RunOnceEvery(50, {LED_TOGGLE(AHRS_ALIGNER_LED);});
                     ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:23:20: error:
'LED_3_PIN' undeclared (first use in this function)
 #define LED_PIN(i) LED_ ## i ## _PIN
                    ^
/home/dconger/paparazzi-latest/sw/include/std.h:139:7: note: in definition
of macro 'RunOnceEvery'
       _code;      \
       ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:31:26: note:
in expansion of macro '_BV'
     if (LED_PIN_REG(i) & _BV(LED_PIN(i))) \
                          ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:31:30: note:
in expansion of macro 'LED_PIN'
     if (LED_PIN_REG(i) & _BV(LED_PIN(i))) \
                              ^
subsystems/ahrs/ahrs_aligner.c:94:21: note: in expansion of macro
'LED_TOGGLE'
   RunOnceEvery(50, {LED_TOGGLE(AHRS_ALIGNER_LED);});
                     ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:12:22: error:
'IOLED_3_BANKCLR' undeclared (first use in this function)
 #define __LED_CLR(i) IO ## i ## CLR
                      ^
/home/dconger/paparazzi-latest/sw/include/std.h:139:7: note: in definition
of macro 'RunOnceEvery'
       _code;      \
       ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:13:21: note:
in expansion of macro '__LED_CLR'
 #define _LED_CLR(i) __LED_CLR(i)
                     ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:20:20: note:
in expansion of macro '_LED_CLR'
 #define LED_CLR(i) _LED_CLR(LED_ ## i ## _BANK)
                    ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:28:19: note:
in expansion of macro 'LED_CLR'
 #define LED_ON(i) LED_CLR(i) = _BV(LED_PIN(i));
                   ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:32:7: note:
in expansion of macro 'LED_ON'
       LED_ON(i)            \
       ^
subsystems/ahrs/ahrs_aligner.c:94:21: note: in expansion of macro
'LED_TOGGLE'
   RunOnceEvery(50, {LED_TOGGLE(AHRS_ALIGNER_LED);});
                     ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:14:22: error:
'IOLED_3_BANKSET' undeclared (first use in this function)
 #define __LED_SET(i) IO ## i ## SET
                      ^
/home/dconger/paparazzi-latest/sw/include/std.h:139:7: note: in definition
of macro 'RunOnceEvery'
       _code;      \
       ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:15:21: note:
in expansion of macro '__LED_SET'
 #define _LED_SET(i) __LED_SET(i)
                     ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:21:20: note:
in expansion of macro '_LED_SET'
 #define LED_SET(i) _LED_SET(LED_ ## i ## _BANK)
                    ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:29:20: note:
in expansion of macro 'LED_SET'
 #define LED_OFF(i) LED_SET(i) = _BV(LED_PIN(i));
                    ^
/home/dconger/paparazzi-latest/sw/airborne/arch/lpc21/led_hw.h:34:7: note:
in expansion of macro 'LED_OFF'
       LED_OFF(i)    \
       ^
subsystems/ahrs/ahrs_aligner.c:94:21: note: in expansion of macro
'LED_TOGGLE'
   RunOnceEvery(50, {LED_TOGGLE(AHRS_ALIGNER_LED);});
                     ^
make[1]: ***
[/home/dconger/paparazzi-latest/var/aircrafts/PPZTINY11/ap/subsystems/ahrs/ahrs_aligner.o]
Error 1
make[1]: Leaving directory `/home/dconger/paparazzi-latest/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/dconger/paparazzi-latest'

Probably due to the LED assignment differences in Tiny11? I'm not sure
myself. Thank you for any help solving this so I can get an airframe file
working.

My goal is:
imu = ppzuav
autopilot = tiny_1.1

I see airframe files "weasel" for IR based that compile and work. Just
nothing for IMU based and tiny_1.1 for me to go by. So I tried using a
working umarim_lite airframe file that compiled with imu = ppzuav and just
changed the autopilot from umarim to tiny_1,1 and got the errors. 

-David B Conger



--
View this message in context: 
http://lists.paparazziuav.org/Tiny1-1-compile-errors-tp16053.html
Sent from the paparazzi-devel mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]