Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
93201835
Commit
93201835
authored
8 years ago
by
Michael Schaeuble
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix code style
parent
57fee8b9
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
src/platforms/posix/drivers/df_bebop_bus_wrapper/df_bebop_bus_wrapper.cpp
+7
-7
7 additions, 7 deletions
...six/drivers/df_bebop_bus_wrapper/df_bebop_bus_wrapper.cpp
with
7 additions
and
7 deletions
src/platforms/posix/drivers/df_bebop_bus_wrapper/df_bebop_bus_wrapper.cpp
+
7
−
7
View file @
93201835
...
...
@@ -69,7 +69,7 @@ public:
DfBebopBusWrapper
();
~
DfBebopBusWrapper
()
=
default
;
/// Start and initialize the driver
/// Start and initialize the driver
int
start
();
/// Stop the driver
...
...
@@ -90,7 +90,7 @@ public:
/// Set the ESC speeds [front left, front right, back right, back left]
int
set_esc_speeds
(
const
float
pwm
[
4
]);
/// Capture the last throttle value for the battey computation
/// Capture the last throttle value for the battey computation
void
set_last_throttle
(
float
throttle
)
{
_last_throttle
=
throttle
;};
private
:
...
...
@@ -250,8 +250,8 @@ void task_main(int argc, char *argv[]);
/* mixers initialization */
int
initialize_mixers
(
const
char
*
mixers_filename
);
int
mixers_control_callback
(
uintptr_t
handle
,
uint8_t
control_group
,
uint8_t
control_index
,
float
&
input
);
int
mixers_control_callback
(
uintptr_t
handle
,
uint8_t
control_group
,
uint8_t
control_index
,
float
&
input
);
int
mixers_control_callback
(
uintptr_t
handle
,
uint8_t
control_group
,
...
...
@@ -365,7 +365,7 @@ void task_main(int argc, char *argv[])
_outputs
.
output
[
i
]
=
NAN
;
}
// Check if the outputs are in range and rescale
// Check if the outputs are in range and rescale
for
(
size_t
i
=
0
;
i
<
_outputs
.
noutputs
;
++
i
)
{
if
(
i
<
_outputs
.
noutputs
&&
PX4_ISFINITE
(
_outputs
.
output
[
i
])
&&
...
...
@@ -408,13 +408,13 @@ void task_main(int argc, char *argv[])
orb_copy
(
ORB_ID
(
actuator_armed
),
_armed_sub
,
&
_armed
);
}
// Start the motors if armed but not alreay running
// Start the motors if armed but not alreay running
if
(
_armed
.
armed
&&
!
_motors_running
)
{
g_dev
->
start_motors
();
_motors_running
=
true
;
}
// Stop motors if not armed but running
// Stop motors if not armed but running
if
(
!
_armed
.
armed
&&
_motors_running
)
{
g_dev
->
stop_motors
();
_motors_running
=
false
;
...
...
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