Repository navigation
Firmware Controls Architecture Update - #437
Draft
nickwitten wants to merge 3 commits into
Draft
nickwitten wants to merge 3 commits into
nickwitten wants to merge 3 commits into
Conversation
Bump software-communication and controls to the new-controls versions and update the host side for their API changes: - Radio bridge parameter formats for the renumbered robot parameters (EKF_PROCESS_STD vec3, EKF_MEASUREMENT_STD vec2, PHYS_MOTOR_TORQUE_CONSTANT, FB_POS_LINEAR/ANGULAR, FB_WHEEL_VEL, FF_WHEEL_CURRENT_LIMIT, FF_WHEEL_SLIP_COMP, ERROR_TRACKING_DIVERGENCE_THRESHOLD, VISION_SEED_SAMPLES). - Drop the controls_enabled.body_vel / wheel_torque bridge parameters: wheel torque (current) control is always on in the firmware and the packet no longer has the toggle. controls_enabled.wheel_vel remains, default true. - Game state tracker reads the renamed BasicTelemetry pos_est / vel_est. The firmware reports vel_est in the robot's local frame, so rotate it by the firmware heading to keep firmware_vel global. - ateam_controls_traj_from_target_pose was renamed ateam_controls_traj_from_target_pos (predict.cpp, path planning controls_lib_adapters.cpp). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Forward raw (unfiltered) vision detections to the robots instead of the vision filter's state: subscribe to /vision_messages, apply team color and side per detection, and send each measurement once along with its absolute capture time (vision_capture_us_hi/lo) so the firmware's buffered EKF can insert it at the right point in its history. - Add BCM_GLOBAL_ACCEL_OPEN_LOOP / BCM_LOCAL_ACCEL_OPEN_LOOP to RobotMotionCommand and map them to the new firmware maneuvers. - Velocity commands now carry acceleration limits (max_linear_acc / max_angular_acc), so send limit_acc_* rather than limit_vel_*. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Talk to robots on the agreed listen port (discovery_port) rather than the hello's source port, for compatibility with both the Odin and Nora radio modules. - Reuse an existing connection when a robot sends repeated hellos (e.g. several queued during a link outage), so it keeps the same port and the connection isn't destroyed while its receive thread may be waiting. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
I don't love having to re-implement some of the vision parsing logic in the radio bridge. We'll also need to add filtering for ignored halves. |
Contributor
Author
Gotcha, that makes sense. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.