Skip to content

Commit

Permalink
factory: move ramp calibration to the end
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Jan 14, 2022
1 parent 5d960ab commit ad32b68
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions factory/factory_setup.py
@@ -1,7 +1,7 @@
import argparse

from hubble import Hubble
from wintertools import fw_fetch, jlink, reportcard
from wintertools import fw_fetch, jlink, reportcard, thermalprinter
from wintertools.print import print

from libgemini import adc_calibration, cv_calibration, gemini, ramp_calibration
Expand Down Expand Up @@ -76,10 +76,6 @@ def main():

get_firmware_and_serial()

if "ramp" in args.stages:
print("# Calibrating ramps")
REPORT.sections.append(ramp_calibration.run(save=True))

if "adc" in args.stages:
print("# Calibrating ADC")
REPORT.sections.append(adc_calibration.run())
Expand All @@ -88,6 +84,10 @@ def main():
print("# Calibrating pitch CV")
REPORT.sections.append(cv_calibration.run())

if "ramp" in args.stages:
print("# Calibrating ramps")
REPORT.sections.append(ramp_calibration.run(save=True))

gem = gemini.Gemini.get()
gem.soft_reset()

Expand All @@ -102,6 +102,8 @@ def main():
hubble.fail()
print.failure()

thermalprinter.print_me_maybe(reportcard.render_image(REPORT))


if __name__ == "__main__":
main()

0 comments on commit ad32b68

Please sign in to comment.