{"action":"opened","issue":{"url":"https://api.github.com/repos/paparazzi/paparazzi/issues/2116","repository_url":"https://api.github.com/repos/paparazzi/paparazzi","labels_url":"https://api.github.com/repos/paparazzi/paparazzi/issues/2116/labels{/name}","comments_url":"https://api.github.com/repos/paparazzi/paparazzi/issues/2116/comments","events_url":"https://api.github.com/repos/paparazzi/paparazzi/issues/2116/events","html_url":"https://github.com/paparazzi/paparazzi/issues/2116","id":264630297,"number":2116,"title":"sending arrays by ABI","user":{"login":"knmcguire","id":11061260,"avatar_url":"https://avatars3.githubusercontent.com/u/11061260?v=4","gravatar_id":"","url":"https://api.github.com/users/knmcguire","html_url":"https://github.com/knmcguire","followers_url":"https://api.github.com/users/knmcguire/followers","following_url":"https://api.github.com/users/knmcguire/following{/other_user}","gists_url":"https://api.github.com/users/knmcguire/gists{/gist_id}","starred_url":"https://api.github.com/users/knmcguire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knmcguire/subscriptions","organizations_url":"https://api.github.com/users/knmcguire/orgs","repos_url":"https://api.github.com/users/knmcguire/repos","events_url":"https://api.github.com/users/knmcguire/events{/privacy}","received_events_url":"https://api.github.com/users/knmcguire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-11T15:22:18Z","updated_at":"2017-10-11T15:22:18Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi all,\r\n\r\nFor my latest pull request (#2114), I would like to send arrays by ABI. However, when I try to compile the AP/NPS, it gives me a whole list of errors (see below). I was expecting that the same capabilities would be possible for ABI as for pprzlink, however paparazzi seems to not correctly compile it. For pprzlink for instance, the abi message would not only require the array, but also the size of it. The compiled sendABI message does not seem to do that.\r\n\r\nAnybody who can take a look at it? Thanks!\r\n\r\n__________________\r\n_Error message during compiling the AP/NPS_\r\n\r\nIn file included from /home/knmcguire/paparazzi/sw/airborne/subsystems/abi.h:32:0,\r\n                 from /home/knmcguire/paparazzi/var/aircrafts/ardrone2_rangesensors_gazebo/nps/generated/flight_plan.h:10,\r\n                 from /home/knmcguire/paparazzi/var/aircrafts/ardrone2_rangesensors_gazebo/nps/generated/settings.h:13,\r\n                 from subsystems/settings.c:29:\r\n/home/knmcguire/paparazzi/var/include/abi_messages.h:60:72: error: expected ';', ',' or ')' before 'distance'\r\n typedef void (*abi_callbackRANGE_SENSORS)(uint8_t sender_id, int16_t[] distance);\r\n                                                                        ^\r\nCC /home/knmcguire/paparazzi/var/aircrafts/ardrone2_rangesensors_gazebo/nps/subsystems/commands.o\r\n/home/knmcguire/paparazzi/var/include/abi_messages.h:371:79: error: unknown type name 'abi_callbackRANGE_SENSORS'\r\n static inline void AbiBindMsgRANGE_SENSORS(uint8_t sender_id, abi_event * ev, abi_callbackRANGE_SENSORS cb) {\r\n                                                                               ^\r\n/home/knmcguire/paparazzi/var/include/abi_messages.h:378:73: error: expected ';', ',' or ')' before 'distance'\r\n static inline void AbiSendMsgRANGE_SENSORS(uint8_t sender_id, int16_t[] distance) {\r\n                                                                         ^\r\nCC /home/knmcguire/paparazzi/var/aircrafts/ardrone2_rangesensors_gazebo/nps/state.o\r\nCC /home/knmcguire/paparazzi/var/aircrafts/ardrone2_rangesensors_gazebo/nps/firmwares/rotorcraft/main.o\r\nCC /home/knmcguire/paparazzi/var/aircrafts/ardrone2_rangesensors_gazebo/nps/firmwares/rotorcraft/main_ap.o\r\n/home/knmcguire/paparazzi/conf/Makefile.nps:97: recipe for target '/home/knmcguire/paparazzi/var/aircrafts/ardrone2_rangesensors_gazebo/nps/subsystems/settings.o' failed\r\nmake[1]: *** [/home/knmcguire/paparazzi/var/aircrafts/ardrone2_rangesensors_gazebo/nps/subsystems/settings.o] Error 1\r\nmake[1]: *** Waiting for unfinished jobs....\r\nIn file included from /home/knmcguire/paparazzi/sw/airborne/subsystems/abi.h:32:0,\r\n                 from firmwares/rotorcraft/main_ap.c:75:\r\n/home/knmcguire/paparazzi/var/include/abi_messages.h:60:72: error: expected ';', ',' or ')' before 'distance'\r\n typedef void (*abi_callbackRANGE_SENSORS)(uint8_t sender_id, int16_t[] distance);\r\n                                                                        ^\r\n/home/knmcguire/paparazzi/var/include/abi_messages.h:371:79: error: unknown type name 'abi_callbackRANGE_SENSORS'\r\n static inline void AbiBindMsgRANGE_SENSORS(uint8_t sender_id, abi_event * ev, abi_callbackRANGE_SENSORS cb) {\r\n                                                                               ^\r\n/home/knmcguire/paparazzi/var/include/abi_messages.h:378:73: error: expected ';', ',' or ')' before 'distance'\r\n static inline void AbiSendMsgRANGE_SENSORS(uint8_t sender_id, int16_t[] distance) {\r\n                                                                         ^"}}
{"actor":{"display_login":"knmcguire"}}