Bonjour,
Un amis et mois sommes en train de faire en sorte de pouvoir guider simplement un Ardrone Parrot V2.2 avec une radio commande.
Pour cela nous nous sommes appuyé sur mirumod, qui nous précise de prendre un arduino nano.
Chose faite nous nous le sommes procuré, mais malheureusement lorsque nous souhaitons mettre le software "rx2atp" celui ci nous donne pleins d'erreurs.
Soft dispo ici
J’explique ma manip :
J'ouvre Arduino 1.8.5, je cole le script du soft.
J'appuie sur vérifier et les messages d'erreur suivants apparaisse :
rx2atp:718: error: variable or field 'itic' declared void
inline void itic(u16_t *t) /* called with interrupts disabled */
^
rx2atp:718: error: 'u16_t' was not declared in this scope
rx2atp:718: error: 't' was not declared in this scope
inline void itic(u16_t *t) /* called with interrupts disabled */
^
rx2atp:725: error: 'u32_t' does not name a type
u32_t tic(void)
^
rx2atp:849: error: 'u08_t' does not name a type
u08_t sio_tf(void) /* txb free space */
^
rx2atp:903: error: variable or field 'snd_snx' declared void
void snd_snx(u08_t n) { n &= 0x0f; if (n <= 9) snd_sc('0'+n); else snd_sc('A'-10+n); }
^
rx2atp:903: error: 'u08_t' was not declared in this scope
rx2atp:904: error: variable or field 'snd_sbx' declared void
void snd_sbx(u08_t b) { snd_snx(b>>4); snd_snx(b>>0); }
^
rx2atp:904: error: 'u08_t' was not declared in this scope
rx2atp:905: error: variable or field 'snd_swx' declared void
void snd_swx(u16_t w) { snd_sbx(w>>8); snd_sbx(w>>0); }
^
rx2atp:905: error: 'u16_t' was not declared in this scope
rx2atp:921: error: variable or field 'snd_spd' declared void
void snd_spd(u08_t fw, u08_t pr, long i) /* pseudo decimal */
^
rx2atp:921: error: 'u08_t' was not declared in this scope
rx2atp:921: error: 'u08_t' was not declared in this scope
void snd_spd(u08_t fw, u08_t pr, long i) /* pseudo decimal */
^
rx2atp:921: error: expected primary-expression before 'long'
void snd_spd(u08_t fw, u08_t pr, long i) /* pseudo decimal */
^
rx2atp:1051: error: variable or field 'gps_snx' declared void
void gps_snx(u08_t n) { if ((n &= 0x0f) <= 9) gps_sc('0'+n); else gps_sc('A'-10+n); }
^
rx2atp:1051: error: 'u08_t' was not declared in this scope
rx2atp:1280: error: 'u08_t' does not name a type
u08_t rx_esel(int thr)
^
rx2atp:1292: error: 'u08_t' does not name a type
u08_t rx_read(void)
^
rx2atp:1932: error: variable or field 'at2so_lstp' declared void
void at2so_lstp(u08_t n)
^
rx2atp:1932: error: 'u08_t' was not declared in this scope
rx2atp:1949: error: 'u08_t' has not been declared
char sio_w4ln(int nms, u08_t *lbu, u08_t nlb)
^
rx2atp:1949: error: 'u08_t' has not been declared
char sio_w4ln(int nms, u08_t *lbu, u08_t nlb)
^
rx2atp:1982: error: variable or field 'at2so_exec' declared void
void at2so_exec(u08_t blkwifi)
^
rx2atp:1982: error: 'u08_t' was not declared in this scope
rx2atp:2068: error: variable or field 'rdcfg' declared void
void rdcfg(u08_t *buf)
^
rx2atp:2068: error: 'u08_t' was not declared in this scope
rx2atp:2068: error: 'buf' was not declared in this scope
void rdcfg(u08_t *buf)
^
rx2atp:2359: error: variable or field 'dr_send' declared void
void dr_send(u08_t s)
^
rx2atp:2359: error: 'u08_t' was not declared in this scope
C:\Users\guild\Documents\Drones\drs023\rx2atp\rx2atp.ino: In function 'u08_t rx_read()':
rx2atp:1305: error: cannot convert '<anonymous struct>::<anonymous struct>::chn*' to 'rx_read()::chn*' in assignment
for (c = gl.rxs.chn + NEL(gl.rxs.chn); --c >= gl.rxs.chn; mch >>= 1)
^
rx2atp:1305: error: cannot decrement a pointer to incomplete type 'rx_read()::chn'
for (c = gl.rxs.chn + NEL(gl.rxs.chn); --c >= gl.rxs.chn; mch >>= 1)
^
rx2atp:1305: error: comparison between distinct pointer types 'rx_read()::chn*' and '<anonymous struct>::<anonymous struct>::chn*' lacks a cast
for (c = gl.rxs.chn + NEL(gl.rxs.chn); --c >= gl.rxs.chn; mch >>= 1)
^
rx2atp:1307: error: invalid use of incomplete type 'struct rx_read()::chn'
else if ((tot - c->tac) > FTTOT) err |= mch;
^
rx2atp:1297: error: forward declaration of 'struct rx_read()::chn'
struct chn *c;
^
rx2atp:1308: error: invalid use of incomplete type 'struct rx_read()::chn'
else if (c->dur < PTMIN || c->dur > PTMAX) err |= mch;
^
rx2atp:1297: error: forward declaration of 'struct rx_read()::chn'
struct chn *c;
^
rx2atp:1308: error: invalid use of incomplete type 'struct rx_read()::chn'
else if (c->dur < PTMIN || c->dur > PTMAX) err |= mch;
^
rx2atp:1297: error: forward declaration of 'struct rx_read()::chn'
struct chn *c;
^
rx2atp:1309: error: invalid use of incomplete type 'struct rx_read()::chn'
else c->val = rx_tk2v(c->dur,c->dbn);
^
rx2atp:1297: error: forward declaration of 'struct rx_read()::chn'
struct chn *c;
^
rx2atp:1309: error: invalid use of incomplete type 'struct rx_read()::chn'
else c->val = rx_tk2v(c->dur,c->dbn);
^
rx2atp:1297: error: forward declaration of 'struct rx_read()::chn'
struct chn *c;
^
rx2atp:1309: error: invalid use of incomplete type 'struct rx_read()::chn'
else c->val = rx_tk2v(c->dur,c->dbn);
^
rx2atp:1297: error: forward declaration of 'struct rx_read()::chn'
struct chn *c;
^
rx2atp:1319: error: cannot convert '<anonymous struct>::<anonymous struct>::chn*' to 'rx_read()::chn*' in assignment
for (c = gl.rxs.chn + NEL(gl.rxs.chn); --c >= gl.rxs.chn; ) c->val = 0;
^
rx2atp:1319: error: cannot decrement a pointer to incomplete type 'rx_read()::chn'
for (c = gl.rxs.chn + NEL(gl.rxs.chn); --c >= gl.rxs.chn; ) c->val = 0;
^
rx2atp:1319: error: comparison between distinct pointer types 'rx_read()::chn*' and '<anonymous struct>::<anonymous struct>::chn*' lacks a cast
for (c = gl.rxs.chn + NEL(gl.rxs.chn); --c >= gl.rxs.chn; ) c->val = 0;
^
rx2atp:1319: error: invalid use of incomplete type 'struct rx_read()::chn'
for (c = gl.rxs.chn + NEL(gl.rxs.chn); --c >= gl.rxs.chn; ) c->val = 0;
^
rx2atp:1297: error: forward declaration of 'struct rx_read()::chn'
struct chn *c;
^
exit status 1
variable or field 'itic' declared void
Auriez vous la possibilité de nous aider?
J’espère avoir été le plus clair possible.
Merci d'avance pour l'aide que vous pourrez nous apporter
Guildark