Bug fixes in sim.py temperature code.

Autorange gain should now work.
Commanded values in record_all.py match what we want.