Compiling 3.4 dev code for copter

I have been trying to compile the 3.4 latest code and it doesn’t work. The code compiles just fine but the copter has bad oscillation. If I install the latest build the copter works just fine.
With bad oscillation I would change the Stabilize PIDs but they are not longer available to change.

I must be missing a compiler option or something.

Mike

Have you checked the new parameters from the motor refactoring:

See the comments here from Randy https://github.com/mavlink/qgroundcontrol/issues/3152

Right, I now the parameters changed but that doesn’t explain why the prebuild version works and the one I built doesn’t work.

Mike

I tried to change the Stabilize parameters but it made no difference. The copter still oscillates on takeoff. Everything else seems to work.
Here is a link to the test flight with the oscillation.

80.bin

I am using the Windows version with make and followed the instructions.

Mike

Well I managed to download the 3.3.4. pixracer version and compile that. Well it flies but not very responsive. It’s like the PIDs are really soft.
There are some new things added to PX4Firmware like gtest that cause compile errors maybe because of long path names or something.
Anyway there seems to be an issue with compiling on windows with the current development envirnmont.

Mike

After checking the logs it has the opposite problem of the 3.4 dev. The motor outputs are changing up and down so fast that the copter can not react to the changes. It just seems like sluggish performance.

I guess compiling on Windows is not working.

Mike

I have now setup a ubantu system and compiled the code. Even though the size does not match the released copy of it, it does indeed fly normally.
So if your going to compile the code don’t bother with windows.
I did notice that if I compile all the models the file size goes up. This would indicate that I picked up some lint alone the way.

Now I need to find a way to compare the compiled files to see where it goes sideways. As it would have it the two file systems have nothing in common.

Mike

I figured it out. Don’t use your windows client to clone the repository or update the submodules. Do it from the PX4 console as it’s made for that environment.

Mike