Hello,
I am using the Mindracer on Mocap indoor control. The firmware I use is px4 1.10.1. Today I found that all my sensor calibration was lost. The "Airframe, Sensors, Radio, Flight Modes, and Power" are all red in the QGC. Then I started to recalibrate the sensors and tune the PID parameters. However, during my PID tuning, Mindracer reset all the settings to uncalibrated again. I am wondering what's the reason. Is there any severe problems in my Mindracer? Do I need to purchase a new one? Thanks.

Edit:
My mindrace was changed to add the pmw3901:http://www.club.mindpx.net/d/82-mindrace-j7-connector-type-and-using-pmw3901-optical-flow-on-it/2

and Removed the resistor R34 :http://www.club.mindpx.net/d/54-mindracer-interface-board-pinout-map/9

    zhanghaijason

    This may happen if you are using onboard flash for params saving, as px4 onboard flash driver not handling it well.
    Recommended solution is to use a TF card as param storage. SD driver performs much more solid.

      6 days later

      rolandash Hi, finally I save my parameters into my pc drive. However, today, it reset again after a failsafe initiation. It fell from about 2m high on carpet. I think the falling, the impact was not that bad. But it reset again. The worse thing is that after I load the parameters from the drive. I cannot arm the drone anymore. At first I thought it damaged the 4 in 1 ESC. So changed a new ESC. But it still behaved the same. It behaves like: if it is the first arm from remote controller, the motors will rotate 0.5s I think, and stop. If I tilt the drone forward, only 2 forward motors can rotate at a very low speed. If titled backward, the back 2 motors will rotate. After the mindracer signal LED blinks white, which means disarm after arm if no extra signal received, there will no signal anymore.

      I recalibrate the radio, it still behaves the same. So I think the radio, controller, and ESC should be good. Do you know what is the possible reason? Is it the power distribution board or the mindracer (the mindracer LED behaves normal I believe). I also ordered both pdb and mindracer. Hope they can arrive soon.

        zhanghaijason

        I am not sure I understood what you did. I guess you probably misunderstood my advice. Saving params into computer drive off-board won't resolve your problem, as MindRacer will still load the problematic params from onboard flash during flying.
        The point is to insert a TF card into MindRacer's card slot, like in below's image,

        and use this TF card as storage for params, instead of the default onboard flash chip.

        The onboard flash chip maybe physically defected due to high temperature when you do soldering, or can because of un-stable px4 flash driver, both can result in wrong param values reading. Using an TF card instead can isolate these possibilities.

        Saving

          rolandash Hi Thanks for the clarification. I have been using the TF card, is there any settings I need to change to make the parameters saved in the TF card? Do I need to do something or as long as it can detect the TF card, it can save the params into the TF card? If it is automatically, then I think it doesn't work for my case since I have been using the TF card the first day I received the mindracer.

          And for my last reply is a different question. I posted here is because I am wondering if it is related to the parameter reset or not. The problem in the last reply is that now the ESC is not controllable. I can not arm the drone. Do you have any idea what's the possible reason? Thanks

            zhanghaijason

            ok sry I did forget few lines in px4 src needs to be changed in order to do that.
            Please locate file ROMFS/px4_common/init.d/rcS, and find the line
            if mtd start
            and replace this if-fi block with following:

            set PARAM_FILE /fs/microsd/params
            if [ -f $PARAM_FILE ]
            then
            else
            if mtd start
            then
            set PARAM_FILE /fs/mtd_params
            fi
            fi

            re-compile and upload the new firmware.
            If your TF card is clean (require FAT32 formatted first of course), all calibration tabs will be red on next boot up. and you can do a fresh calibration from the beginning.

              rolandash Thank you. I will try it tomorrow. For the uncontrollable ESC. I changed the autopilot to pixhawk, wires, ESCs, motors..etc It still behaves the same. Then I guessed it is because the Frsky remote controller. I followed a tutorial to set a new flight model. And now I can control the ESC and motors. But I haven't flown it yet. But when I arm it, and increase the throttle, all motors will speed up. This is good. But if I lower the throttle, one motor will stop (I calibrate the ESC). but it can spin again if I increase throttle. Anyway, i will try to fly it tomorrow.

              Since it took me some time to set up a new model in Frsky. All the tutorials i found seem not new-user friendly. Do you have any tutorial on this part? If yes, can you share me the link? Thanks.

                zhanghaijason

                AFASIK, you do not need to setup a new model in FrSky to operate PX4 properly.

                I think your drone flies fine according to your previous posts? what parts have been changed, besides the parameter reset issue?

                  rolandash I think nothing changed. Yes, it was pretty good. I will try to compile the firmware and upload. Thanks for your help!

                    Write a Reply...