Skip to content

Commit f463809

Browse files
committed
starting renaming as alvik
1 parent 96d7040 commit f463809

File tree

4 files changed

+89
-86
lines changed

4 files changed

+89
-86
lines changed

examples/motor/motor.ino

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*/
1919

20-
#include "Arduino_Robot_Firmware.h"
20+
#include "Arduino_Alvik_Firmware.h"
2121

22-
Arduino_Robot_Firmware robot;
22+
Arduino_Alvik_Firmware robot;
2323

2424
unsigned long t=0;
2525
unsigned long t_change = 0;
@@ -33,7 +33,7 @@ void setup(){
3333
t=millis();
3434
t_change=millis();
3535
robot.setRpmRight(reference);
36-
robot.setKPidRight(30.0, 0.1, 0.4);
36+
//robot.setKPidRight(30.0, 0.1, 0.4);
3737
Serial.print("reference");
3838
Serial.print(" ");
3939
Serial.println("measure");
@@ -63,16 +63,20 @@ void loop(){
6363
break;
6464
}
6565
status++;
66-
if (status>1){
66+
if (status>5){
6767
status=0;
6868
}
6969
robot.setRpmRight(reference);
70+
robot.setRpmLeft(reference);
7071
}
7172
if (millis()-t>20){
7273
t=millis();
7374
robot.updateMotors();
75+
7476
Serial.print(reference);
7577
Serial.print(" ");
76-
Serial.println(robot.getRpmRight());
78+
Serial.print(robot.getRpmRight());
79+
Serial.print(" ");
80+
Serial.println(robot.getRpmLeft());
7781
}
7882
}

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name=Arduino_Robot_Firmware
22
version=0.0.5
33
author=Arduino, Giovanni di Dio Bruno, Lucio Rossi
44
maintainer=Arduino <info@arduino.cc>
5-
sentence=Library and firmware for Arduino Robot
5+
sentence=Library and firmware for Arduino Alvik
66
paragraph=This library is used to build the firmware used by Arduino Alvik, examples show you how to customize the firmware.
77
category=Robotics
8-
url=https://github.com/gbr1/Arduino_Robot_Firmware
9-
includes=Arduino_Robot_Firmware.h
8+
url=https://github.com/gbr1/Arduino_Alvik_Firmware
9+
includes=Arduino_Alvik_Firmware.h
1010
depends=Arduino_APDS9960, Arduino_MAX17332, STM32duino_LSM6DSO, STM32duino_MotionFX, STM32duino_VL53L7CX, AT42QT, ucPack

0 commit comments

Comments
 (0)