paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Tiny1.1 compile errors


From: David Conger
Subject: Re: [Paparazzi-devel] Tiny1.1 compile errors
Date: Fri, 29 Aug 2014 09:59:07 -0700

Thank you Felix!
I must say Paparazzi has really reached a milestone and it's very
exciting. When the code can be read and understood like that it really
opens up many doors for digging in and exploring how it all works.

It was so nice to go from the error to the specific code (given in the
output messages from building) and see quickly "it must be related to
this code that setups up the LED frequency and numbering...".
Knowing where to look then made it easy to see that #ifdef that says
if: AHRS_ALIGNER_LED is defined then call the functions to assign the
LEDs. So seeing a 3 there and knowing my autopilot had only 2 I just
changed (in my airframe file):
<configure name="AHRS_ALIGNER_LED" value="3"/>
to
<configure name="AHRS_ALIGNER_LED" value="2"/>

Clicked clean, build, voila! compiled.

I didn't have to modify anything more than a variable in my airframe
file. That is so powerful. All I did was follow the bread crumbs. The
code just led me to the answer that was right back at the highest
level. The XML file.

Again, thank you for confirming my guess about that value. You guys
are awesome.

-David B. Conger

.

On Fri, Aug 29, 2014 at 2:01 AM, Felix Ruess <address@hidden> wrote:
> Hi David,
>
> jep, that's exactly it.. and tiny_1.1 only has two LEDs, see
> https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/boards/tiny_1.1.h#L27
>
> Cheers, Felix
>
>
> On Fri, Aug 29, 2014 at 2:07 AM, David Conger <address@hidden>
> wrote:
>>
>> Hello,
>>
>> Well, I sorted this out by looking around at the code. I saw that the
>> blinking LED assignments in the ahrs code depends on the definition of
>> a variable: <configure name="AHRS_ALIGNER_LED" value="X"/> where X is
>> a number. In my case it was 3 which I guess meant 3 LEDs because I set
>> it to a value of 2 and the errors went away. I'm guessing X is the
>> number of LED on the autopilot?
>>
>> -David B. Conger
>>
>> On Thu, Aug 28, 2014 at 4:32 PM, onefastdaddy <address@hidden>
>> wrote:
>> > 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.
>> >
>> > _______________________________________________
>> > Paparazzi-devel mailing list
>> > address@hidden
>> > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>
>>
>>
>> --
>> address@hidden
>> http://www.ppzuav.com
>>
>> _______________________________________________
>> Paparazzi-devel mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>



-- 
address@hidden
http://www.ppzuav.com



reply via email to

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