Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vcu update #129

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Vcu update #129

wants to merge 19 commits into from

Conversation

ConnorNovak
Copy link
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
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.

// Initialize estop and auto-light switch
eStop = new Estop(&nh, ESTOP_SENSE_PIN, ESTOP_DEBOUNCE_TIME);
eStop->onStop(eStopTractor);
eStop->offStop(eStartTractor);
pinMode(ESTOP_RELAY_PIN, OUTPUT);
digitalWrite(ESTOP_RELAY_PIN, HIGH); // Stop tractor for safety
Copy link
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
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