Quote:
Originally Posted by Robby Unruh
The multimeter shows no change.
|
The code shown is too simple to be 'wrong'. (though the addition of else ... 0.0 is a good idea).
The initialization issue mentioned by Jared341 would throw an exception (null pointer) in most, but not all cases. You need to make sure the object stays in scope all the time. Its not clear from your response to him if it does or not. Are you leaving the scope of the declaration right after setting the motor for instance? That would show no errors and not work.