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
b49ccb88
Commit
b49ccb88
authored
6 years ago
by
alessandro
Committed by
Beat Küng
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tap_esc: removed unused NO_VERIFY_CONFIG
parent
edf6f6c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/drivers/boards/aerofc-v1/board_config.h
+0
-2
0 additions, 2 deletions
src/drivers/boards/aerofc-v1/board_config.h
src/drivers/tap_esc/tap_esc.cpp
+0
-53
0 additions, 53 deletions
src/drivers/tap_esc/tap_esc.cpp
with
0 additions
and
55 deletions
src/drivers/boards/aerofc-v1/board_config.h
+
0
−
2
View file @
b49ccb88
...
...
@@ -142,8 +142,6 @@
/*
* ESCs do not respond
*/
#define BOARD_TAP_ESC_NO_VERIFY_CONFIG 1
#define BOARD_TAP_ESC_MODE 1
#define MEMORY_CONSTRAINED_SYSTEM
...
...
This diff is collapsed.
Click to expand it.
src/drivers/tap_esc/tap_esc.cpp
+
0
−
53
View file @
b49ccb88
...
...
@@ -64,10 +64,6 @@
#include
"drv_tap_esc.h"
#if !defined(BOARD_TAP_ESC_NO_VERIFY_CONFIG)
# define BOARD_TAP_ESC_NO_VERIFY_CONFIG 0
#endif
#if !defined(BOARD_TAP_ESC_MODE)
# define BOARD_TAP_ESC_MODE 0
#endif
...
...
@@ -310,55 +306,6 @@ TAP_ESC::init()
return
ret
;
}
#if !BOARD_TAP_ESC_NO_VERIFY_CONFIG
/* Verify All ESC got the config */
for
(
uint8_t
cid
=
0
;
cid
<
_channels_count
;
cid
++
)
{
/* Send the InfoRequest querying CONFIG_BASIC */
EscPacket
packet_info
=
{
0xfe
,
sizeof
(
InfoRequest
),
ESCBUS_MSG_ID_REQUEST_INFO
};
InfoRequest
&
info_req
=
packet_info
.
d
.
reqInfo
;
info_req
.
channelID
=
cid
;
info_req
.
requestInfoType
=
REQEST_INFO_BASIC
;
ret
=
tap_esc_common
::
send_packet
(
_uart_fd
,
packet_info
,
cid
);
if
(
ret
<
0
)
{
return
ret
;
}
/* Get a response */
int
retries
=
10
;
bool
valid
=
false
;
while
(
retries
--
)
{
tap_esc_common
::
read_data_from_uart
(
_uart_fd
,
&
uartbuf
);
if
(
!
tap_esc_common
::
parse_tap_esc_feedback
(
&
uartbuf
,
&
_packet
))
{
valid
=
(
_packet
.
msg_id
==
ESCBUS_MSG_ID_CONFIG_INFO_BASIC
&&
_packet
.
d
.
rspConfigInfoBasic
.
channelID
==
cid
&&
0
==
memcmp
(
&
_packet
.
d
.
rspConfigInfoBasic
.
resp
,
&
config
,
sizeof
(
ConfigInfoBasicRequest
)));
break
;
}
else
{
/* Give it time to come in */
usleep
(
1000
);
}
}
if
(
!
valid
)
{
return
-
EIO
;
}
}
#endif
/* To Unlock the ESC from the Power up state we need to issue 10
* ESCBUS_MSG_ID_RUN request with all the values 0;
*/
...
...
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