Make resistance calculation a compile time option.

New constant 'LOOKUP_TABLE' enables the use of the lookup table, else
resistance will be calculated using equation from curve fitting.