SHENZHEN I/O

SHENZHEN I/O

评价数不足
Tesla Challenge 17: Adaptive NV Goggles
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
2.334 KB
2017 年 4 月 8 日 上午 11:23
1 项改动说明 ( 查看 )

订阅以下载
Tesla Challenge 17: Adaptive NV Goggles

在 89o 的 1 个合集中
SHENZHEN I/O Tesla Challenge Pack
24 件物品
描述
Subject: Night vision goggles
From: Wu Lili 吴丽丽 <wulili@longteng-co-ltd.gd.cn>

We got another super-secret government project deal. We're supposed to create night vision goggles that automatically adapt to the environment and increase the brightness of the image accordingly. They have a calibration period where they detect brightness, and an update period where they brighten everything in the range detected in the last calibration period. We will need to create thousands of these, so let's keep the costs low.

---------

Small hint: It's easy to find the maximum value of an array of numbers. Put value 1 into a register. For all remaining values, if a value is greater than the register, replace it, otherwise do not.

Big hint: You will need to use the generic division algorithm. To divide a by b, keep subtracting b from a. For each iteration that a is still positive, add 1 to the quotient.

Optimization tip: It is helpful to have two microcontrollers read from the same simple I/O pin.