I have a pixhawk 4 and have installed latest release 1.8.2. I tried doing this
pwm arm
pwm test -a -p 1500 -v
on mavlink console but nothing happens on the i/o pwm . I am guesing that the pwm is not armed . On the QGC screen i get a preflight failed : mag inconsistent and it is DISARMED is what it says.
I have two question, is this DISARMED the reason that i am not seeing the output i want to see?
Or is it the something else ?
and also how do I resolve the preflight failed : mag inconsitent ? is it by disablling CAL_MAG_EN0 or changing COM_ARM_MAG value to some higher value (btw this is what i got after looking for - âPreflight failed : mag inconsitentâ).
I have posted one of the solution(in the above thread) mentioned in the topics in master. but i am not certain if should do that ?
Also i wanted to know that ::
pwm arm;
pwm test -a -p 1500 -v
work only when the system is armed? because i am not getting out for these commands when i put it on MAVlink.
Can you point me to the topic concerning âpreflight fail errorâ?, because i am having a lot of threads discussin on that .
I apologise for creating a duplicate thread. I guess I just got a little impatient.
Sure ,
This is the link that i refered to for preflight failed : mag sensor inconsitent. https://github.com/PX4/Firmware/issues/8475 .
From that what i got was that we can disable the CAL_MAG_EN0 or change the COM_ARM_MAG to different value. Please intimate me if i am producing something wrong from this linked.
Iâve been struggling to get âpwm testâ working too. When I finally got it working, it didnât need to be armed in QGroundControl. Although my hardware was different, a Pixhawk 2.4.6 That difference could be significant, because the Pixhawk 4 doesnât appear to have the same safety switch arrangement.
In my experience, âpwm armâ and âpwm disarmâ didnât do anything helpful. All I needed to do was press the safety switch (until it double blinked). After that, the âpwm testâ command would work. (Not armed in QGroundControl and didnât use the âpwm armâ command).
Although operation was strange. If you first tested only a single channel (say with âpwm test -c 1 -p 1200â), then you couldnât test any other channel after that, although you could could test that particular channel again. However, if you first tested all channels (with âpwm test -a -p 1200â), after that you could test each individual channels. In fact, if you issued the command to test all channels before you pressed the safety switch (in which case nothing would appear to happen), then pressed the safety switch, you could then test individual channels.
@JulianOes sorry for very late reply on the flight logs . Here is the link to my flight logs,
Apparently, error about mag sensor inconsistent was taken care off after calibrating it again.
But new error telling about âPreflight checks failedâ pop-up when arm switch is pressed.
@JulianOes , the warning said Critical : preflight Check failed
Critical : Arming denied .
But after pressing the safety switch on the gps it successfully armed . I am not sure what the problems was but now the quadcopter gets armed . Also once armed the pwm test command did work perfectly .
Please let me know what might be the reason for preflight failed or was it that the safety switch was not pressed that why it was showing preflight failed ?