Closed marcomacchia99 closed 1 year ago
Moreover, the function armMotors()
is fully commented. Uncommenting it results in the ability of arming a DJI Mini2 drone from QGC
The incorrect code formatting doesn't clearly show the error, which is a missing brace for the else statement! In this way, everytime this message is received, the motors are disarmed no matter the value of
param1
That is clearly a bug. Fixed.
Moreover, the function
armMotors()
is fully commented. Uncommenting it results in the ability of arming a DJI Mini2 drone from QGC
Are you sure mFlightController.turnOnMotors()
is needed for the DJI MIni 2 to take off?
Please try first without uncommenting this code, because I believe your problem was the other bug (missing brackets).
Are you sure
mFlightController.turnOnMotors()
is needed for the DJI MIni 2 to take off? Please try first without uncommenting this code, because I believe your problem was the other bug (missing brackets).
mFlightController.turnOnMotors()
is needed only to formally arm the DJI Mini 2 and start the motors, which I think is what the arm button of QGC should do. In my opinion it could be useful to let the user use the full interface of QGC also for controlling the drone, beyond planning missions.
I'm not sure why it was commented (probably because of safety reasons), but in my experience, taking off works fine without it.
I believe it is not necessary for DJI drones because the SDK starts the motors automatically when required.
Describe the bug
In
MavLinkReceiver.java
, starting fromline 187
it is written:The incorrect code formatting doesn't clearly show the error, which is a missing brace for the else statement! In this way, everytime this message is received, the motors are disarmed no matter the value of
param1
Steps To Reproduce
No response
Screenshots
No response
Desktop
No response
Smartphone
No response
Additional context
No response