SHENZHEN I/O

SHENZHEN I/O

Not enough ratings
Tesla Challenge 17: Adaptive NV Goggles
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
2.334 KB
8 Apr, 2017 @ 11:23am
1 Change Note ( view )

Subscribe to download
Tesla Challenge 17: Adaptive NV Goggles

In 1 collection by 89o
SHENZHEN I/O Tesla Challenge Pack
24 items
Description
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.