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

Nose software1 #12

Merged
merged 27 commits into from
Jan 13, 2024
Merged

Nose software1 #12

merged 27 commits into from
Jan 13, 2024

Conversation

nihinihikun
Copy link
Contributor

以下確認して消してからプルリク出してください

概要

  • ノーズ各センサ類使用テスト

背景

  • ノーズのセンサ類等おためし

変更範囲

  • 各センサの動作,統合まではこのプルリクで,CAN関連は別のプルリクで

@nihinihikun nihinihikun self-assigned this Dec 29, 2023
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

cpplint

Nose/source/MCP342X-master/MCP342X.h|127| #endif line should be "#endif // NOSE_SOURCE_MCP342X_MASTER_MCP342X_H_" [build/header_guard] [5]
Nose/source/MCP342X-master/MCP342X.h|1| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|24| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|42| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|43| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|45| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|46| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|47| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|48| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|49| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|50| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|51| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|52| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|53| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|54| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|58| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|59| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|63| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|64| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|66| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|67| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|68| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|69| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|70| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|73| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|77| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|78| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|79| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|80| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|81| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|82| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|86| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|87| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|88| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|89| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|94| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|100| Single-parameter constructors should be marked explicit. [runtime/explicit] [5]
Nose/source/MCP342X-master/MCP342X.h|101| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/MCP342X-master/MCP342X.h|104| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|107| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|107| Lines should be <= 50 characters long [whitespace/line_length] [2]
Nose/source/MCP342X-master/MCP342X.h|112| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/MCP342X-master/MCP342X.h|124| Tab found; better to use spaces [whitespace/tab] [1]

Nose/source/MCP342X-master/MCP342X.cpp Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.cpp Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.cpp Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.cpp Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.cpp Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.cpp Outdated Show resolved Hide resolved
}

if(Wire.requestFrom((uint8_t) devAddr, (uint8_t) 4) == 4) {
((char*)dataPtr)[3] = Wire.read();

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]


if(Wire.requestFrom((uint8_t) devAddr, (uint8_t) 4) == 4) {
((char*)dataPtr)[3] = Wire.read();
((char*)dataPtr)[2] = Wire.read();

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]

if(Wire.requestFrom((uint8_t) devAddr, (uint8_t) 4) == 4) {
((char*)dataPtr)[3] = Wire.read();
((char*)dataPtr)[2] = Wire.read();
((char*)dataPtr)[1] = Wire.read();

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]

Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
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

cpplint

Nose/source/MCP342X-master/MCP342X.h|101| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/MCP342X-master/MCP342X.h|107| Tab found; better to use spaces [whitespace/tab] [1]
Nose/source/MCP342X-master/MCP342X.h|112| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/MCP342X-master/MCP342X.h|124| Tab found; better to use spaces [whitespace/tab] [1]

Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
Nose/source/MCP342X-master/MCP342X.h Outdated Show resolved Hide resolved
public:
MCP342X();
MCP342X(uint8_t address);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

// Start a conversion
bool startConversion(void);
bool startConversion(uint8_t channel);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

@771-8bit
Copy link
Member

@nihinihikun
こんな感じのディレクトリにしてほしいです

  • 24th-ise/
    • test/Nose/ ノーズのセンサ類等おためし
    • docs/Nose/ ノーズのメモ
    • Nose/Nose.ino ノーズの本番用プログラム

@771-8bit
Copy link
Member

@nihinihikun MCP342XってArduino IDEのライブラリマネージャー経由じゃなくてローカルに落としてるの理由ある?

@771-8bit
Copy link
Member

Arduinoのライブラリに登録されてるのはこっちで
https://github.com/stevemarple/MCP342x/
https://www.arduino.cc/reference/en/libraries/mcp342x/

にひが使ってるのはこっちっぽい
https://github.com/uChip/MCP342X/

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

cpplint

