You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found it that when do pwm test, the program will execute
D:\PX4\home\Firmware\src\systemcmds\pwm\pwm.cpp ,and in this file DO int fd = px4_open(dev, 0); PX4_INFO("dev ============:%s",dev); PX4_INFO("dev's fd========:%d",fd);
Adding two lines above to see the value of dev and fd, I got this picture, The dev is changed but fd value is 3 all the time,…
trace it, go to \PX4\home\Firmware\src\lib\cdev\posix\cdev_platform.cpp
Add one line PX4_INFO("Do px4_opennnnnnnnnnn"); before PX4_DEBUG("px4_open");
Build and upload the program
But I cant get any information in nsh mavlink console about px4_open
And I don’t want to Add PX4_INFO() every time
How to see the PX4_DEBUG() info??
The text was updated successfully, but these errors were encountered:
I follow the https://dev.px4.io/en/debug/system_console.html
and want to connect to system console
Connect to the fmu debug port using usb2serial cable
and set putty like below, when power on pixhawk4 ,I can get some "!@#$!@#$!@#$@$@#$........."In the console
I dont know it means what
Can you help me????
@Elite yang
在 2019-05-31 17:47:02,"Elite yang" <[email protected]> 写道:
You can add "printf("px4_open")" and you can get it through serial4/5
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The file descriptor fd is just a number that open returns (per NuttX task). It has nohas no global meaning. So it makes sense that it's always 3 for your case.
To enable PX4_DEBUG for a module, I usually do something like this at the beginning of the file:
Found it that when do pwm test, the program will execute
D:\PX4\home\Firmware\src\systemcmds\pwm\pwm.cpp ,and in this file DO
int fd = px4_open(dev, 0);
PX4_INFO("dev ============:%s",dev);
PX4_INFO("dev's fd========:%d",fd);
Adding two lines above to see the value of dev and fd, I got this picture, The dev is changed but fd value is 3 all the time,…
trace it, go to \PX4\home\Firmware\src\lib\cdev\posix\cdev_platform.cpp
Add one line
PX4_INFO("Do px4_opennnnnnnnnnn");
beforePX4_DEBUG("px4_open");
Build and upload the program
But I cant get any information in nsh mavlink console about px4_open
And I don’t want to Add PX4_INFO() every time
How to see the PX4_DEBUG() info??
The text was updated successfully, but these errors were encountered: