This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12025 - Ohm's Law Calculator added to resistor.c plugin
Attached to Project:
Rockbox
Opened by Leif Andersen (LeifAndersen) - Wednesday, 23 March 2011, 01:13 GMT+2
Opened by Leif Andersen (LeifAndersen) - Wednesday, 23 March 2011, 01:13 GMT+2
|
Details(Made using r29635)
This plugin adds an Ohm's Law calculator feature to the resistor.c plugin. It takes two inputs, of either (voltage, resistance, current, power), but not both of the same time, it will then calculate the other two values. |
This task depends upon
Anyway, thank you for being willing to take a look at it.
The only thing that bothers me a bit is that you use floating point types. While this does work in plugins, it's not something we really like (most of our players don't have floating point hardware). It's not a real problem in this case, since you only do very few calculations, so floating point emulation won't be too slow. It would still be nice if this could be done using only fixed point arithmetic though.
Anyway, I will re-write the operations to only used fixed point arithmetic. I originally didn't do it as it seemed like floating point worked fine, but it's not too hard to write