Welcome to Multi-Rotor UK. Please login or sign up.

Thursday,August 22, 2019, 23:17:13

Login with username, password and session length

Shoutbox

Gaza07:
22 Aug 2019 22:47:32
Sorted mate  ~~
Andy7:
22 Aug 2019 10:27:36
Sure. But basically, all the subjects are getting cut off.
Gaza07:
21 Aug 2019 18:14:54
Can you pm me a screen shot of what you mean
Andy7:
21 Aug 2019 12:15:41
Gaza - can you make the subject line section in the forum topic list wider? It's cutting off the subject field really short.
Andy7:
19 Aug 2019 09:14:20
Good for you!  ~~
DarkButterfly:
18 Aug 2019 19:13:57
Had another negative encounter, it's been a few years since the last one, just an uneducated ******, going on about drones being illegal yada yada yada.    :-/
Still that didn't spoil my flying time, had an absolute blast  ~~
Gaza07:
07 Aug 2019 19:52:01
ooooh mrs jones  :D
hoverfly:
30 Jul 2019 15:26:34
D.B. you tightwad.. :cool:
atomiclama:
29 Jul 2019 20:14:10
DB that just means you have shed loads of props in the first place ;-)
DarkButterfly:
29 Jul 2019 18:53:33
Just had a thought, even with all the crashing I've done, I haven't bought any replacement props in over a year ~~
Members
  • Total Members: 8066
  • Latest: badger1
Stats
  • Total Posts: 196578
  • Total Topics: 19804
  • Online Today: 44
  • Online Ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 1
Guests: 41
Total: 42

Theme Changer





3d - Printworx

Printing 3d Forum

Anyone tried editing the code for the Arducopter APM 2.5?

Started by maddog7, Friday,January 25, 2013, 13:52:18

Previous topic - Next topic

maddog7

Anyone tried editing the code for the Arducopter APM 2.5?
I';m having shed loads of issues trying to change 4 simple values,
I can get it to compile but it won';t display the live outputs (ie artificial horizon etc) in the APM.
If I dl std code using the apm, it works fine?

Any ideas?
D

Jumpy07

Yep.. lots of times.. no issues..

What are you trying to change..  ?

For APM2 uncomment APM_config.h line 5
//#define CONFIG_APM_HARDWARE APM_HARDWARE_APM2
like so:
#define CONFIG_APM_HARDWARE APM_HARDWARE_APM2


In arduino select Tools>Board>Arduino Mega 2560 or Mega ADK

BNUC-S Pilot with PfCo /PFAW.
UAQ / CAA PfCo Instructor / Flight Assessor

"All that is necessary for the triumph of evil is that good men do nothing"

maddog7

Quote from: Jumpy07 on Friday,January 25, 2013, 19:37:11
Yep.. lots of times.. no issues..

What are you trying to change..  ?

For APM2 uncomment APM_config.h line 5
//#define CONFIG_APM_HARDWARE APM_HARDWARE_APM2
like so:
#define CONFIG_APM_HARDWARE APM_HARDWARE_APM2


In arduino select Tools>Board>Arduino Mega 2560 or Mega ADK


Cheers for the reply Jumpy.
I';m trying to change the values in AP_motorsquad.cpp to better reflect the offset config of the TBS Disco.

I';m relatively computer literate but I';m no programmer!
It';s been a bit of a trial to get to the stage I';m at!

I didn';t realise about the uncommenting thing, I made a silly assumption that it was no longer necessary! doh!

I was having issues with errors during compilation.
I';ll have a go uncommenting and report back in a bit.

Thanks so much for the pointers.
:-)
D

maddog7

Jumpy,
Tried what you said but I still seem to have about 30 warnings?
Is this normal?

Being a noob I have visions of my £££ TBS having a brain fart when I flip into RTL and buggering off to scotland!
:-)
Cheers
D

Jumpy07

Nothing wrong with Scotland lol
You have probably saved a file by error..
Start from fresh files.. d
PS: I have a reptile style frame that is find on default X Quad layout.. so do think you need to edit config files btw
BNUC-S Pilot with PfCo /PFAW.
UAQ / CAA PfCo Instructor / Flight Assessor

"All that is necessary for the triumph of evil is that good men do nothing"

maddog7

TBH fella,
It does seem to fly ok on std X, I';ve hovered it for 10 minutes in my (smallish) bedroom without any "moments"

I';d read somewhrere that putting in the motor offsets improves the balance of pitch to roll which made some sense to me.
D
:-)

bunnygirl80

Hi,

If you';re not a programmer and you';re new to it, I would recommend that you don';t change the CPP files and stick to changing the configuration in the CONFIG.H file. As previously mentioned, you should start with a clean install and just uncomment the relevant lines. You will notice the CONFIG.H has lots of lines with // at the beginning. These lines with // are ignored by the compiler and you remove the // for the lines which are relevant to you.

Stef
Always smile because you never know who could be falling in love with it. :) Drone Operator in North Wales. www.aerialworx.co.uk

maddog7

Stef,
Thanks for the help!
I';ve always shied away from programmaticalistic stuff but my interest in the way multis fly has given me the desire to learn.

I actually didn';t want to mess with anything at all at this early stage of the game but considered I';d probably have to do it at some point and thought changing only 4 values in 1 file might not be too bad  :o

It was a very steep learning curve just to get to that point and it';s still not there yet.

I did actually start from fresh, DL';ing only the V2.9 firmware and a new copy of the ardupilot IDE on a brand new laptop with a fresh install of 7 64 but there are quite a few red herrings in this APM business are there not!

I even tried to compile the untouched 2.9 but to no avail (probably because I didn';t realise I had to un-rem the APM2 line :banghead:)
In actual fact the only changes I';ve made to any of the FW/IDE was to set the sketch folder and replace the 4 motors values in the AP_motorsquad.cpp library file. After Jumpy mentioned the un-rem thing I tried that too, it would compile but there were warnings mee noo understandee :shrug:

I did most of my initial looking for answers on the DIY drones forum which is packed with info but much of it pertains to older FW versions and different hardware, not to mention a discussion I found where many folks were saying that the newest version of the ardupilot IDE was not compiling properly and they';d had to use either older versions or the STD Arduino IDE....

I can easily revert to the untouched version of 2.9 at anytime so a little experimentation with editing should only cause sliced flesh/walls and or a lost investment as it disappears of to (beautiful BTW Jumpy! we visit quite a lot :smiley:) Scotland!

I really would like to get to the bottom of this simple change since I can';t help feeling that if I want the best from the APM I';m gonna need to learn it sooner or later however, tomorrow if it';s not bloody snowing I';m going to take heed and fly the damn thing as it is!

:beer2:
D