Nose/source/mcp3421_2/mcp3421_2.ino|31| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_2/mcp3421_2.ino|32| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_2/mcp3421_2.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/mcp3421_2/mcp3421_2.ino|33| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_2/mcp3421_2.ino|34| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_2/mcp3421_2.ino|36| Missing space after , [whitespace/comma] [3]
Nose/source/mcp3421_2/mcp3421_2.ino|37| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/mcp3421_2/mcp3421_2.ino|41| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_2/mcp3421_2.ino|44| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_2/mcp3421_2.ino|46| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
Nose/source/mcp3421_pico/mcp3421_pico.ino|15| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|29| Missing space after , [whitespace/comma] [3]
Nose/source/mcp3421_pico/mcp3421_pico.ino|32| Missing space after , [whitespace/comma] [3]
Nose/source/mcp3421_pico/mcp3421_pico.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|34| Missing space after , [whitespace/comma] [3]
Nose/source/mcp3421_pico/mcp3421_pico.ino|36| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|37| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|38| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|38| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|39| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|41| Missing space after , [whitespace/comma] [3]
Nose/source/mcp3421_pico/mcp3421_pico.ino|42| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|46| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|49| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/mcp3421_pico/mcp3421_pico.ino|51| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
Nose/source/nose1/nose1.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/nose1/nose1.ino|10| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
Nose/source/nose1/nose1.ino|29| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/nose1/nose1.ino|45| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|46| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|47| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|49| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|51| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|53| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|54| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/nose1/nose1.ino|58| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|63| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|64| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose1/nose1.ino|65| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose1/nose1.ino|66| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/nose1/nose1.ino|66| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose1/nose1.ino|69| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|71| Missing space after , [whitespace/comma] [3]
Nose/source/nose1/nose1.ino|76| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose1/nose1.ino|79| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose_timer/nose_timer.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/nose_timer/nose_timer.ino|10| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
Nose/source/nose_timer/nose_timer.ino|31| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/nose_timer/nose_timer.ino|56| Missing space after , [whitespace/comma] [3]
Nose/source/nose_timer/nose_timer.ino|59| Missing space after , [whitespace/comma] [3]
Nose/source/nose_timer/nose_timer.ino|63| Missing space after , [whitespace/comma] [3]
Nose/source/nose_timer/nose_timer.ino|68| Missing space after , [whitespace/comma] [3]
Nose/source/nose_timer/nose_timer.ino|69| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose_timer/nose_timer.ino|70| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose_timer/nose_timer.ino|71| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/nose_timer/nose_timer.ino|71| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose_timer/nose_timer.ino|74| Missing space after , [whitespace/comma] [3]
Nose/source/nose_timer/nose_timer.ino|76| Missing space after , [whitespace/comma] [3]
Nose/source/nose_timer/nose_timer.ino|81| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose_timer/nose_timer.ino|84| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/nose_timer/nose_timer.ino|91| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
Nose/source/test/bme280test/bme280test.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/bme280test/bme280test.ino|9| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
Nose/source/test/bme280test/bme280test.ino|21| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|15| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|29| Missing space after , [whitespace/comma] [3]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|32| Missing space after , [whitespace/comma] [3]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|34| Missing space after , [whitespace/comma] [3]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|36| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|37| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|38| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|38| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|39| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|41| Missing space after , [whitespace/comma] [3]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|42| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|46| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|49| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
Nose/source/test/mcp3421_pico/mcp3421_pico.ino|51| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
Nose/source/test/mcp3421check_samd/mcp3421check_samd.ino|12| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421check_samd/mcp3421check_samd.ino|18| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421check_samd/mcp3421check_samd.ino|26| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421check_samd/mcp3421check_samd.ino|26| Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
Nose/source/test/mcp3421check_samd/mcp3421check_samd.ino|31| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421check_samd/mcp3421check_samd.ino|34| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421check_samd/mcp3421check_samd.ino|36| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/test/mcp3421check_samd/mcp3421check_samd.ino|36| Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
Nose/source/test/xiaotest/xiaotest.ino|9| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]


#define SEALEVELPRESSURE_HPA (1013.25)

Adafruit_BME280 bme;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]


Adafruit_BME280 bme;

unsigned long delayTime;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Use int16/int64/etc, rather than the C type long [runtime/int] [4]

}


void loop() {

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]


#define SEALEVELPRESSURE_HPA (1013.25)

Adafruit_BME280 bme;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Adafruit_BME280 bme;
MCP342X myADC;

unsigned long delayTime;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Use int16/int64/etc, rather than the C type long [runtime/int] [4]

myADC.getResult(&result);

Serial.println(result, HEX);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]

void setup() {
Wire.begin(); // join I2C bus
// TWBR = 12; // 400 kHz (maximum)
Serial.begin(9600); // Open serial connection to send info to the host

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

byte bytes[4];
myADC.startConversion();
myADC.getResult(&result);
ConvertToVoltage(&result,&voltage);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]


