codeair.selftest – Self test functions

CodeAIR Selftest Functions

codeair.selftest.check_camera_init()[source]

Is at least I2C responding?

codeair.selftest.check_camera_viz(threshold=128)[source]

Return ratio of grayscale pixels above given 8-bit threshold

codeair.selftest.check_fcon_sensors(reset_buf=False)[source]

Harvest STM32 power-on selftest results

codeair.selftest.check_firmware()[source]

Compare flight controller firmware to our current latest version, update if needed

codeair.selftest.check_sd()[source]

Return True if SD card works, False if not

codeair.selftest.fw_progress(st)[source]

Optimizing LED writes yeilds significant speedup

codeair.selftest.record(failures)[source]

Record test results to flash file ‘mfgtest.txt’ The ‘failures’ param is a string with comma-separated failed test name(s).

Download Source