Developer

Ardupilot Lives

3689405155?profile=original

 

I'm currently copter-less and waiting on new motors to arrive from China, so I had some spare time this weekend to do a quick side project. It's a ground up re-write of the original Ardupilot using the latest Libraries for APM. The only difference is I had to use some tweaks to avoid filling up all the flash ram. With the Ardupilot GCS code, it's less than 1k from full. But it's all in there.

 

I could use some help testing because I can't get away to fly anymore. All of the systems seem to work correctly. The only trick is that the AP_config.h file needs your exact radio pwm values.

 

 

/***************************************/
// RADIO
#define CH1_MIN 1112  // (Microseconds) Range of Ailerons/ Rudder
#define CH1_MAX 1938  // (Microseconds)
#define CH2_MIN 1102  // (Microseconds) Range of Elevator
#define CH2_MAX 1936  // (Microseconds)
#define CH3_MIN 1101  // (Microseconds) Range of Throttle
#define CH3_MAX 1931  // (Microseconds)
#define CH4_MIN 936  // (Microseconds) Range of Rudder
#define CH4_MAX 2101  // (Microseconds)

 

 

You can use the AP_RC_Channel example sketch in the Library to get those values.

Otherwise it works with HappyKillmore's GCS and the latest GPS modules.

RAM is totally freed up using the PSTR macro so no more code crashes...

 

For know you can leave a comment here for bugs and fixes. Then I'll do a Beta and start using the issues list.

Code is on the Ardupilot Trunk and called Ardupilot_2_8

http://code.google.com/p/ardupilot/source/checkout

Use the latest Libraries from Ardupilot Mega.

 

If none of this post makes any sense, I wouldn't bother downloading. Just wait for a Beta.

Jason

 

 

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones

Comments

  • In order to get ArduPilot_2_8 compiled with GPS_PROTOCOL_IMU, I needed to make following changes:

    * add gps driver initialization to lines 54 -57:

    #elif GPS_PROTOCOL == GPS_PROTOCOL_IMU
            AP_GPS_IMU     g_gps_driver(&Serial);

    * replace obsolete decode_gps on line 300 with following code:

                    update_GPS();
                    roll_sensor = ((AP_GPS_IMU*)g_gps)->roll_sensor;
                    pitch_sensor = ((AP_GPS_IMU*)g_gps)->pitch_sensor;

     

    Is AP_GPS_IMU a right class to operate with ArduIMU here?

     

    Thanks,

    Andrew

  • Developer
    I will give it a try on my Stryker II test bed with IMU & mag compass.
  • Developer

    The elevons *may* work. You can definitely try. This works with thermopiles or the IMU. I've not tested the IMU yet.

    Jason

  • Thanks Jason.  I've been hoping that there was life in the old APL.  Your efforts are very appreciated.

     

    Jim

  • T3

    I assume you have to use the IMU with this or can you still use it with the thermopiles? I was going to try and test it out until I saw that the elevons aren't working yet and I've got it on a delta wing right now. I suppose I should get all the AP functions working on v2.7 first before I move on but once I get there, I would be willing to test some.

    I thought I was completely old tech with my APL and thermopiles but maybe I'll get another update!

    Thanks Jason.

  • Developer
    Be sure to do plenty of ground testing before any flights. Elevons are not tested or probably working at all. Once everything else checks out I'll get elevoms going.
  • Developer

    Hi Jason!!

    Thanks for your awesome job! I can test your changes with my IRE (http://diydrones.com/profiles/blogs/ardupilot-range-video-osd), but for now weather is too windy here in Spain.

    Regards!

    Dario.

  • To bad I changed to APM 2 weeks ago. But I will get that right first.

     

    Best

    Christof

     

     

  • Top job! There are a lot of APs out there, Ill get this uploaded ASAP

    Thanks Jason.
  • Moderator
    Jason, Thanks for taking the time.  I know there are a lot of APL (ArduPilot Legacy) fliers out there.  I'd be happy to test but am currently grounded due to a motor failure this weekend.  By the time I get it fixed, if you still need help I'll try it out.
This reply was deleted.