|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Brownout behavior - alternative design goals
Quote:
In this scenario, you really only have two options code-wise: either restart auto or continue running the disabled loop until teleop starts. Picking up where the code left off in auto isn't a viable option unless your team explicitly programs a recovery mechanism. Whether or not restarting or staying disabled is the right choice is a fair point for discussion, though my guess is that since recovery is a relatively viable option, the decision to restart auto was intentional. Perhaps this behavior could also be better publicized. I'm also not sure why a brownout triggers disabled mode (I would think it could continue attempting to run during a brownout). |
|
#2
|
|||
|
|||
|
Re: Brownout behavior - alternative design goals
Your intuition is correct. There is no need to disable for comms loss or brownout and once that is corrected, the double auto should be a thing of the past.
Greg McKaskle |
|
#3
|
|||||
|
|||||
|
Re: Brownout behavior - alternative design goals
The whole point of a brownout is to disable things so the load on the battery is reduced.
|
|
#4
|
||||
|
||||
|
Re: Brownout behavior - alternative design goals
Quote:
If teams have any fear of this happening at their offseason events, I would recommend putting a flag into your code that will only allow autonomous to initialize once. That is what we did, and it prevented this bug from breaking our robot a second time. |
|
#5
|
|||
|
|||
|
Re: Brownout behavior - alternative design goals
Disabling motors is a totally different thing than being commanded to disable by the field. The FMS is wrong and its behavior will be changed.
|
|
#6
|
|||||
|
|||||
|
Re: Brownout behavior - alternative design goals
Quote:
Quote:
I'm still not fully understanding the reference to "continue attempting to run", though. |
|
#7
|
|||
|
|||
|
Re: Brownout behavior - alternative design goals
The FMS is aware of brownout in order to display to the field display. I took Tanis's statement to mean, don't run disabled code, run the code based on the match transitions. And the ability for the robots to actuate is ANDed with the brownout and coms status.
Greg McKaskle |
|
#8
|
||||
|
||||
|
Re: Brownout behavior - alternative design goals
Quote:
As for comms loss causing the robots to be disabled- I am in favor of that. Without comms, you can't e-stop your robot. That means that if you lose comms and your robot becomes a danger to itself or to people, you can't stop it. Disabling the robot when it can no longer communicate with the driver station sounds like an appropriate action to take. |
|
#9
|
|||
|
|||
|
Re: Brownout behavior - alternative design goals
Quote:
No, we will continue to have the designed behavior that the robot will override (locally) the enable signal when a situation deems it (no comms and brown out) and the DS and FMS should only use that as status for humans (if they even have comms to receive that status). The FMS broke this year and it will be fixed. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|