Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
L
libroboint
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Humpelstilzchen
libroboint
Commits
e1cb9688
Commit
e1cb9688
authored
Jun 20, 2014
by
Erik Andresen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix AV value in libroboint.c
parent
e1e3a23e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
12 deletions
+50
-12
README
README
+9
-2
cmake_uninstall.cmake.in
cmake_uninstall.cmake.in
+23
-0
lib/libroboint.c
lib/libroboint.c
+18
-10
No files found.
README
View file @
e1cb9688
...
...
@@ -13,9 +13,16 @@ Running ftuploader --help should give you an idea how to use it.
Also included is an Interface Diagnose utility. See section Interface Diagnose
Download:
<---------->
See http://defiant.homedns.org/~erik/ft/libft/files/
Download Latest version: http://defiant.homedns.org/~erik/ft/libft/files/libroboint-current.tar.gz
Git: https://github.com/nxdefiant/libroboint
Requirements:
<---------->
libusb - http://libusb.sourceforge.net/
libusb
0.1
- http://libusb.sourceforge.net/
cmake at least version 2.4 - http://cmake.org
pthreads (Should be included with every modern posix compatible OS)
...
...
@@ -169,7 +176,7 @@ Changes:
TODO:
<---------->
-
find out what the value from GetAV() does mean
-
Update to libusb 1.0
-debian: example.c => /usr/share/doc/libroboint-dev/examples/
-read/write mem? robointerpreter.c, line 1110
-program dl over serial (check robodummy, line 1340)
...
...
cmake_uninstall.cmake.in
0 → 100644
View file @
e1cb9688
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
IF(EXISTS "$ENV{DESTDIR}${file}")
EXEC_PROGRAM(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
IF("${rm_retval}" STREQUAL 0)
ELSE("${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
ENDIF("${rm_retval}" STREQUAL 0)
ELSE(EXISTS "$ENV{DESTDIR}${file}")
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
ENDFOREACH(file)
lib/libroboint.c
View file @
e1cb9688
...
...
@@ -47,10 +47,12 @@
* Current Version: 0.5.2
*
* See http://defiant.homedns.org/~erik/ft/libft/files/ \n
* Download Latest version: http://defiant.homedns.org/~erik/ft/libft/files/libroboint-current.tar.gz
* Download Latest version: http://defiant.homedns.org/~erik/ft/libft/files/libroboint-current.tar.gz \n
* Git: https://github.com/nxdefiant/libroboint \n
* A <a href="http://ros.org">ROS</a>-Package with basic support of the Navigation Stack is available: https://github.com/nxdefiant/ros_roboint
*
* \section req_sec Requirements
* - libusb - http://libusb.sourceforge.net/
* - libusb
0.1
- http://libusb.sourceforge.net/
* - cmake at least version 2.4 - http://cmake.org
* - pthreads (Should be included with every modern posix compatible OS)
*
...
...
@@ -814,6 +816,7 @@ static void *FtThread(FT_HANDLE hFt)
int
timer_fd
;
struct
itimerspec
itval
;
uint64_t
missed
;
unsigned
short
AV
,
AVS1
,
AVS2
,
AVS3
;
out
[
0
]
=
ABF_IF_COMPLETE
;
area
->
TransferAktiv
=
1
;
...
...
@@ -997,11 +1000,11 @@ static void *FtThread(FT_HANDLE hFt)
area
->
AZ
=
in
[
9
];
area
->
D1
=
in
[
10
];
area
->
D2
=
in
[
11
];
area
->
AV
=
in
[
12
];
AV
=
in
[
12
];
area
->
AZ
|=
(
in
[
13
]
&
0x3
)
<<
8
;
area
->
D1
|=
(
in
[
13
]
&
0xC
)
<<
6
;
area
->
D2
|=
(
in
[
13
]
&
0x30
)
<<
4
;
area
->
AV
|=
(
in
[
13
]
&
0xC0
)
<<
2
;
AV
|=
(
in
[
13
]
&
0xC0
)
<<
2
;
area
->
IRKeys
=
in
[
14
];
area
->
BusModules
=
in
[
15
];
// 16
...
...
@@ -1012,12 +1015,12 @@ static void *FtThread(FT_HANDLE hFt)
area
->
AXS2
|=
(
in
[
20
]
&
0xC
)
<<
6
;
area
->
AXS3
|=
(
in
[
20
]
&
0x30
)
<<
4
;
// 21
area
->
AVS1
=
in
[
22
];
area
->
AVS2
=
in
[
23
];
area
->
AVS3
=
in
[
24
];
area
->
AVS1
|=
(
in
[
25
]
&
0x3
)
<<
8
;
area
->
AVS2
|=
(
in
[
25
]
&
0xC
)
<<
6
;
area
->
AVS3
|=
(
in
[
25
]
&
0x30
)
<<
4
;
AVS1
=
in
[
22
];
AVS2
=
in
[
23
];
AVS3
=
in
[
24
];
AVS1
|=
(
in
[
25
]
&
0x3
)
<<
8
;
AVS2
|=
(
in
[
25
]
&
0xC
)
<<
6
;
AVS3
|=
(
in
[
25
]
&
0x30
)
<<
4
;
// 26...42
if
(
hFt
->
type
==
FT_INTELLIGENT_IF
)
{
if
(
i
%
hFt
->
analogcycle
==
0
)
{
// EX
...
...
@@ -1032,6 +1035,11 @@ static void *FtThread(FT_HANDLE hFt)
area
->
AY
=
in
[
3
]
|
(
in
[
2
]
<<
8
);
}
}
// AV Values
area
->
AV
=
8
.
63
*
AV
-
1775
;
area
->
AVS1
=
8
.
63
*
AVS1
-
1775
;
area
->
AVS2
=
8
.
63
*
AVS2
-
1775
;
area
->
AVS3
=
8
.
63
*
AVS3
-
1775
;
sem_post
(
&
hFt
->
lock
);
hFt
->
interface_connected
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment