Close

Bug hunting and a look back

A project log for DIY Airboat and Controller

A small, flexible boat and controller system able to travel where a standard boat could not go.

compucatCompuCat 11/14/2014 at 02:550 Comments

I took the boat for a test run and discovered some stuff about the new code. It's quite reliable (as long as the XBees are within range of each other), and the lag problem has been fixed. However, there's some weird bugs, but what can you expect?

First and foremost, when attempting to run the boat at full throttle, for no apparent reason, the boat will only move at a slow speed. If you move the joystick to just the right place, though, it will run much faster. I'm not sure if this is being exhibited by the ESC or not. It could be normal behavior, but this is unlikely-the ESC was intended for airplanes, and behavior like that could cause the plane to crash. I might be trying to output servo values that the ESC is misinterpreting. I'll have to poke around with the code and see what happens. I'm not sure if the problem's in the old code-I'll have to test that.

The other bug is also quite weird: once lit, the debug LED will never turn off on the controller. I have no idea why this is happening, so I can't give any commentary here.

There are some choices I regret making in this project-and some things that happened that were just plain funny.

Does anybody have any ideas why my code is behaving strangely? Also, swapping the XBee out for the programmer is quite annoying on the boat end-I also have to disconnect the ESC, which normally provides power to the boat to protect the battery and regulator. Does anyone know of a better way?

Discussions