Quantcast
Channel: ArduPilot Discourse - Latest topics
Viewing all articles
Browse latest Browse all 45704

Motor Control code a mystery

$
0
0

@jwcalvert wrote:

Version 3.0 of Code
Pixhawk
Trex Motor ControlIer on 6WD Thumper

Now running fairly well in both Manual and Auto.
But turns are very laboured so I need to tune these.

To that end I have found some odd code & I need some explanation, please.
I amusing Skid_Steer_Out = 1

What are the 2 lines in Steering.cpp doing????

    channel_steer->servo_out = 4500*motor1;
    channel_throttle->servo_out = 100*motor2;

Why the 4500 and 100 factors used??

Thanks

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 45704

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>