I hope this question is not too stupid ... I have problem with an if statement not being executed ... the corners below are fixed, const. Now I want a static variable alphadrone move from one corner to the other.
The first 'if' works, the second not. I really go crazy with this ...
const int32_t corner_1_X = 47.590000 * 1e3 * LATLON_TO_CM;
const int32_t corner_1_Y = 7.646000 * 1e3 * LATLON_TO_CM; //bigger
const int32_t corner_2_X = 47.590000 * 1e3 * LATLON_TO_CM;
const int32_t corner_2_Y = 7.644000 * 1e3 * LATLON_TO_CM; //smaller
static int32_t alphadroneXposition = corner_1_X;
static int32_t alphadroneYposition = corner_1_Y;
// if (corner_1_Y > corner_2_Y)
// moveAlphadroneYneg(&alphadroneYposition);
if (alphadroneYposition > corner_2_Y)
moveAlphadroneYneg(&alphadroneYposition);
Aucun commentaire:
Enregistrer un commentaire