Log in

View Full Version : Possible MPLab or Equiptment Problems?


PlaidPillagers
23-01-2008, 19:15
Hi,

So, the default code works (the pre-compiled HEX file that came with the default code) the way it's supposed to: joystick forward, robot forward. Joystick backwards, robot backwards. Joystick Right/Left: robot turns right/left.

Then, after any change in the programming, after compiling with MPLab and downloading with IFI_Loader, the robot controls become screwy. Joystick forward: robot turns right. Joystick right: robot goes forward.

This isn't a problem with the code, as I can put just a single small change (changing a variable name) in the code and this will happen. Does anyone know if this is a compiler/compiler settings problem, or an equipment problem, or something completely different?

psy_wombats
23-01-2008, 20:10
Have you tried recompiling the code without making any changes and then downloading? (Although there shouldn't be any changes between the default hex and the default code... Should there?)