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
The hardware pin definitions are hardcoded in almost all main.cc files in examples, which prevents the designed convientent function of switching board by changing one line in CMakeLists.txt
chassis = new control::Chassis(chassis_data);
dbus = new remote::DBUS(&huart3);
}
This should not be manually defined in every main.cc file. Instead, this port definition should be a DEFINE for one-liner change to switch to a differenty type of STM32 control board.
The text was updated successfully, but these errors were encountered:
The hardware pin definitions are hardcoded in almost all main.cc files in examples, which prevents the designed convientent function of switching board by changing one line in CMakeLists.txt
For example, in the gimbal example,
https://github.com/illini-robomaster/iRM_Embedded_2022/blob/main/examples/gimbal/main.cc#L51
Here, the huart1 is the dbus port for the type A board only. For type-c board, the dbus port is
https://github.com/illini-robomaster/iRM_Embedded_2022/blob/main/examples/chassis/main.cc#L56
This should not be manually defined in every main.cc file. Instead, this port definition should be a DEFINE for one-liner change to switch to a differenty type of STM32 control board.
The text was updated successfully, but these errors were encountered: