-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nose software1 #12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
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]
} | ||
|
||
if(Wire.requestFrom((uint8_t) devAddr, (uint8_t) 4) == 4) { | ||
((char*)dataPtr)[3] = Wire.read(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
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
public: | ||
MCP342X(); | ||
MCP342X(uint8_t address); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/MCP342X-master/MCP342X.h
Outdated
// Start a conversion | ||
bool startConversion(void); | ||
bool startConversion(uint8_t channel); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
@nihinihikun
|
@nihinihikun MCP342XってArduino IDEのライブラリマネージャー経由じゃなくてローカルに落としてるの理由ある? |
Arduinoのライブラリに登録されてるのはこっちで にひが使ってるのはこっちっぽい |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
|
||
Adafruit_BME280 bme; | ||
|
||
unsigned long delayTime; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Use int16/int64/etc, rather than the C type long [runtime/int] [4]
} | ||
|
||
|
||
void loop() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Use int16/int64/etc, rather than the C type long [runtime/int] [4]
myADC.getResult(&result); | ||
|
||
Serial.println(result, HEX); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
Nose/source/mcp3421_2/mcp3421_2.ino
Outdated
void setup() { | ||
Wire.begin(); // join I2C bus | ||
// TWBR = 12; // 400 kHz (maximum) | ||
Serial.begin(9600); // Open serial connection to send info to the host |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/mcp3421_2/mcp3421_2.ino
Outdated
byte bytes[4]; | ||
myADC.startConversion(); | ||
myADC.getResult(&result); | ||
ConvertToVoltage(&result,&voltage); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
Nose/source/mcp3421_2/mcp3421_2.ino
Outdated
|
||
Serial.print("voltage:"); | ||
Serial.println(voltage); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/source/mcp3421_2/mcp3421_2.ino
Outdated
Serial.print("voltage:"); | ||
Serial.println(voltage); | ||
} | ||
void ConvertToVoltage(int32_t* _result,double* voltage){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Nose/Nose.ino
Outdated
add_repeating_timer_us(200000, TimerIsr, NULL, &st_timer);//シリアル出力1843200で200000us=5Hzを境にoverrun | ||
} | ||
|
||
void loop() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
byte bytes[4]; | ||
bytes[3] = (char)(*_result & 0xFF); | ||
bytes[2] = (char)((*_result >> 8) & 0xFF); | ||
bytes[1] = (char)((*_result >> 16) & 0xFF); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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右シフトしたときに発生したものなので無視 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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)){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
Nose/Nose.ino
Outdated
if(CCP.str_match("KILL", 4)){ | ||
sleep_sensors = true; | ||
} | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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
byte bytes[4]; | ||
bytes[3] = (char)(*_result & 0xFF); | ||
bytes[2] = (char)((*_result >> 8) & 0xFF); | ||
bytes[1] = (char)((*_result >> 16) & 0xFF); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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
byte bytes[4]; | ||
bytes[3] = (char)(*_result & 0xFF); | ||
bytes[2] = (char)((*_result >> 8) & 0xFF); | ||
bytes[1] = (char)((*_result >> 16) & 0xFF); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino
Outdated
bytes[3] = (char)(*_result & 0xFF); | ||
bytes[2] = (char)((*_result >> 8) & 0xFF); | ||
bytes[1] = (char)((*_result >> 16) & 0xFF); | ||
bytes[0] = (char)((*_result >> 24) & 0xFF); //ライブラリの関数内で8bit右シフトしたときに発生したものなので無視 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/mcp3421_2/mcp3421_2.ino
Outdated
bytes[1] = (char)((*_result >> 16) & 0xFF); | ||
bytes[0] = (char)((*_result >> 24) & 0xFF); //ライブラリの関数内で8bit右シフトしたときに発生したものなので無視 | ||
double pga=1; | ||
double lsb=2*2.048/pow(2,18); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
@nihinihikun このコードってコードフォーマッタかけてない? |
まだかけてない |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
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]
} | ||
|
||
|
||
void loop() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Use int16/int64/etc, rather than the C type long [runtime/int] [4]
} | ||
|
||
|
||
void loop() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
Serial.println(); | ||
} | ||
|
||
void ConvertToVoltage(int32_t* _result,double* voltage){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
ConvertToVoltage(&result,&voltage); | ||
|
||
Serial.print("voltage:"); | ||
Serial.println(voltage,10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
|
||
Serial.print("voltage:"); | ||
Serial.println(voltage,10); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]
@771-8bit trashの中身で余分なスペースが出ちゃってるっていう警告と,C言語の書き方しててデバックしにくよっていう警告以外致命的な問題ないので,マージしてほしい. ちなみにここまでは,ノーズのソフトウェア(ほぼFM仕様)をやってた. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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右シフトしたときに発生したものなので無視 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Using C-style cast. Use static_cast(...) instead [readability/casting] [4]
test/Nose/xiaotest/xiaotest.ino
Outdated
delay(1000); | ||
digitalWrite(13, LOW); | ||
delay(1000); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Could not find a newline character at the end of the file. [whitespace/ending_newline] [5]
余分なスペースが出ちゃってるっていう警告はフォーマッタかけてください.
|
以下確認して消してからプルリク出してください
概要
背景
変更範囲