Skip to content

Commit

Permalink
マイコンプログラムで計算した速度を入力にする
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo committed Jun 6, 2024
1 parent d4b47cc commit afeed5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/net/ibis_ssl_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ private slots:
speed_control(&orion.acc_vel, &orion.output, &orion.target, &orion.imu, &orion.omni);
output_limit(&orion.output, &orion.debug);
// 出力がやけにでかいので一回1/100にしている
// _robot->setSpeed(orion.output.velocity[0] * 0.01, orion.output.velocity[1] * 0.01,orion.output.omega);
_robot->setSpeed(orion.output.velocity[0], orion.output.velocity[1],orion.output.omega);
// _robot->setSpeed(orion.target.velocity[0] * 1000, orion.target.velocity[1] * 1000, omega);
// ひとまずAIコマンドをそのまま入れている。
_robot->setSpeed(orion.ai_cmd.local_target_speed[0], orion.ai_cmd.local_target_speed[1], omega);
// _robot->setSpeed(orion.ai_cmd.local_target_speed[0], orion.ai_cmd.local_target_speed[1], omega);
_robot->kicker->setRoller(packet->DRIBBLE_POWER > 0.0);

if(_port == 50100)
Expand Down

0 comments on commit afeed5a

Please sign in to comment.