Skip to content

Commit

Permalink
pbio/servo: configure Technic large angular motor
Browse files Browse the repository at this point in the history
Make it behave just like the SPIKE Prime large motor.
  • Loading branch information
laurensvalk committed Nov 13, 2020
1 parent dc22e36 commit 9179979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/pbio/include/pbio/iodev.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ typedef enum {
// Technic Angular Motors
PBIO_IODEV_TYPE_ID_TECHNIC_M_ANGULAR_MOTOR = LUMP_TYPE_ID_TECHNIC_M_ANGULAR_MOTOR,

PBIO_IODEV_TYPE_ID_TECHNIC_L_ANGULAR_MOTOR = LUMP_TYPE_ID_TECHNIC_L_ANGULAR_MOTOR,

// NXT Devices
PBIO_IODEV_TYPE_ID_NXT_TOUCH_SENSOR, /**< MINDSTORMS NXT Touch Sensor */
Expand Down
1 change: 1 addition & 0 deletions lib/pbio/src/servo.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ static void load_servo_settings(pbio_control_settings_t *s, pbio_iodev_type_id_t
*s = settings_servo_cplus_xl;
s->control_offset = 2500;
break;
case PBIO_IODEV_TYPE_ID_TECHNIC_L_ANGULAR_MOTOR:
case PBIO_IODEV_TYPE_ID_SPIKE_L_MOTOR:
*s = settings_servo_cplus_xl;
break;
Expand Down

0 comments on commit 9179979

Please sign in to comment.