-
Notifications
You must be signed in to change notification settings - Fork 1
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
155 clean unused firmware components #185
Conversation
0e6f99e
to
95d4342
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me, only one comment about cogip-board-pami
boards/cogip-board-pami/board.c
Outdated
@@ -19,6 +19,7 @@ | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion you can also remove cogip board PAMI as cogip-board is the only one used in applications
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, done.
@@ -6,3 +6,6 @@ PORT = "/dev/ttyUSB0" | |||
|
|||
# Setup of programmer and serial is shared between STM32 based boards | |||
include $(RIOTMAKE)/boards/stm32.inc.mk | |||
|
|||
# Set onboard transceiver loop delay | |||
CFLAGS += -DCONFIG_FDCAN_DEVICE_TRANSCEIVER_LOOP_DELAY=130 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you determine this value ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can find it inside the datasheet:
I choose a value that is inside both ranges, nominal and highly loaded network. i added this to the commit message:
The TCAN332GDCNR CAN transceiver datasheet exposes two ranges for this
value:
- Nominal range: 100 (typical) to 135 (max)
- Highly loaded network: 120 (typical) to 180 (max)
So here the value 130 is choosen as it is inside both ranges.
This value has been tested in nominal robot working conditions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok ! Thank's
6fb685b
to
5466f13
Compare
In latest versions of RIOT, stdio.h is not systematically included at board level, so include it manually. Signed-off-by: Gilles DOFFE <[email protected]>
Compensate for transceiver loop delay in FDCAN timing The transceiver loop delay introduces a lag between sending and receiving messages in FDCAN due to internal processing. This delay affects bit timing, especially in high-speed communication, and can lead to synchronization issues. This commit adjusts this timing parameters as it is mandatory for the new RIOT fdcan driver implementation. Signed-off-by: Gilles DOFFE <[email protected]>
This feature has been renamed in RIOT. Signed-off-by: Gilles DOFFE <[email protected]>
Since RIOT commit e93b5e4b98, thread_measure_stack_free() prototype has changed to fixed. Update it to be compliant with new RIOT versions. Signed-off-by: Gilles DOFFE <[email protected]>
This driver is not used anymore since lidar management has been moved to the Raspberry Pi4. Signed-off-by: Gilles DOFFE <[email protected]>
SD21 analog servo driver board, derived from SD12 board is not used since 2019 robotic cup and can thus be removed. Signed-off-by: Gilles DOFFE <[email protected]>
Vacuum pump driver board, is not used anymore since 2023 robotic cup and can thus be removed safely. Signed-off-by: Gilles DOFFE <[email protected]>
The cup2024-pami application is specific to French robotic cup 2024 and PAMIs architecture will change in 2025, thus remove it. Signed-off-by: Gilles DOFFE <[email protected]>
The pf-pami platform is specific to French robotic cup 2024 and PAMIs architecture will change in 2025, thus remove it. Signed-off-by: Gilles DOFFE <[email protected]>
Analog servomotors are not used anymore and numerical servomotors are now managed directly by the Raspberry Pi. So remove all code related to servomotors, analog or numerical from pf-robot-actuators platform. Signed-off-by: Gilles DOFFE <[email protected]>
Analog servomotors are not used anymore in favor of numerical servomotors directly driven by the Raspberry Pi4, thus remove the driver. Signed-off-by: Gilles DOFFE <[email protected]>
LX servomotors are not used anymore and have been replaced by Waveshare servomotors directly driven by the Raspberry Pi4. Signed-off-by: Gilles DOFFE <[email protected]>
No more drivers are handled specifically by the firmware, thus delete the drivers folder. Signed-off-by: Gilles DOFFE <[email protected]>
Avoidance has been moved to the Raspberry Pi4 and this library is then not used anymore, remove it. Signed-off-by: Gilles DOFFE <[email protected]>
Obstacle management has been moved to the Raspberry Pi4 and this library is then not used anymore, remove it. Signed-off-by: Gilles DOFFE <[email protected]>
The pure C quadpid motion controller has been ported to C++ through new implementation. The quadpid and the common controller part has been kept as a fall back, but the new motion control modules are now fully operationals. Remove quadpid and common_controller. Signed-off-by: Gilles DOFFE <[email protected]>
Old pure C PID module has been replaced by C++ pid_ng module. Remove it. Signed-off-by: Gilles DOFFE <[email protected]>
As legacy PID implementation has been removed, rename pid_ng to pid. Signed-off-by: Gilles DOFFE <[email protected]>
As it is done now on the Raspberry Pi4, this code is no more used nor maintained. Signed-off-by: Gilles DOFFE <[email protected]>
The uartpb protocol is handling protobuf messages over uart. However all COGIP boards are now using canpb to handle protobuf messages over CAN bus. The uartpb protocol is now legacy and not maintained any more, thus remove it. Signed-off-by: Gilles DOFFE <[email protected]>
The shmem module was used forcommunication with old versions of simulator. This module is no more used for a long time so remove it. Signed-off-by: Gilles DOFFE <[email protected]>
As all menus are now displayed on the Raspberry Pi4, console menu on RIOT is no more relevant and is not used anymore. Signed-off-by: Gilles DOFFE <[email protected]>
These directories are now empty, remove them. Signed-off-by: Gilles DOFFE <[email protected]>
As shell_menu module does not exist anymore, remove parsing for shell menu commands modules. Signed-off-by: Gilles DOFFE <[email protected]>
8d41936
to
fb35c8d
Compare
The transceiver loop delay introduces a lag between sending and receiving messages in FDCAN due to internal processing. This delay affects bit timing, especially in high-speed communication, and can lead to synchronization issues. The TCAN332GDCNR CAN transceiver datasheet [1] exposes two ranges for this value: - Nominal range: 100 (typical) to 135 (max) - Highly loaded network: 120 (typical) to 180 (max) So here the value 130 is choosen as it is inside both ranges. This value has been tested in nominal robot working conditions. [1] https://www.ti.com/lit/ds/symlink/tcan332g.pdf Signed-off-by: Gilles DOFFE <[email protected]>
fb35c8d
to
998501f
Compare
The transceiver loop delay introduces a lag between sending and receiving messages in FDCAN due to internal processing. This delay affects bit timing, especially in high-speed communication, and can lead to synchronization issues. Fake the value here as cogip-native is for simulation. Signed-off-by: Gilles DOFFE <[email protected]>
This board is not used anymore as cogip-board is also used in PAMIs. Signed-off-by: Gilles DOFFE <[email protected]>
LGTM |
This PR removes from firmware all legacy code and unused modules.
Each deprecated module is removed in a specific commit in case of revert needed.