Serial.print("voltage:");
Serial.println(voltage);
}

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Serial.print("voltage:");
Serial.println(voltage);
}
void ConvertToVoltage(int32_t* _result,double* voltage){

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

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

cpplint

test/Nose/BME_mcp3421/BME_mcp3421.ino|73| Missing space after , [whitespace/comma] [3]
test/Nose/BME_mcp3421/BME_mcp3421.ino|74| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/BME_mcp3421/BME_mcp3421.ino|78| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/BME_mcp3421/BME_mcp3421.ino|81| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/bme280test/bme280test.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/bme280test/bme280test.ino|9| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
test/Nose/bme280test/bme280test.ino|21| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|10| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|24| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_2/mcp3421_2.ino|28| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|29| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_2/mcp3421_2.ino|31| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|32| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|33| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|34| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|36| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_2/mcp3421_2.ino|37| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|41| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|44| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|46| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/mcp3421_pico/mcp3421_pico.ino|15| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|29| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_pico/mcp3421_pico.ino|32| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_pico/mcp3421_pico.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|34| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_pico/mcp3421_pico.ino|36| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|37| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|38| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|38| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|39| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|41| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_pico/mcp3421_pico.ino|42| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|46| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|49| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|51| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|12| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|18| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|26| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|26| Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|31| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|34| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|36| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|36| Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
test/Nose/trash/BME_high_rate/BME_high_rate.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_high_rate/BME_high_rate.ino|9| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
test/Nose/trash/BME_high_rate/BME_high_rate.ino|23| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|10| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|31| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|38| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|40| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|66| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|68| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|69| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|70| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|70| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|71| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|73| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|74| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|78| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|81| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|10| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|24| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|28| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|29| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|31| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|32| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|33| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|34| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|36| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|37| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|41| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|44| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|46| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|15| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|29| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|32| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|34| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|36| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|37| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|38| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|38| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|39| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|41| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|42| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|46| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|49| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|51| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/trash/nose1/nose1.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|10| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
test/Nose/trash/nose1/nose1.ino|29| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|45| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|46| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|47| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|49| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|51| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|53| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|54| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|58| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|63| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|64| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|65| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|66| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|66| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|69| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|71| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|76| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|79| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/xiaotest/xiaotest.ino|9| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]

Nose/Nose.ino Outdated

#define SEALEVELPRESSURE_HPA (1013.25)

Adafruit_BME280 bme;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Nose/Nose.ino Outdated Show resolved Hide resolved
Nose/Nose.ino Outdated
add_repeating_timer_us(200000, TimerIsr, NULL, &st_timer);//シリアル出力1843200で200000us=5Hzを境にoverrun
}

void loop() {

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Nose/Nose.ino Outdated
Serial.print(micros());
Serial.print(",");
// Serial.print(",barometic_pressure:");
Serial.print(barometic_pressure,10);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

Nose/Nose.ino Outdated
Serial.print(barometic_pressure,10);
// Serial.print("voltage:");
Serial.print(",");
Serial.println(voltage,10);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

test/Nose/BME_mcp3421/BME_mcp3421.ino Outdated Show resolved Hide resolved
test/Nose/BME_mcp3421/BME_mcp3421.ino Outdated Show resolved Hide resolved
byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);
bytes[0] = (char)((*_result >> 24) & 0xFF); //ライブラリの関数内で8bit右シフトしたときに発生したものなので無視

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

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

cpplint

test/Nose/mcp3421_2/mcp3421_2.ino|37| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|41| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|44| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino|46| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/mcp3421_pico/mcp3421_pico.ino|15| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|29| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_pico/mcp3421_pico.ino|32| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_pico/mcp3421_pico.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|34| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_pico/mcp3421_pico.ino|36| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|37| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|38| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|38| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|39| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|41| Missing space after , [whitespace/comma] [3]
test/Nose/mcp3421_pico/mcp3421_pico.ino|42| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|46| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|49| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_pico/mcp3421_pico.ino|51| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|12| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|18| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|26| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|26| Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|31| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|34| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|36| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/mcp3421check_samd/mcp3421check_samd.ino|36| Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
test/Nose/trash/BME_high_rate/BME_high_rate.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_high_rate/BME_high_rate.ino|9| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
test/Nose/trash/BME_high_rate/BME_high_rate.ino|23| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|10| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|31| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|38| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|40| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|66| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|68| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|69| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|70| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|70| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|71| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|73| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|74| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|78| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|81| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|10| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|24| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|28| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|29| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|31| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|32| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|33| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|34| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|36| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|37| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|41| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|44| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|46| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|15| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|29| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|32| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|34| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|36| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|37| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|38| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|38| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|39| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|41| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|42| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|46| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|49| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|51| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/trash/nose1/nose1.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|10| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
test/Nose/trash/nose1/nose1.ino|29| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|45| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|46| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|47| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|49| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|51| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|53| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|54| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|58| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|63| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|64| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|65| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|66| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|66| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|69| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|71| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|76| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|79| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/xiaotest/xiaotest.ino|9| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]

