Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Ardupilot
Commits
28f2f87b
Commit
28f2f87b
authored
12 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
Copter Motors: minor formatting change
parent
2cb28076
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AP_Motors/AP_Motors_Class.h
+3
-5
3 additions, 5 deletions
libraries/AP_Motors/AP_Motors_Class.h
with
3 additions
and
5 deletions
libraries/AP_Motors/AP_Motors_Class.h
+
3
−
5
View file @
28f2f87b
...
@@ -81,7 +81,7 @@ public:
...
@@ -81,7 +81,7 @@ public:
virtual
void
set_frame_orientation
(
uint8_t
new_orientation
)
{
_frame_orientation
=
new_orientation
;
};
virtual
void
set_frame_orientation
(
uint8_t
new_orientation
)
{
_frame_orientation
=
new_orientation
;
};
// enable - starts allowing signals to be sent to motors
// enable - starts allowing signals to be sent to motors
virtual
void
enable
()
{}
;
virtual
void
enable
()
=
0
;
// arm, disarm or check status status of motors
// arm, disarm or check status status of motors
bool
armed
()
{
return
_armed
;
};
bool
armed
()
{
return
_armed
;
};
...
@@ -100,8 +100,7 @@ public:
...
@@ -100,8 +100,7 @@ public:
};
};
// output_min - sends minimum values out to the motors
// output_min - sends minimum values out to the motors
virtual
void
output_min
()
{
virtual
void
output_min
()
=
0
;
};
// reached_limits - return whether we hit the limits of the motors
// reached_limits - return whether we hit the limits of the motors
uint8_t
reached_limit
(
uint8_t
which_limit
=
AP_MOTOR_ANY_LIMIT
)
{
uint8_t
reached_limit
(
uint8_t
which_limit
=
AP_MOTOR_ANY_LIMIT
)
{
...
@@ -109,8 +108,7 @@ public:
...
@@ -109,8 +108,7 @@ public:
}
}
// motor test
// motor test
virtual
void
output_test
()
{
virtual
void
output_test
()
=
0
;
};
// throttle_pass_through - passes pilot's throttle input directly to all motors - dangerous but used for initialising ESCs
// throttle_pass_through - passes pilot's throttle input directly to all motors - dangerous but used for initialising ESCs
virtual
void
throttle_pass_through
();
virtual
void
throttle_pass_through
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment