- The code is now hosted in a proper code repository (Google Code) for version control and to allow others to contribute to the project. You can find it here.
- RTL (return to launch) and waypoint modes are user selectable
- Waypoints have altitude as well as lat/lon
- GPS parser now returned to ASCII NMEA, for compatibility with any GPS module, 1Hz or 5Hz. Very efficient code will allow it to run at any baud speed the module can support.
- PID loops used in all control functions
- Lots of bug fixes and error-trapping inserted
You need to be a member of diydrones to add comments!
Comments
i only see the reverse rudder but not the throttle, i think i can try to modify the code and add this because some chineeses BEC working in reverse mode. But If you want to add in your code is right for me.
Sorry for my poor english :(
angle = constrain(angle, 180, 0);
function constraint writes that 2nd param is low end, 3rd param is high end, so correct is:
angle = constrain(angle, 0, 180);
otherwise you'd always get resulting value 180 => very fast plane turning to one side ;)
But the ATmega chip has no file system (to hold KML file), as well as limited memory, so entire executable needs to be rebuilt each time when waypoints change.
Solution may be to develop a PC tool for converting KML file into C header file holding waypoints, and then rebuild AVR code (ideally automatically), so one would get new mission file from KML file by single click.
1) in Servo_Control.pde, both pulse_servo_throttle and pulse_servo_yaw have bug in 1st statement:
constrain(angle,180,0); makes simply nothing, should be:
angle = constrain(angle,180,0);
2) applet folder in google code repository seems to be redundant, since this is compiler-generated folder and files; I recommend to remove from cvs to avoid confusion
3) I'm preparing the code for use in Microsoft Visual Studio (freeware Visual Studio edition is available here), and making it real C++ project. Anyone interested to get it, or maybe putting to official CVS? It should be backward compatible with Arduino IDE for non-Windows users.
While were writing, i was doing the same, so i couldn't read...
Thanks for the answer
-e