Developer

Added POS_HOLD mode... Code attached

USE AT YOUR OWN RISK! I haven't tested this myself yet. Perhaps someone with more experience in the codebase could review this.

 

I am attaching a zip of the files I modified to add a Position Hold mode to ArduCopter. This is essentially the same as Loiter, except that the throttle is manually controlled. So you could take off... enable Position Hold and then rocket your multi-rotor into the sky. I don't take any credit for the true functionality happening behind the scenes to hold the position. This is really more of an internal configuration change than anything else.

 

I also attached a zip of the two files I changed to add the new mode to the Mission Planner.

 

Couple more things I have locally for the Mission Planner that I am not attaching unless someone wants to integrate it:

1. Private Attribute to be used with enums - This allows a dev to hide certain enum values from the user

2. Display Text Attribute to be used with enums - This allows different display text to be used in drop down lists in the UI. Example: ALT_HOLD is the enum string, but it would be decorated with [DisplayText("Altitude Hold")], which through a helper class, gets bound to the drop down list.

3. EnumTranslator helper class - Returns enumeration values respecting the above attributes. Returns either Dictionary<int, string> where int is the enum int value and string is the enum display text, or Returns string[] where the values are the display text. In both cases if the display text attribute is missing, it defaults to the string enum value.

 

I seem to be missing a bunch of referenced dlls so I haven't been able to compile the Mission Planner locally yet. I will try to sort that out and get all this tested.

ArduCopter_09292011_POS_HOLD.zip

ArdupilotMegaPlanner_09292011_POS_HOLD.zip

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

Join diydrones

Email me when people reply –

Replies

This reply was deleted.

Activity

DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…