GithubHelp home page GithubHelp logo

xrobot-org / xrobot Goto Github PK

View Code? Open in Web Editor NEW
95.0 3.0 20.0 98.1 MB

An embedded software framework for MCU, Arm/x86 Linux and simulator

Home Page: http://xrobot-org.github.io/

License: Apache License 2.0

CMake 4.74% C 52.64% Python 1.27% C++ 33.87% Shell 0.11% Makefile 2.48% Assembly 4.90%
esp32 linux robot robotics stm32 embedded mcu simulator robomaster raspberry-pi

xrobot's People

Contributors

1761382134 avatar 2021hellohorld avatar aurora-e avatar cndabai avatar gengwentao2017 avatar jiu-xiao avatar liuyr012 avatar marine003 avatar qsheeeeen avatar rennaihua123 avatar xmoon365 avatar ydddddz avatar yourpower avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xrobot's Issues

Remove excess semicolons at the end of a function

Describe the bug

  • 🐛 There's a ';' after some function end '}' that doesn't make any sense.
  • ⚠️ This doesn't have any effect, but it can be detected by linter (I use cpplint ).
  • 🤔 Eliminating the above effects can make the code more formatted. 😄

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

  • The last line of code XRobot/src/system/None/timer.cpp:26: warning: You don't need a ; after a } [readability/braces] [4] above seems like this,

image
image

裁判系统相关代码修复

@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;
                               ~~~~~~~~~~~~~~~~ ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.