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
Copy file name to clipboardExpand all lines: src/core/main.cpp
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -51,8 +51,8 @@ static int rt_thread_epoll_fd; /*!< epoll file descriptor for rt thread */
51
51
staticint rtControlPriority = 80; /*!< priority of application thread */
52
52
staticvoid *rt_control_thread(void *arg);
53
53
staticpthread_t rt_control_thread_id;
54
-
constfloat controlLoopPeriodInms = 3; /*!< Define the control loop period (in ms): the period of rt_control_thread loop. */
55
-
constfloat CANUpdateLoopPeriodInms = 3; /*!< Define the CAN PDO sync message period (and so PDO update rate). In ms. Less than 3 can lead to unstable communication */
54
+
constfloat controlLoopPeriodInms = 10; /*!< Define the control loop period (in ms): the period of rt_control_thread loop. */
55
+
constfloat CANUpdateLoopPeriodInms = 10; /*!< Define the CAN PDO sync message period (and so PDO update rate). In ms. Less than 3 can lead to unstable communication */
56
56
CO_NMT_reset_cmd_t reset_local = CO_RESET_NOT;
57
57
58
58
/** @brief Task Timer used for the Control Loop*/
@@ -191,7 +191,7 @@ int main(int argc, char *argv[]) {
191
191
spdlog::info("Starting CANopen device with Node ID {}", nodeId);
0 commit comments