Nose/Nose.ino Outdated
GetBME280Data(&temperature, &barometic_pressure);
//CAN送信
#ifdef CAN_AVAIRABLE
CCP.uint32_to_device(CCP_nose_adc,voltage);
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

Nose/Nose.ino Outdated
#ifdef CAN_AVAIRABLE
CCP.uint32_to_device(CCP_nose_adc,voltage);
CCP.float_to_device(CCP_nose_temperature, temperature);
CCP.float_to_device(CCP_nose_barometic_pressure, barometic_pressure);
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Nose/Nose.ino Outdated
CCP.float_to_device(CCP_nose_temperature, temperature);
CCP.float_to_device(CCP_nose_barometic_pressure, barometic_pressure);
if(can_checkerflag){
CCP.string_to_device(CCP_nose_status,"OK");
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

Nose/Nose.ino Outdated
switch (CCP.id)
{
case CCP_EMST_mesure:
if(CCP.str_match("STOP",4)){
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

Nose/Nose.ino Outdated
if(CCP.str_match("KILL", 4)){
sleep_sensors = true;
}
break;
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

test/Nose/mcp3421_2/mcp3421_2.ino Outdated Show resolved Hide resolved
byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);
bytes[0] = (char)((*_result >> 24) & 0xFF); //ライブラリの関数内で8bit右シフトしたときに発生したものなので無視
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

bytes[1] = (char)((*_result >> 16) & 0xFF);
bytes[0] = (char)((*_result >> 24) & 0xFF); //ライブラリの関数内で8bit右シフトしたときに発生したものなので無視
double pga=1;
double lsb=2*2.048/pow(2,18);
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

@771-8bit
Copy link
Member

771-8bit commented Jan 3, 2024

@nihinihikun このコードってコードフォーマッタかけてない?

@nihinihikun
Copy link
Contributor Author

まだかけてない

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

cpplint

test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|40| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|66| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|68| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|69| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|70| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|70| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|71| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|73| Missing space after , [whitespace/comma] [3]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|74| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|78| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/BME_mcp3421/BME_mcp3421.ino|81| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|10| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|24| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|28| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|29| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|31| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|32| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|33| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|34| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|36| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|37| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|41| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|44| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_2/mcp3421_2.ino|46| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|15| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|29| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|32| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|33| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|34| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|36| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|37| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|38| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|38| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|39| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|41| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|42| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|46| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|49| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|51| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/trash/nose1/nose1.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|10| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
test/Nose/trash/nose1/nose1.ino|29| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|45| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|46| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|47| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|49| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|51| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|53| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|54| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|58| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|63| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|64| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|65| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|66| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|66| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|69| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|71| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|76| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|79| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/xiaotest/xiaotest.ino|9| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]

Nose/Nose.ino Outdated Show resolved Hide resolved
Nose/Nose.ino Outdated Show resolved Hide resolved
Nose/Nose.ino Outdated Show resolved Hide resolved
Nose/Nose.ino Outdated Show resolved Hide resolved
Nose/Nose.ino Outdated Show resolved Hide resolved
}


void loop() {

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]


#define SEALEVELPRESSURE_HPA (1013.25)

Adafruit_BME280 bme;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Adafruit_BME280 bme;
MCP342X myADC;

unsigned long delayTime;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Use int16/int64/etc, rather than the C type long [runtime/int] [4]

}


void loop() {

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

byte bytes[4];
myADC.startConversion();
myADC.getResult(&result);
ConvertToVoltage(&result,&voltage);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

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

cpplint

test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|36| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|37| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|38| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|38| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|39| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|41| Missing space after , [whitespace/comma] [3]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|42| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|46| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|49| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/mcp3421_pico/mcp3421_pico.ino|51| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
test/Nose/trash/nose1/nose1.ino|7| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|10| Use int16/int64/etc, rather than the C type long [runtime/int] [4]
test/Nose/trash/nose1/nose1.ino|29| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|45| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|46| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|47| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|49| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|51| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|53| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|54| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|58| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|63| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|64| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|65| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|66| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
test/Nose/trash/nose1/nose1.ino|66| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|69| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|71| Missing space after , [whitespace/comma] [3]
test/Nose/trash/nose1/nose1.ino|76| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/trash/nose1/nose1.ino|79| Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/xiaotest/xiaotest.ino|9| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]

