Closed keenanjohnson closed 5 years ago
Simply not enough RAM left, I'm afraid. You could try to disable stuff like extra mavlink instances in the startup script to free up some RAM.
@keenanjohnson if you can share the output of top
we might have some ideas.
Here's the output of top:
@keenanjohnson I think Daniel also meant the output of free
in addition. Thanks!
An obvious win would be the uavcan fw srv. It is used to upgrade nodes like ESCs with new Firmware and we could in theory shut it down before starting any calibration.
@keenanjohnson the easiest way to save some memory is limit the number of mavlink instances (mavlink status
). For example when you have USB connected it starts an extra mavlink instance. As a side note you probably shouldn't calibrate the compass with USB attached regardless of memory.
SYS_COMPANION
.uavcan stop fw
(@LorenzMeier's comment).uavcan shrink
Another option is to disable the dynamic node ID and firmware server permanently. Just assign Node IDs to your nodes manually. This is by far the easiest, and what I do on FMUv3 targets these days. See the UAVCAN_ENABLE
parameter, and make sure you're on the "Manual Config" option.
@mhkabir thanks for the instructions, I just wonder how do I assign the node IDs to my nodes? How do I know what are the IDs of my nodes and where do I set them? I can only see one parameter related to this, UAVCAN_NODE_ID, is that what I should change? Thanks
@dusan19 You set node IDs on the node (e.g GPS, ESC, etc.) itself. Use an e.g Zubax Babel and uavcan_gui_tool
(https://uavcan.org/GUI_Tool/Overview/).
Side note : UAVCAN-Mavlink parameter bridge seems to be broken currently. Not sure if it's a QGC thing or PX4 thing.
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.
Closing as stale.
I get an out of memory error if I do sensor calibrations while UAVCAN is enabled.
This did not happen in 1.7
To Reproduce Steps to reproduce the behavior:
Drone (please complete the following information):