Closed jhlink closed 9 years ago
Also, @tilllles seemed to have brought this issue up when he was testing the application using SITL, but I believe the problem extends to actual hardware. I'm using a PX4 flight controller.
So after debugging for a bit, I've found that a bunch of messages aren't actually being handled. Especially three of messages required, which are local_position_ned, position_target_global_int, and highres_imu.
=> update submodule c_library would maybe be the solution
try checking out these links below, there is an important step regarding setting permissions for the tty port. as you mentioned, this example is only working for PX4 Firmware.
https://groups.google.com/d/msg/px4users/MfzpqObhraY/LJ8o6GZGXWwJ
https://groups.google.com/d/msg/px4users/MfzpqObhraY/QjYtceJmDFkJ
specifically mugesh's post --
i. sudo chmod 666 /dev/ttyACM0 –> sets the proper permission ii. sudo usermod -a -G dialout name –> replace name with your account and don't forget to logout/login. This adds your user to the dialout-group iii. sudo apt-get remove modemmanager –> modemmanager tends to occupy a device only briefly, but it's initial tests make trouble for any firmware upgrade software that reboots the pixhawk.
On Mon, May 25, 2015 at 8:07 AM, Stefan notifications@github.com wrote:
=> update submodule c_library would maybe be the solution
— Reply to this email directly or view it on GitHub https://github.com/mavlink/c_uart_interface_example/issues/14#issuecomment-105249047 .
So, reflashing the FC did it. Just make sure before reflashing, you erase sd card to "clean it" for the new firmware.
I didn't see successful results until I cleaned the SD card, even after trying the method stated above.
Closing Issue!! :D
fantastic!
On Mon, May 25, 2015 at 4:33 PM, jhlink notifications@github.com wrote:
Closed #14 https://github.com/mavlink/c_uart_interface_example/issues/14 .
— Reply to this email directly or view it on GitHub https://github.com/mavlink/c_uart_interface_example/issues/14#event-313299137 .
For some reason, after compiling the program and executing the program, no response is received after finding a response and discovering the system ID and component ID.
I changed debug to true and found that there is a dropped packet. I've been looking through the msg IDs that are posted to the command console, it seems that all msg IDs are handled at some point. A few msgs by some random basis seem to be dropped completely.
Is this a bug that hasn't been resolved yet?