paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] syntax errors during compile (latest master)


From: Felix Ruess
Subject: Re: [Paparazzi-devel] syntax errors during compile (latest master)
Date: Sun, 20 Oct 2013 20:52:14 +0200

Hi Chris,

this is "normal" (but unintuituve) , for float_quat you need the curly braces, as it has gain scheduling and you basically put the initializer list with all gains in the airframe file (even if the length of the list is only 1 and you effectively don't use the gain scheduling).
The int_quat doesn't have gain scheduling and hence you have only one single gain "per define".

Cheers, Felix


On Fri, Oct 18, 2013 at 9:04 PM, Chris <address@hidden> wrote:
Hi.
Just a notice for the errors i get during "ap" compile time.
I get errors when i use "int_quat" for stabilization which are basically syntax errors like:

firmwares/rotorcraft/stabilization/stabilization_attitude_quat_int.c:44:6: error: token "{" is not valid in preprocessor expressions

If i remove the braces from the airframe file it compiles fine but then if i want to use the "float_quat"
again i need to re add the braces otherwise i get errors like:

firmwares/rotorcraft/stabilization/stabilization_attitude_ref_quat_float.c:54:1: error: invalid initializer

Chris







_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

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