I am making my own GCS and for radio communication i have copied the MAVLink classes from the MissionPlanner instead of making everything from the ground up. I’ve tried sending an Arm message since i figured it would be the easiest way to verify that the message was received.
When arming from the MissionPlanner the rotors start spinning, however when i try doing it with a testprogram (just a barebones GUI with a button which calls the doARM() method) it won’t arm.
I tried using a 2nd pc to read the radio telemetry and have a 0 instead of a 1 on byte 36 compared with the MissionPlanner. I’ve tried calling doARM() with true as well as false as the parameter and got the same result.
Message from MissionPlanner:
(byte number) (value)
0 254
1 33
2 103
3 255
4 190
5 76
6 0
7 0
8 128
9 63
10 0
11 0
12 0
13 0
14 0
15 0
16 0
17 0
18 0
19 0
20 0
21 0
22 0
23 0
24 0
25 0
26 0
27 0
28 0
29 0
30 0
31 0
32 0
33 0
34 144
35 1
36 1
37 250
38 0
39 62
40 251
Message from own project:
(byte number) (value)
0 254
1 33
2 0
3 255
4 190
5 76
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
14 0
15 0
16 0
17 0
18 0
19 0
20 0
21 0
22 0
23 0
24 0
25 0
26 0
27 0
28 0
29 0
30 0
31 0
32 0
33 0
34 144
35 1
36 0
37 250
38 0
39 118
40 215
Any ideas on what i’m doing wrong?