xrobot-org / xrobot Goto Github PK
View Code? Open in Web Editor NEWAn embedded software framework for MCU, Arm/x86 Linux and simulator
Home Page: http://xrobot-org.github.io/
License: Apache License 2.0
An embedded software framework for MCU, Arm/x86 Linux and simulator
Home Page: http://xrobot-org.github.io/
License: Apache License 2.0
Describe the bug
cpplint
).Here are the output of cpplint
:
XRobot/src/component/comp_actuator.hpp:40: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/component/comp_cmd.cpp:34: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/component/comp_cmd.cpp:57: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/component/comp_pid.cpp:151: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/component/comp_pid.cpp:153: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/component/comp_pid.cpp:155: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/component/comp_pid.cpp:157: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/component/comp_utils.cpp:118: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/device/bmi088/dev_bmi088.cpp:350: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/device/simulator/dev_motor.hpp:38: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/system/FreeRTOS/timer.cpp:32: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/system/Linux/timer.cpp:32: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/system/Linux_Webots/timer.cpp:32: warning: You don't need a ; after a } [readability/braces] [4]
XRobot/src/system/None/timer.cpp:26: warning: You don't need a ; after a } [readability/braces] [4]
Screenshots
XRobot/src/system/None/timer.cpp:26: warning: You don't need a ; after a } [readability/braces] [4]
above seems like this,@Marine003 https://github.com/xrobot-org/XRobot/pull/46中更改了裁判系统相关数据结构,launcher、cap和ai中没有适配最新修改
/__w/XRobot/XRobot/src/device/ai/dev_ai.cpp:160:35: error: no member named 'launcher_id1_17_speed_limit' in 'Device::Referee::RobotStatus'
this->raw_ref_.robot_status.launcher_id1_17_speed_limit;
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/__w/XRobot/XRobot/src/device/ai/dev_ai.cpp:163:51: error: no member named 'max_hp' in 'Device::Referee::RobotStatus'
this->ref_.max_hp = this->raw_ref_.robot_status.max_hp;
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/__w/XRobot/XRobot/src/device/ai/dev_ai.cpp:174:27: error: no member named 'high_ground' in 'Device::Referee::RFID'
if (this->raw_ref_.rfid.high_ground == 1) {
~~~~~~~~~~~~~~~~~~~ ^
/__w/XRobot/XRobot/src/device/ai/dev_ai.cpp:176:34: error: no member named 'energy_mech' in 'Device::Referee::RFID'
} else if (this->raw_ref_.rfid.energy_mech == 1) {
~~~~~~~~~~~~~~~~~~~ ^
/__w/XRobot/XRobot/src/device/cap/dev_cap.cpp:34:49: error: no member named 'chassis_power_limit' in 'Device::Referee::RobotStatus'
cap->out_.power_limit_ = ref.robot_status.chassis_power_limit;
~~~~~~~~~~~~~~~~ ^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.