Skip to content

Conversation

@m7kss1
Copy link

@m7kss1 m7kss1 commented Feb 5, 2024

No description provided.

feat: add ControllerMessage.msg to 'truck_msgs' for telemetry topics

feat: create package/hardware_node_2
@m7kss1 m7kss1 requested review from AndBondStyle and removed request for AndBondStyle February 5, 2024 20:33
@m7kss1 m7kss1 closed this Feb 8, 2024
@m7kss1 m7kss1 reopened this Feb 8, 2024
m7kss1

This comment was marked as outdated.

@m7kss1 m7kss1 marked this pull request as ready for review March 1, 2024 22:02
@m7kss1 m7kss1 changed the title Hardware Node MVP Hardware Node Mar 1, 2024
@m7kss1 m7kss1 requested a review from AndBondStyle March 1, 2024 22:31
twist = model_->baseToRearTwist(twist);
auto steering = model_->rearTwistToSteering(twist);
RCLCPP_INFO(this->get_logger(), "Center curv: %.2f", msg.curvature);
RCLCPP_INFO(this->get_logger(), "Rear curv: %.2f", twist.curvature);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Про teensy забыли совсем)

memcpy(&voltage, voltageFrame.first.data, sizeof(voltage));
memcpy(&current, voltageFrame.first.data + 4, sizeof(current));

auto encoderFrame = framesCache[CmdId::kGetEncoderEstimates];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мы не так договаривались делать, а написать специальную функцию, которая достает фрейм + сразу проверяет, что он достаточно свежий

@AndBondStyle AndBondStyle marked this pull request as draft March 3, 2024 13:46
@m7kss1 m7kss1 marked this pull request as ready for review March 5, 2024 17:51
std::chrono::system_clock::time_point curTime = std::chrono::system_clock::now();
auto curTimeMs = std::chrono::time_point_cast<std::chrono::milliseconds>(curTime);
auto msgTimeMs = std::chrono::time_point_cast<std::chrono::milliseconds>(msgTime);
return (curTimeMs >= msgTimeMs - 2 * delay);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кажется time_point - time_point = duration??

@AndBondStyle AndBondStyle marked this pull request as draft July 4, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants