-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: master
Are you sure you want to change the base?
Vcu update #129
Conversation
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.
…op state while estop is true
… 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.
…src/gravl into lidarx_experiment
…vl into vcu-update
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
Wow, I merged the stuff on the tractor once I saw these changes approved, but never finished this pull request. Sorry Nathan, my bad. |
Code tested on tractor