psas / Launch-12

Data about PSAS's 13th official flight.
30 stars 3 forks source link

Add 100nF cap to RESET_N line on RNH #66

Closed andrewgreenberg closed 9 years ago

andrewgreenberg commented 9 years ago

Just in case it's some weird noise on the reset line. Don't believe it, but hey, possible. Also, make sure Theo implements the JTAG pin stuff, and maybe adds a watchdog.

ThirteenFish commented 9 years ago

When firmware projects are built for flight (make flight instead of just make) a watchdog is automatically enabled.

aSmig commented 9 years ago

@ThirteenFish does a watchdog kick result in power-cycling everything connected to the RNH? If so, we should probably do more run testing with make flight.

andrewgreenberg commented 9 years ago

Yes, a watchdog reset will bring down all of the power switches, which will then power off all of the nodes (FC, poweramp, IMU, RC, etc). So, a watchdog on the ground attached to the LTC would be recoverable, but in flight would kill everything except the actual recovery of the rocket.

There's a note in the RNH "v2 issues" for putting a latch between the STM32 and the power switches for exactly this reason... but that's not going to happen for this flight, obviously.

aSmig commented 9 years ago

Is it better to have an unresponsive RNH or a full system reboot? I'd lean towards turning off the watchdog and using something low-tech to reset RNH only while it is on the ground and frozen. Or if it is possible to disable the watchdog dynamically, only leave it running until launch-detect. For extra fancy points, it would be nifty to adjust the watchdog timeout on launch-detect to be approximately the flight duration plus some buffer, then return to normal back on the ground. "Altitude based watchdog timeout?"

andrewgreenberg commented 9 years ago

OK, if we continue to have freeze ups, I like this idea: we keep watchdogs on when we're on the ground, but at launch detects we disable them. I'd MUCH rather have an STM32 free-up on the RNH than a reboot. That would totally suck.

ThirteenFish commented 9 years ago

This can be done, and there is some precedent for it. At NASA they will have probes disable watchdogs during critical phases, for example the Curiosity rover disabled watchdogs during re-entry.

As far as the avionics are concerned the launch ends at apogee, so I don't think there will be a need to automatically turn watchdogs back on. Triggering them off during launch detect+rocket ready should be easy enough, and having a manual turn on in case of accidents.

andrewgreenberg commented 9 years ago

Agreed on the no-need for turning back on. This is a good patch until we figure out what the hell is going on.

aSmig commented 9 years ago

After discussion with @LateralGs and @andrewgreenberg, an externally accessible physical reset method will be made available. We definitely still don't want to fly with a watchdog. But training the watchdog to be aware of launch detect may not be critical.

andrewgreenberg commented 9 years ago

This has been brilliantly solved by Kenny and his small yappy dog sidekick, Andrew. There's now a small port on the top of the avionics module that you can stick in a small wire. pushing the wire into the port slides it through a heat shrunk tubing that then goes into a 0.1" female connector. Touching the other side of the wire to the airframe tubing will reset the RNH.

Done!