-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP_Motors_test: add tri frames to json output #25670
Conversation
Corresponding Mission Planner PR
Nevermind, I'm drafting PRs too late at night. I'm the one that screwed up the order. I didn't match mine with |
a7ab17a
to
64c4401
Compare
|
||
for (uint8_t frame_class=0; frame_class <= AP_Motors::MOTOR_FRAME_DECA; frame_class++) { | ||
for (uint8_t frame_type=0; frame_type < AP_Motors::MOTOR_FRAME_TYPE_Y4; frame_type++) { | ||
if (frame_type == AP_Motors::MOTOR_FRAME_TYPE_VTAIL || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was skipping these because its a bit un-clear how they should be drawn. The original idea was to generate a diagram. https://discuss.ardupilot.org/t/copter-wiki-motor-diagram-overhaul/101046/24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that makes sense, but I wanted to unskip them so that they would at least get the right test-order to motor-number relation. The drawing logic has to get manually handled either way, but better to just get this info into the json.
I was planning to just be lazy and add the tricopter ones by hand, but if we can auto generate then even better! It does not matter for the moment, but if the goal was to make a diagram then the tricopter "plus-revese" frame type should be backwards in pitch. |
I was originally going to just add them manually, but then noticed this script existed (because the version field in the json) and I assumed that this was the place we wanted these changes done.
Ah, I missed that. I didn't realize Tris supported that type. I should fix that. In that case, |
Yeah, probably. |
db4d1f9
to
e927627
Compare
libraries/AP_Motors/AP_MotorsTri.cpp
Outdated
default: | ||
// do nothing | ||
break; | ||
if(!_pitch_reversed) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(!_pitch_reversed) { | |
if (!_pitch_reversed) { |
31c415b
to
e7573a9
Compare
Sorry for all the formatting issues. I've set up astyle now. |
@IamPete1 I've screwed things up with the |
Yeah, this is one of the traps with |
e7573a9
to
a143b31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks
- fix motor test order for reverse frame - add frame type string for reverse frame - fix initialization of _pitch_reversed flag
a143b31
to
e7a6bc2
Compare
I have rebased, should get passed the public key error in CI now. |
@robertlong13 will do a bit of RF testing |
Still need to add more types, but tri frames are a rather common VTOL frame, and this is needed for Mission Planner's motor test page to work.