Open bmelanman opened 1 month ago
Update on this: I figured it out! I had used a formatter on my parameters source file (i.e. module_params.c
) which apparently prevented the params from being parsed due to the addition of spaces inside the param declaration
This works:
PARAM_DEFINE_INT32(MNT_DO_STAB, 0);
// without spaces ^ ^
This does not work:
PARAM_DEFINE_INT32( MNT_DO_STAB, 0 );
// with spaces ^ ^
Technically the problem is now solved, however this seems like something that will come up as an issue again in the future, so feel free to leave this issue open, or close it and make a new one, or whatever else.
Thanks!
Describe the bug
I've been doing semi-regular syncs between the main PX4 repo branch and a custom fork that I've been using to implement a gimbal as a senior project.
Unfortunately it seems that the most recent sync has (somehow?) broken my module's parameters! Once everything is compiled and flashed, the UART output of the ARK CANnode I'm using give a wall of
ERROR [param] Parameter <whatever> not found.
for all of my module's params.I've had similar issues in the past (that is, errors related to a repo sync), and I can normally just sort through the commits to see what might've caused the issue, but I haven't been able to find anything thus far, and I'm making very little progress towards a solution compared to past issues as well.
To Reproduce
Clone my PX4 fork (LINK) and compile it for the ARK CANnode, flash it however you choose, and watch the debug UART output on boot
Expected behavior
I expect all parameters to be found
Screenshot / Media
No response
Flight Log
N/A
Software Version
Flight controller
ARK CANnode
Vehicle type
Other
How are the different components wired up (including port information)
The CANnode is currently not connected to anything except 5V and a debug breakout board
Additional context
No response