I’m very newbie to qgroundcontrol. After I customize original firmware ( only multicopter position control section) with fuzzy logic which updates p,i,d values depending upon velocity error and velocity error derivative. I want to make sure that this logic works well. In order to understand, I want to read some parameters in code while quadcopter moves. Is there any option to do ?
@dagar@DonLakeFlyer Thank you for your replies. I’ve check parameters section but i want to obtain variable values which is changing during fligh( like pitch, yaw and roll in main screen widget ). The variable that i want to obtain is vel_p vector in mp_pos_control_main.cpp
Is it possible to do with that way. Can i see the variable that i want through qgroundcontrol with that way. I’ve tried to implement example to my code but it gives error because of C normal and C ++ compatible issue. Example is given as C code. Error occurs because of struct debug_key_value_s dbg ={.key"vel",.value=0.0f}; part which is not C++ compatible.
code in front of main loop. It gives ‘dbg’ does not name a type error.
After this I’ve moved dbg.key and dbg.value part in main loop just before changing the value that i want to observe and it gives incompatible types in assignment of ‘const char[5]’ to int8_t[10] error.
If I erase dbg.key part in code it complies without error but i don’t see the result in analyze widget in qgroundcontrol. There is no variable which gives the value that i want. Do you have any idea to solve. If you would have same problem how would you solve. I’m new to pixhawk environment and Mavlink looks hard to understand completely. Can you sort me basic steps about how to get _params.vel_p variable in mc_pos_control_main.cpp
I’ve finally get the results with debug key value method as I mentioned before. I’m changing the debug key value and publishing in mc_pos_control_main.cpp. It is now visible in qgroundcontrol analyze widget. But it’s only visible when i connected with usb cable. When i try to connect with telemetry I can’t see it. Do you have any idea.
I can’t see that value when i connect with telemetry.
I have the same problem!
I can’t assign a name to my variable like “velx” i get the same error incompatible types in assignment of ‘const char[5]’ to int8_t[10]
Did you solved the problem?
Thanks!