myADC.getResult(&result);
ConvertToVoltage(&result,&voltage);
Serial.print("voltage:");
Serial.println(voltage,10);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

Serial.println();
}

void ConvertToVoltage(int32_t* _result,double* voltage){

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]


void ConvertToVoltage(int32_t* _result,double* voltage){
byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

void ConvertToVoltage(int32_t* _result,double* voltage){
byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Wire.setSCL(PIN1_SCL);
Wire.begin(); // join I2C bus
// TWBR = 12; // 400 kHz (maximum)
Serial.begin(9600); // Open serial connection to send info to the host

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

byte bytes[4];
myADC.startConversion();
myADC.getResult(&result);
ConvertToVoltage(&result,&voltage);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

ConvertToVoltage(&result,&voltage);

Serial.print("voltage:");
Serial.println(voltage,10);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]


Serial.print("voltage:");
Serial.println(voltage,10);
}

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Serial.print("voltage:");
Serial.println(voltage,10);
}
void ConvertToVoltage(int32_t* _result,double* voltage){

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

@nihinihikun
Copy link
Contributor Author

@771-8bit trashの中身で余分なスペースが出ちゃってるっていう警告と,C言語の書き方しててデバックしにくよっていう警告以外致命的な問題ないので,マージしてほしい.

ちなみにここまでは,ノーズのソフトウェア(ほぼFM仕様)をやってた.

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

cpplint

test/Nose/xiaotest/xiaotest.ino|9| Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]

}
void ConvertToVoltage(int32_t* _result,double* voltage){
byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

void ConvertToVoltage(int32_t* _result,double* voltage){
byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

byte bytes[4];
bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

bytes[3] = (char)(*_result & 0xFF);
bytes[2] = (char)((*_result >> 8) & 0xFF);
bytes[1] = (char)((*_result >> 16) & 0xFF);
bytes[0] = (char)((*_result >> 24) & 0xFF); //ライブラリの関数内で8bit右シフトしたときに発生したものなので無視

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

void DevideBytes(int32_t* _result,char* bytes){
bytes[2] = (char)(*_result & 0xFF);
bytes[1] = (char)((*_result >> 8) & 0xFF);
bytes[0] = (char)((*_result >> 16) & 0xFF);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

bytes[0] = (char)((*_result >> 16) & 0xFF);
}

void ConvertToVoltage(char* bytes,double* voltage){

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]


void ConvertToVoltage(char* bytes,double* voltage){
double pga=1;
double lsb=2*2.048/pow(2,18);

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

byte msb=(bytes[0]>>6)&0x01;
uint32_t outputcode=bytes[2]|(bytes[1]<<8)|((bytes[0]*0x01)<<16);
if(msb==0x00){//正の値
*voltage=(double)(outputcode)*lsb/pga;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

*voltage=(double)(outputcode)*lsb/pga;
}else{//負の値
outputcode=((~outputcode)&0x01FFFF)+1;//2の補数
*voltage=-(double)(outputcode)*lsb/pga;

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]

delay(1000);
digitalWrite(13, LOW);
delay(1000);
}

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]

@771-8bit
Copy link
Member

@771-8bit trashの中身で余分なスペースが出ちゃってるっていう警告と,C言語の書き方しててデバックしにくよっていう警告以外致命的な問題ないので,マージしてほしい.

ちなみにここまでは,ノーズのソフトウェア(ほぼFM仕様)をやってた.

余分なスペースが出ちゃってるっていう警告はフォーマッタかけてください.
C言語の書き方しててデバックしにくよっていう警告ではなくてキャスト方法の警告とか型がはっきりしないとか中身ある指摘なので修正してほしいです.
とりあえず/test/Nose/は無視するようにしました.

Nose/Nose.inoはちゃんとlinterの警告通り修正してほしいんだけど,今履歴がごちゃごちゃなのでNose/Nose.inoだけ別プルリクで出し直してほしい
あとNoseフォルダの中のドキュメントとdocs/Noseの中って区別ある?

@nihinihikun nihinihikun merged commit 2884b34 into main Jan 13, 2024
4 checks passed
@nihinihikun nihinihikun deleted the nose_software1 branch January 13, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants