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
0c6280ba
Commit
0c6280ba
authored
7 years ago
by
Beat Küng
Browse files
Options
Downloads
Patches
Plain Diff
tune_control: fix clang-tidy errors
parent
86acd237
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/systemcmds/tune_control/tune_control.cpp
+7
-7
7 additions, 7 deletions
src/systemcmds/tune_control/tune_control.cpp
with
7 additions
and
7 deletions
src/systemcmds/tune_control/tune_control.cpp
+
7
−
7
View file @
0c6280ba
...
...
@@ -51,7 +51,7 @@
#define MAX_NOTE_ITERATION 50
static
void
usage
(
void
);
static
void
usage
();
static
orb_advert_t
tune_control_pub
=
nullptr
;
...
...
@@ -91,10 +91,10 @@ tune_control_main(int argc, char *argv[])
{
Tunes
tunes
;
bool
string_input
=
false
;
const
char
*
tune_string
=
NULL
;
const
char
*
tune_string
=
nullptr
;
int
myoptind
=
1
;
int
ch
;
const
char
*
myoptarg
=
NULL
;
const
char
*
myoptarg
=
nullptr
;
unsigned
int
value
;
tune_control_s
tune_control
=
{};
tune_control
.
tune_id
=
0
;
...
...
@@ -103,7 +103,7 @@ tune_control_main(int argc, char *argv[])
while
((
ch
=
px4_getopt
(
argc
,
argv
,
"f:d:t:m:s:"
,
&
myoptind
,
&
myoptarg
))
!=
EOF
)
{
switch
(
ch
)
{
case
'f'
:
value
=
(
uint16_t
)(
strtol
(
myoptarg
,
NULL
,
0
));
value
=
(
uint16_t
)(
strtol
(
myoptarg
,
nullptr
,
0
));
if
(
value
>
0
&&
value
<
22000
)
{
tune_control
.
frequency
=
value
;
...
...
@@ -116,11 +116,11 @@ tune_control_main(int argc, char *argv[])
break
;
case
'd'
:
tune_control
.
duration
=
(
uint32_t
)(
strtol
(
myoptarg
,
NULL
,
0
));
tune_control
.
duration
=
(
uint32_t
)(
strtol
(
myoptarg
,
nullptr
,
0
));
break
;
case
't'
:
value
=
(
uint8_t
)(
strtol
(
myoptarg
,
NULL
,
0
));
value
=
(
uint8_t
)(
strtol
(
myoptarg
,
nullptr
,
0
));
if
(
value
>
0
&&
value
<
tunes
.
get_default_tunes_size
())
{
tune_control
.
tune_id
=
value
;
...
...
@@ -145,7 +145,7 @@ tune_control_main(int argc, char *argv[])
break
;
case
's'
:
value
=
(
uint16_t
)(
strtol
(
myoptarg
,
NULL
,
0
));
value
=
(
uint16_t
)(
strtol
(
myoptarg
,
nullptr
,
0
));
if
(
value
>
0
&&
value
<
100
)
{
tune_control
.
strength
=
value
;
...
...
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