Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/xrobot-org/XRobot into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiu-xiao committed Jan 27, 2024
2 parents acf2772 + 56ddf18 commit 0c08b91
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions hw/bsp/c-mini/config/balance_infantry.config
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CONFIG_auto_generated_config_prefix_robot-balance_infantry=y
#
# CONFIG_auto_generated_config_prefix_device-tof is not set
CONFIG_auto_generated_config_prefix_device-ai=y
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=256
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=384

#
# 上位机
Expand All @@ -55,7 +55,7 @@ CONFIG_auto_generated_config_prefix_device-imu=y
CONFIG_DEVICE_CAN_IMU_TASK_STACK_DEPTH=256
# CONFIG_auto_generated_config_prefix_device-servo is not set
CONFIG_auto_generated_config_prefix_device-dr16=y
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=256
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=384
CONFIG_auto_generated_config_prefix_device-referee=y
CONFIG_DEVICE_REF_TRANS_TASK_STACK_DEPTH=256
CONFIG_DEVICE_REF_RECV_TASK_STACK_DEPTH=256
Expand Down
4 changes: 2 additions & 2 deletions hw/bsp/c-mini/config/infantry.config
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ CONFIG_DEVICE_BMI088_TASK_STACK_DEPTH=256
# CONFIG_auto_generated_config_prefix_device-tof is not set
# CONFIG_auto_generated_config_prefix_device-blink_led is not set
CONFIG_auto_generated_config_prefix_device-dr16=y
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=256
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=384
CONFIG_auto_generated_config_prefix_device-ahrs=y
CONFIG_DEVICE_AHRS_TASK_STACK_DEPTH=256
CONFIG_auto_generated_config_prefix_device-ai=y
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=256
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=384

#
# 上位机
Expand Down
2 changes: 1 addition & 1 deletion hw/bsp/rm-c/config/dart.config
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ CONFIG_auto_generated_config_prefix_device-mech=y
# CONFIG_auto_generated_config_prefix_device-tof is not set
# CONFIG_auto_generated_config_prefix_device-blink_led is not set
CONFIG_auto_generated_config_prefix_device-dr16=y
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=256
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=384
CONFIG_auto_generated_config_prefix_device-ahrs=y
CONFIG_DEVICE_AHRS_TASK_STACK_DEPTH=256
# CONFIG_auto_generated_config_prefix_device-ai is not set
Expand Down
2 changes: 1 addition & 1 deletion hw/bsp/rm-c/config/engineer.config
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CONFIG_auto_generated_config_prefix_device-mech=y
# CONFIG_auto_generated_config_prefix_device-tof is not set
CONFIG_auto_generated_config_prefix_device-blink_led=y
CONFIG_auto_generated_config_prefix_device-dr16=y
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=256
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=384
CONFIG_auto_generated_config_prefix_device-ahrs=y
CONFIG_DEVICE_AHRS_TASK_STACK_DEPTH=256
# CONFIG_auto_generated_config_prefix_device-ai is not set
Expand Down
4 changes: 2 additions & 2 deletions hw/bsp/rm-c/config/hero.config
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ CONFIG_auto_generated_config_prefix_device-imu=y
CONFIG_DEVICE_CAN_IMU_TASK_STACK_DEPTH=256
# CONFIG_auto_generated_config_prefix_device-wearlab is not set
CONFIG_auto_generated_config_prefix_device-dr16=y
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=256
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=384
# CONFIG_auto_generated_config_prefix_device-mech is not set
# CONFIG_auto_generated_config_prefix_device-tof is not set
CONFIG_auto_generated_config_prefix_device-ahrs=y
CONFIG_DEVICE_AHRS_TASK_STACK_DEPTH=256
CONFIG_auto_generated_config_prefix_device-servo=y
CONFIG_auto_generated_config_prefix_device-motor=y
CONFIG_auto_generated_config_prefix_device-ai=y
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=256
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=384

#
# 上位机
Expand Down
4 changes: 2 additions & 2 deletions hw/bsp/rm-c/config/infantry.config
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ CONFIG_DEVICE_BMI088_TASK_STACK_DEPTH=256
# CONFIG_auto_generated_config_prefix_device-tof is not set
# CONFIG_auto_generated_config_prefix_device-blink_led is not set
CONFIG_auto_generated_config_prefix_device-dr16=y
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=256
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=384
CONFIG_auto_generated_config_prefix_device-ahrs=y
CONFIG_DEVICE_AHRS_TASK_STACK_DEPTH=256
CONFIG_auto_generated_config_prefix_device-ai=y
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=256
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=384

#
# 上位机
Expand Down
4 changes: 2 additions & 2 deletions hw/bsp/rm-c/config/sentry.config
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ CONFIG_DEVICE_BMI088_TASK_STACK_DEPTH=256
# CONFIG_auto_generated_config_prefix_device-tof is not set
# CONFIG_auto_generated_config_prefix_device-blink_led is not set
CONFIG_auto_generated_config_prefix_device-dr16=y
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=256
CONFIG_DEVICE_DR16_TASK_STACK_DEPTH=384
CONFIG_auto_generated_config_prefix_device-ahrs=y
CONFIG_DEVICE_AHRS_TASK_STACK_DEPTH=256
CONFIG_auto_generated_config_prefix_device-ai=y
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=256
CONFIG_DEVICE_AI_TASK_STACK_DEPTH=384

#
# 上位机
Expand Down
4 changes: 2 additions & 2 deletions src/robot/sentry/robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "system.hpp"

/* clang-format off */
Robot::Infantry::Param param = {
Robot::Sentry::Param param = {
.chassis={
.type = Component::Mixer::MECANUM,

Expand Down Expand Up @@ -405,5 +405,5 @@ Robot::Infantry::Param param = {
/* clang-format on */

void robot_init() {
System::Start<Robot::Infantry, Robot::Infantry::Param>(param, 500.0f);
System::Start<Robot::Sentry, Robot::Sentry::Param>(param, 500.0f);
}
4 changes: 2 additions & 2 deletions src/robot/sentry/robot.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

void robot_init();
namespace Robot {
class Infantry {
class Sentry {
public:
typedef struct Param {
Module::RMChassis::Param chassis;
Expand All @@ -38,7 +38,7 @@ class Infantry {
Module::Gimbal gimbal_;
Module::Launcher launcher_;

Infantry(Param& param, float control_freq)
Sentry(Param& param, float control_freq)
: cmd_(Component::CMD::CMD_AUTO_CTRL),
bmi088_(param.bmi088_rot),
cap_(param.cap),
Expand Down

0 comments on commit 0c08b91

Please sign in to comment.