Skip to content

Commit 72359fa

Browse files
committed
v1.7.4
1 parent 0f11d04 commit 72359fa

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# uArm Arduino Library Release Note
22

3+
## [1.7.4] - 2016-09-08
4+
5+
### Fix
6+
- Fix uArm, if connect USB before plug DC adapter.
7+
38
## [1.7.3] - 2016-07-07
49

510
### Fix

examples/UArmProtocol/UArmProtocol.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#define UARM_FIRMWARE_MAJOR_VERSION 1
2222
#define UARM_FIRMWARE_MINOR_VERSION 7
23-
#define UARM_FIRMWARE_BUGFIX 3
23+
#define UARM_FIRMWARE_BUGFIX 4
2424

2525
#define START_SYSEX 0xF0 // start a MIDI Sysex message
2626
#define END_SYSEX 0xF7 // end a MIDI Sysex message

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=uArmLibrary
2-
version=1.7.3
2+
version=1.7.4
33
author=UFactory <developer@ufactory.cc>
44
maintainer=Joey Song <joey@ufactory.cc>, Alex Tan<alex@ufactory.cc>, Dave Corboy<dave@corboy.com>
55
sentence=uArm Library for Arduino

src/uarm_library.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ boolean uArmClass::set_servo_status(boolean setAttached, byte servoNum){
154154
double angleBefore = 90;
155155
if(servoNum == SERVO_ROT_NUM) {
156156
if(setAttached) {
157-
if (is_linear_calibrated == true) {
157+
if (is_linear_calibrated == true && analogRead(SERVO_ROT_ANALOG_PIN) > 50) {
158158
angleBefore = read_servo_angle(SERVO_ROT_NUM);
159159
// Serial.println("New angle" + String(angleBefore));
160160
uarm.g_servo_rot.attach(SERVO_ROT_PIN);
@@ -170,7 +170,7 @@ boolean uArmClass::set_servo_status(boolean setAttached, byte servoNum){
170170
}
171171
}else if(servoNum == SERVO_LEFT_NUM) {
172172
if(setAttached) {
173-
if (is_linear_calibrated == true) {
173+
if (is_linear_calibrated == true && analogRead(SERVO_LEFT_ANALOG_PIN) > 50) {
174174
angleBefore = uarm.read_servo_angle(SERVO_LEFT_NUM);
175175
uarm.g_servo_left.attach(SERVO_LEFT_PIN);
176176
uarm.g_servo_left.write(angleBefore);
@@ -185,7 +185,7 @@ boolean uArmClass::set_servo_status(boolean setAttached, byte servoNum){
185185
}
186186
}else if(servoNum == SERVO_RIGHT_NUM) {
187187
if(setAttached) {
188-
if (is_linear_calibrated == true) {
188+
if (is_linear_calibrated == true && analogRead(SERVO_RIGHT_ANALOG_PIN) > 50) {
189189
angleBefore = uarm.read_servo_angle(SERVO_RIGHT_NUM);
190190
uarm.g_servo_right.attach(SERVO_RIGHT_PIN);
191191
uarm.g_servo_right.write(angleBefore);
@@ -200,7 +200,7 @@ boolean uArmClass::set_servo_status(boolean setAttached, byte servoNum){
200200
}
201201
}else if(servoNum == SERVO_HAND_ROT_NUM) {
202202
if(setAttached) {
203-
if (is_linear_calibrated == true) {
203+
if (is_linear_calibrated == true && analogRead(SERVO_HAND_ROT_ANALOG_PIN) >100 ) {
204204
angleBefore = uarm.read_servo_angle(SERVO_HAND_ROT_NUM);
205205
uarm.g_servo_hand_rot.attach(SERVO_HAND_PIN);
206206
uarm.g_servo_hand_rot.write(angleBefore);

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[firmware]
2-
version=1.7.3
2+
version=1.7.4

0 commit comments

Comments
 (0)