Skip to content

Vcu update#129

Open
ConnorNovak wants to merge 19 commits into
masterfrom
vcu-update
Open

Vcu update#129
ConnorNovak wants to merge 19 commits into
masterfrom
vcu-update

Conversation

@ConnorNovak
Copy link
Copy Markdown
Member

  • Fix errors in Hindbrain
  1. Hysteresis in system on Estop
  2. Wrong variable sending cmds to roboclaw
  • Re-tuning of VCU control loops for velocity actuator

Code tested on tractor

Connor Novak and others added 8 commits February 24, 2020 20:25
1. Update steer & vel tuning constants to recent measured vals
2. Add auto-calculation of MAX & MIN signals for steer & vel - the
result of this is to make safety thresholding in ackToCmd() functions
more resilient to flipping the potentiometer. Safety thresholding code
now compares MAX and MIN rather than HIGH and LOW.
3. Separate range conversion for velocity to match steering - the result
of this change is to allow a centerpoint to be used that is not midway
between the FWD and REV values - necessary now that the vehicle can move
in reverse.
… received topic as opposed to publishing on a 1-1 basis,\ncausing hysteresis runtime errors in the tractor on restart from estop.
1. Add custom DEBUG definitions to allow Header specification of which
functions to debug.
2. Switch incoming ackermann msg to AckermannDriveStamped to monitor
command latency.
3. Rearrange imports.
Copy link
Copy Markdown
Collaborator

@nathanestill nathanestill left a comment

Choose a reason for hiding this comment

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

I think it looks good. I couldn't find any errors. I added one comment to look at, but you can merge it.

eStop->onStop(eStopTractor);
eStop->offStop(eStartTractor);
pinMode(ESTOP_RELAY_PIN, OUTPUT);
digitalWrite(ESTOP_RELAY_PIN, HIGH); // Stop tractor for safety
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is the only part that I'm curious of its functionality. I'm scared that it will have not be able to turn itself to high or something like that. Maybe you can reason it out to me on Tuesday.

@ConnorNovak
Copy link
Copy Markdown
Member Author

Wow, I merged the stuff on the tractor once I saw these changes approved, but never finished this pull request. Sorry Nathan, my bad.

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.

2 participants