Gathiyo / arducopter

Automatically exported from code.google.com/p/arducopter
0 stars 0 forks source link

Motor log for more than quad (hexa and octo) #269

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Arducopter 2.0.49

Looking at the MOTOR log and using and hexa I found that just motors 1 to 4 are 
logged. 

So I made the correction and tested with my HEXA. 

log.pde correction is attached.

Thank you for adding to branch.

Original issue reported on code.google.com by grunb...@gmail.com on 24 Oct 2011 at 12:22

Attachments:

GoogleCodeExporter commented 8 years ago
Well, keep talking alone. Here is my new log.pde file with small changes:

Motors 1 to 8 are logged and instead of the raw radio value I changed to 0 to 
100% using the simple equation:
(100*(motor_out[CH_1]-g.rc_3.radio_min)/(g.rc_3.radio_max-g.rc_3.radio_min))

I prefer to see it this way instead of the raw values (not a big difference 
anyway)

Maybe You would prefer to use 1000 scale to be more accurate, because of the 
integer value). Or there is a better solution. I don't know. 

Hope this work for you.

Original comment by grunb...@gmail.com on 24 Oct 2011 at 3:34

Attachments:

GoogleCodeExporter commented 8 years ago
Made a custom output for each motor
Jason

Original comment by jasonshort on 28 Oct 2011 at 5:14

GoogleCodeExporter commented 8 years ago
Thanks Jason, you are the best.

Original comment by grunb...@gmail.com on 28 Oct 2011 at 8:27