-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
当前代码main函数中的
//Broadcast every second
if (imu_en && frame_num % orig_odom_freq * cut_frame_num == 0 && !online_calib_finish) {
和LI_Init::data_sufficiency_assess函数中的
//Give a Data Appraisal every second
if (frame_num % orig_odom_freq * cut_frame_num == 0) {
根据c++的运算符优先级,cut_frame_num 并没有生效,因为% 和 * 优先级相同,且都是左结合性。
因此我是不是应该将代码修改为 frame_num % (orig_odom_freq * cut_frame_num) == 0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels