Skip to content
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

Merged
merged 12 commits into from
Oct 5, 2023
Merged

Conversation

SeirenTDoi
Copy link
Collaborator

@SeirenTDoi SeirenTDoi commented Oct 2, 2023

Issue

- 関連する issue

詳細

CubeWheelに関するコードを追加。

検証結果

ビルドチェック (どちらもチェック)

  • SILSでのビルドチェックに通った(CIで確認)
  • vMicroでのビルドチェックに通った

動作確認チェック (いずれかをチェック)

  • SILSでアルゴリズムが想定通りに動いた
  • 実機でアルゴリズムが想定通りに動いた
  • (テレコマ試験の場合)コマンドファイルを使った試験をパスした

補足

NA

@SeirenTDoi SeirenTDoi requested review from sksat and a team as code owners October 2, 2023 07:15
@SeirenTDoi SeirenTDoi requested review from 200km, suzuki-toshihir0, t-hosonuma and conjikidow and removed request for a team October 2, 2023 07:15
@SeirenTDoi SeirenTDoi self-assigned this Oct 2, 2023
@200km
Copy link
Member

200km commented Oct 2, 2023

@SeirenTDoi ありがとうございます。check_coding_ruleのみで良いのでチェックが通るように修正していただけますと幸いです。

Coding ruleの詳細は下記の通りです。
https://github.com/ut-issl/c2a-core/blob/042cdfa15b0056880398e857cdd5d5a430562fd1/Docs/General/coding_rule.md

@200km 200km added ✈️ priority::medium priority medium 🐬 minor update Minor update labels Oct 2, 2023
@200km 200km added this to the v8.0.0 Major update milestone Oct 2, 2023
@SeirenTDoi
Copy link
Collaborator Author

SeirenTDoi commented Oct 3, 2023

@200km 承知しました。エラー理由がわからず取り急ぎインデントと文字コード対応しましたがまだエラーが出ますので、随時対応していきます。

@200km
Copy link
Member

200km commented Oct 3, 2023

コーディングエラーの詳細は、Actionsのdetailsで確認できます。
今出ているのは文字コードがUTF8出ないというエラーなようです。

https://github.com/ut-issl/c2a-aobc/actions/runs/6387032172/job/17334731678?pr=232

Copy link

@github-actions github-actions bot left a 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がビッグエンディアン
Copy link

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
Copy link

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
Copy link

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
Copy link

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?
Copy link

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
Copy link

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]);
Copy link

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(" ");
Copy link

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
Copy link

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がビッグエンディアン
Copy link

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

Copy link

@github-actions github-actions bot left a 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
Copy link

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
Copy link

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]);
Copy link

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
Copy link

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
Copy link

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;
Copy link

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;
Copy link

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;
Copy link

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;
Copy link

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;
Copy link

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

Copy link

@github-actions github-actions bot left a 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
Copy link

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 };
Copy link

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 };
Copy link

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)
Copy link

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)
Copy link

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);
Copy link

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);
Copy link

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);
Copy link

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);
Copy link

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);
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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

@SeirenTDoi
Copy link
Collaborator Author

@200km ありがとうございます。check_coding_ruleは通りましたので、ご確認をお願いします

@200km
Copy link
Member

200km commented Oct 4, 2023

こちらもs2eで指摘させていただいた部分と同様に、cubeとwheelを別単語として扱うよう各種修正をお願いします。

@SeirenTDoi
Copy link
Collaborator Author

こちらもs2eで指摘させていただいた部分と同様に、cubeとwheelを別単語として扱うよう各種修正をお願いします。

@200km こちら、対応しました。

Copy link
Member

@200km 200km left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ビルドを通すための修正やrefactorは別でやるということで、ここではapproveします。

@SeirenTDoi SeirenTDoi merged commit e64a0e8 into develop Oct 5, 2023
9 of 11 checks passed
@SeirenTDoi SeirenTDoi deleted the feature/add_cubewheel_files branch October 5, 2023 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants