Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[uavcan] actuators - fix #3377

Merged
merged 3 commits into from
Oct 2, 2024
Merged

[uavcan] actuators - fix #3377

merged 3 commits into from
Oct 2, 2024

Conversation

dewagter
Copy link
Member

@dewagter dewagter commented Oct 1, 2024

No description provided.

This was referenced Oct 1, 2024
@fvantienen
Copy link
Member

The idea was to add the RunOnceEvery here, which also solves the problem:

#define ActuatorsUavcan1Commit() actuators_uavcan_commit(&uavcan1, actuators_uavcan1_values, SERVOS_UAVCAN1_NB)

#define ActuatorsUavcan2Commit() actuators_uavcan_commit(&uavcan2, actuators_uavcan2_values, SERVOS_UAVCAN2_NB)

#define ActuatorsUavcan1CmdCommit() actuators_uavcan_cmd_commit(&uavcan1, actuators_uavcan1cmd_values, SERVOS_UAVCAN1CMD_NB)

#define ActuatorsUavcan2CmdCommit() actuators_uavcan_cmd_commit(&uavcan2, actuators_uavcan2cmd_values, SERVOS_UAVCAN2CMD_NB)

@dewagter
Copy link
Member Author

dewagter commented Oct 1, 2024

You prefer

#define ActuatorsUavcan2Commit() RunOnceEvery(XXX,actuators_uavcan_commit than having it in the driver like now or slowing down the actuator freq?

@dewagter dewagter self-assigned this Oct 1, 2024
@dewagter dewagter added the bug label Oct 1, 2024
@fvantienen
Copy link
Member

Yes since it is not nice to make a variable inside the iface. Because if you don't have the actuators this variable is unused.

@dewagter
Copy link
Member Author

dewagter commented Oct 1, 2024

@fvantienen Like this?

@fvantienen fvantienen merged commit b7b64d4 into master Oct 2, 2024
1 check passed
@fvantienen fvantienen deleted the fix_update_uavcan branch October 2, 2024 09:11
NoahWe pushed a commit to tudelft/paparazzi that referenced this pull request Oct 14, 2024
* Revert "RunOnceEvery instead of counter"

This reverts commit 4601b20.

* Revert "Revert "RunOnceEvery instead of counter""

This reverts commit d1cf1de.

* Move to headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants