Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
humanoides
bioloid_stm32_fw
Commits
380e0132
Commit
380e0132
authored
Apr 03, 2016
by
Sergi Hernandez
Browse files
Added the extern C preprocessor command to the bioloid_math header.
parent
44abd2f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/bioloid_math.h
View file @
380e0132
#ifndef _BIOLOID_MATH_H
#define _BIOLOID_MATH_H
#ifdef __cplusplus
extern
"C"
{
#endif
#include
"stm32f4xx.h"
#define PI 3.14159
...
...
@@ -59,4 +63,8 @@ uint8_t matrix3d_inverse(TMatrix3D *org, TMatrix3D *inv);
void
matrix3d_set_transform
(
TMatrix3D
*
matrix
,
TPoint3D
*
point
,
TVector3D
*
vector
);
void
matrix3d_mult
(
TMatrix3D
*
dst
,
TMatrix3D
*
a
,
TMatrix3D
*
b
);
#ifdef __cplusplus
}
#endif
#endif
include/motion_manager.h
View file @
380e0132
...
...
@@ -88,7 +88,6 @@ void manager_set_offset(uint8_t servo_id,int8_t offset);
inline
int16_t
manager_get_cw_angle_limit
(
uint8_t
servo_id
);
inline
int16_t
manager_get_ccw_angle_limit
(
uint8_t
servo_id
);
// motion modules handling
//void manager_add_module(
// operation functions
uint8_t
manager_in_range
(
unsigned
short
int
address
,
unsigned
short
int
length
);
void
manager_process_write_cmd
(
unsigned
short
int
address
,
unsigned
short
int
length
,
unsigned
char
*
data
);
...
...
src/bioloid_dyn_master_servos.c
View file @
380e0132
#include
"bioloid_dyn_master_servos.h"
#include
"bioloid_time.h"
#include
"usart1.h"
#include
"gpio.h"
#define ENABLE_RX_EN_GPIO_CLK __GPIOA_CLK_ENABLE()
#define RX_EN_PIN GPIO_PIN_8
...
...
Write
Preview
Supports
Markdown
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