-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add and modify Cubewheel files #232
Conversation
@SeirenTDoi ありがとうございます。check_coding_ruleのみで良いのでチェックが通るように修正していただけますと幸いです。 Coding ruleの詳細は下記の通りです。 |
@200km 承知しました。エラー理由がわからず取り急ぎインデントと文字コード対応しましたがまだエラーが出ますので、随時対応していきます。 |
コーディングエラーの詳細は、Actionsのdetailsで確認できます。 https://github.com/ut-issl/c2a-aobc/actions/runs/6387032172/job/17334731678?pr=232 |
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
check_coding_rule
src/src_user/Drivers/Aocs/cubewheel.c|87| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|88| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|96| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|101| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|109| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|114| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|122| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|127| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|314| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|315| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|476| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|508| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|523| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|540| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.c|546| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.h|8| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Drivers/Aocs/cubewheel.h|8| SPACE IS REQUIRED BEFORE '//'
src/src_user/Drivers/Aocs/cubewheel.h|76| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Drivers/Aocs/cubewheel.h|111| TOO MANY LINE BREAKS AT EOF
src/src_user/Drivers/Aocs/cubewheel.h|24| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|25| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|26| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|29| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|30| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|31| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|32| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|33| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|34| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|36| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|37| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|38| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|39| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|40| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|41| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|42| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|43| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|44| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|45| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|46| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|47| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|48| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|49| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|50| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|51| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|52| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|58| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|59| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|60| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|63| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|64| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|65| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|66| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|67| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|68| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|69| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|67| SPACE IS REQUIRED AFTER ';'
src/src_user/Drivers/Aocs/cubewheel.h|74| SPACE IS REQUIRED AFTER ','
src/src_user/Drivers/Aocs/cubewheel.h|8| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.h|8| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.h|76| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Drivers/Aocs/cubewheel.h|3| INCLUDE GUARD DOES NOT MEET CODING RULE
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|46| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|47| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|55| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|91| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|93| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/DriverInstances/di_cubewheel.c|101| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|195| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|224| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|243| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|263| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|287| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|304| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|324| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|344| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|364| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|403| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.c|293| TOO MANY CONSECUTIVE LINE BREAKS
src/src_user/Applications/DriverInstances/di_cubewheel.c|175| SPACE IS REQUIRED AFTER ','
src/src_user/Applications/DriverInstances/di_cubewheel.c|204| SPACE IS REQUIRED AFTER ','
src/src_user/Applications/DriverInstances/di_cubewheel.c|119| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|136| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|157| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|171| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|200| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|228| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|247| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|267| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|294| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|308| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|328| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|348| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|368| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|101| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|195| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|224| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|243| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|263| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|287| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|304| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|324| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|344| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|364| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|403| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|32| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.h|32| SPACE IS REQUIRED BEFORE '//'
src/src_user/Applications/DriverInstances/di_cubewheel.h|33| SPACE IS REQUIRED AFTER '//' OR '//!<'
src/src_user/Applications/DriverInstances/di_cubewheel.h|33| SPACE IS REQUIRED BEFORE '//'
src/src_user/Applications/DriverInstances/di_cubewheel.h|32| SPACE IS REQUIRED AFTER ';'
src/src_user/Applications/DriverInstances/di_cubewheel.h|33| SPACE IS REQUIRED AFTER ';'
src/src_user/Applications/DriverInstances/di_cubewheel.h|32| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|33| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|34| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|37| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|38| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|39| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|40| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|41| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|43| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|46| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|47| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|48| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|50| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|32| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|33| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
|
||
const static uint8_t CUBEWHEEL_kConvertValueOfCurrentFactor_ = 0.48828125; | ||
|
||
//Endianがビッグエンディアン |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER '//' OR '//!<'
GPIO_set_direction(CUBEWHEEL_driver->info.enable_port_no, GPIO_OUTPUT); | ||
|
||
CUBEWHEEL_driver->info.axis_id = axis_id; | ||
CUBEWHEEL_driver->info.maxspeed_in_rpm = 8000; //rpm |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER '//' OR '//!<'
|
||
CUBEWHEEL_driver->info.axis_id = axis_id; | ||
CUBEWHEEL_driver->info.maxspeed_in_rpm = 8000; //rpm | ||
CUBEWHEEL_driver->info.max_torque = 0.23; //mNm |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER '//' OR '//!<'
|
||
CUBEWHEEL_driver->driver.i2c_write.ch = ch; | ||
CUBEWHEEL_driver->driver.i2c_write.frequency_khz = 100; | ||
CUBEWHEEL_driver->driver.i2c_write.device_address = (device_address << 1); //write |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER '//' OR '//!<'
CUBEWHEEL_driver->driver.i2c_write.timeout_threshold = 500; | ||
CUBEWHEEL_driver->driver.i2c_write.rx_length = 8; | ||
|
||
//todo: ここはreopen? |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER '//' OR '//!<'
CUBEWHEEL_driver->info.runtime_in_msec = (uint16_t)raw_value; | ||
|
||
raw_value = data[5] << 8; //reserve | ||
raw_value += data[4]; //reserve |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
ReadRegister(CUBEWHEEL_driver, CUBEWHEEL_kCmdIdGetIdentification_, data, CUBEWHEEL_kTlmLengthGetIdentification_); | ||
|
||
// TLM128のdata[0]は8固定。 | ||
//Printf("ReadID = %d\n", data[0]); |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
int i; | ||
for (i = 0; i < CUBEWHEEL_kTlmLengthGetStatusErrorFlag_; i++) | ||
{ | ||
// Printf(data[i], HEX); Printf(" "); |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
CUBEWHEEL_driver->info.runtime_in_msec = (uint16_t)raw_value; | ||
|
||
raw_value = data[5] << 8; //reserve | ||
raw_value += data[4]; //reserve |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER ';'
|
||
const static uint8_t CUBEWHEEL_kConvertValueOfCurrentFactor_ = 0.48828125; | ||
|
||
//Endianがビッグエンディアン |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
check_coding_rule
src/src_user/Drivers/Aocs/cubewheel.h|50| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|51| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|52| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|57| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|58| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|59| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|62| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|63| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|64| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|65| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|66| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|67| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|68| TAB IS NOT PERMITTED
src/src_user/Drivers/Aocs/cubewheel.h|66| SPACE IS REQUIRED AFTER ';'
src/src_user/Drivers/Aocs/cubewheel.h|73| SPACE IS REQUIRED AFTER ','
src/src_user/Drivers/Aocs/cubewheel.h|3| INCLUDE GUARD DOES NOT MEET CODING RULE
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|46| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|47| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|55| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|91| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/UserDefined/AOCS/HardwareDependent/ActuatorControllers/rw_controller.c|93| ANY SPACE AT EOL NEEDS TO BE REMOVED
src/src_user/Applications/DriverInstances/di_cubewheel.c|293| TOO MANY CONSECUTIVE LINE BREAKS
src/src_user/Applications/DriverInstances/di_cubewheel.c|175| SPACE IS REQUIRED AFTER ','
src/src_user/Applications/DriverInstances/di_cubewheel.c|204| SPACE IS REQUIRED AFTER ','
src/src_user/Applications/DriverInstances/di_cubewheel.c|119| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|136| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|157| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|171| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|200| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|228| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|247| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|267| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|294| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|308| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|328| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|348| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.c|368| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|32| SPACE IS REQUIRED BEFORE '//'
src/src_user/Applications/DriverInstances/di_cubewheel.h|33| SPACE IS REQUIRED BEFORE '//'
src/src_user/Applications/DriverInstances/di_cubewheel.h|32| SPACE IS REQUIRED AFTER ';'
src/src_user/Applications/DriverInstances/di_cubewheel.h|33| SPACE IS REQUIRED AFTER ';'
src/src_user/Applications/DriverInstances/di_cubewheel.h|32| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|33| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|34| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|37| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|38| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|39| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|40| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|41| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|43| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|46| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|47| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|48| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|50| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
CUBEWHEEL_driver->info.runtime_in_msec = (uint16_t)raw_value; | ||
|
||
raw_value = data[5] << 8; // reserve | ||
raw_value += data[4]; // reserve |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE '//'
CUBEWHEEL_driver->info.runtime_in_msec = (uint16_t)raw_value; | ||
|
||
raw_value = data[5] << 8; // reserve | ||
raw_value += data[4]; // reserve |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
ReadRegister(CUBEWHEEL_driver, CUBEWHEEL_kCmdIdGetIdentification_, data, CUBEWHEEL_kTlmLengthGetIdentification_); | ||
|
||
// TLM128のdata[0]は8固定。 | ||
// Printf("ReadID = %d\n", data[0]); |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
CUBEWHEEL_driver->info.runtime_in_msec = (uint16_t)raw_value; | ||
|
||
raw_value = data[5] << 8; // reserve | ||
raw_value += data[4]; // reserve |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER ';'
C2A_MATH_ERROR CUBEWHEEL_set_rotation_direction_b(CUBEWHEEL_Driver* CUBEWHEEL_driver, | ||
const float rotation_direction_b[PHYSICAL_CONST_THREE_DIM]); | ||
|
||
#endif |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TOO MANY LINE BREAKS AT EOF
bool motor_state; | ||
bool hall_sensor_state; | ||
bool encoder_state; | ||
bool error_flag; |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
bool hall_sensor_state; | ||
bool encoder_state; | ||
bool error_flag; | ||
float gain_pwm; |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
bool encoder_state; | ||
bool error_flag; | ||
float gain_pwm; | ||
uint8_t gain_pwm_multiplier; |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
bool error_flag; | ||
float gain_pwm; | ||
uint8_t gain_pwm_multiplier; | ||
uint16_t feedback_gain; |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
float gain_pwm; | ||
uint8_t gain_pwm_multiplier; | ||
uint16_t feedback_gain; | ||
uint8_t feedback_gain_multiplier; |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
TAB IS NOT PERMITTED
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
check_coding_rule
src/src_user/Applications/DriverInstances/di_cubewheel.h|47| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|48| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
src/src_user/Applications/DriverInstances/di_cubewheel.h|50| SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
@@ -0,0 +1,111 @@ | |||
// CubeWheel.h | |||
|
|||
#ifndef _CUBEWHEEL_h |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
INCLUDE GUARD DOES NOT MEET CODING RULE
{ | ||
const uint8_t* param = CCP_get_param_head(packet); | ||
CUBEWHEEL_IDX cubewheel_idx; | ||
uint8_t raw_val[4] = { 0,0,0,0 }; |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER ','
{ | ||
const uint8_t* param = CCP_get_param_head(packet); | ||
CUBEWHEEL_IDX cubewheel_idx; | ||
uint8_t raw_val[4] = { 0,0,0,0 }; |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER ','
return ret; | ||
} | ||
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_Enable(const CTCP* packet) |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
return DS_conv_cmd_err_to_ccp_exec_sts(ret); | ||
} | ||
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_Init(const CTCP* packet) |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetSpeed(const CTCP* packet); | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetDutyCycle(const CTCP* packet); | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetControlMode(const CTCP* packet); |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetSpeed(const CTCP* packet); | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetDutyCycle(const CTCP* packet); | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetControlMode(const CTCP* packet); | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetPwmGain(const CTCP* packet); |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetDutyCycle(const CTCP* packet); | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetControlMode(const CTCP* packet); | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetPwmGain(const CTCP* packet); | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetMainGain(const CTCP* packet); |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetPwmGain(const CTCP* packet); | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetMainGain(const CTCP* packet); | ||
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_GetStatus(const CTCP* packet); |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_GetStatus(const CTCP* packet); | ||
|
||
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_SetBackupmode(const CTCP* packet); |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE AND AFTER BINARY OPERATOR
*/ | ||
AppInfo DI_CUBEWHEEL_update(void); | ||
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_Enable(const CommonCmdPacket *packet);// 旧 RW_startup |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE '//'
AppInfo DI_CUBEWHEEL_update(void); | ||
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_Enable(const CommonCmdPacket *packet);// 旧 RW_startup | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_Init(const CommonCmdPacket* packet);// 旧 RW_startup+enable |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED BEFORE '//'
*/ | ||
AppInfo DI_CUBEWHEEL_update(void); | ||
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_Enable(const CommonCmdPacket *packet);// 旧 RW_startup |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER ';'
AppInfo DI_CUBEWHEEL_update(void); | ||
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_Enable(const CommonCmdPacket *packet);// 旧 RW_startup | ||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_Init(const CommonCmdPacket* packet);// 旧 RW_startup+enable |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
SPACE IS REQUIRED AFTER ';'
*/ | ||
AppInfo DI_CUBEWHEEL_update(void); | ||
|
||
CCP_EXEC_STS Cmd_DI_CUBEWHEEL_Enable(const CommonCmdPacket *packet);// 旧 RW_startup |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
'*' MUST BE PLACED TO THE SIDE OF TYPE AT 'CommonCmdPacket *'
Printf("Error: I2C_init in i2c_rw_slave_.\n"); | ||
return DS_CMD_UNKNOWN_ERR; | ||
} | ||
else |
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.
🚫 [check_coding_rule] reported by reviewdog 🐶
ANY SPACE AT EOL NEEDS TO BE REMOVED
@200km ありがとうございます。check_coding_ruleは通りましたので、ご確認をお願いします |
こちらもs2eで指摘させていただいた部分と同様に、cubeとwheelを別単語として扱うよう各種修正をお願いします。 |
@200km こちら、対応しました。 |
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.
ビルドを通すための修正やrefactorは別でやるということで、ここではapproveします。
Issue
- 関連する issue
詳細
CubeWheelに関するコードを追加。
検証結果
ビルドチェック (どちらもチェック)
動作確認チェック (いずれかをチェック)
補足
NA