I have a problem when I compile my program. It is written like this:
AP_Var(AP_Var_group *group, Key index, const prog_char_t *name, Flags flags = k_flags_none);
The compiler tells me that
AP_Var.h:163: error: expected ',' or '...' before '*' token
To what I know, prog_char_t comes from another file called Betterstream.h, but what exactly is prog_char_t?
prog_char_tis defined as follows inAP_Common.hin the Arducopter source.i.e. it defines a
charwhich is stored in the program memory of an AVR microcontroller.The standard Arduino environment uses avr-libc which defines
prog_charfor the same purpose. It’s not clear to me why the Arducopter team chose to define this themselves.