acmerobotics / road-runner-quickstart

FTC quickstart for https://github.com/acmerobotics/road-runner
BSD 3-Clause Clear License
168 stars 855 forks source link

Abrupt Cancellation not working / How to drive PID #375

Closed SmhxFaun closed 2 months ago

SmhxFaun commented 2 months ago

RR FTC Version

0.1.13

Observed Behavior

So, I am currently using RR 1 in order to use actions easier. Currently, I have made a custom action in which it can dodge robots and other items using distance sensors. It will then move aside using a PID controller and continue. However, I want the robot to stop whenever there is a robot near the backboard (alliance partner). I need cancellation to stop the robot, save the pose, listen for their distance, and to start like normal. How do I do that? (P.S: I've also saw some of your examples they aren't working). Also, how can I drive using manual drive.setDrivePower commands & the trajectory at the same time?

Tuning Files

The failover action itself image

The PID control/driving & the cancellation trial image

Robot Logs

No response