From 8de040eaa55a6d9567805933f93c7c90cc3464f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20Hern=C3=A1ndez?= <shernand@iri.upc.edu> Date: Sun, 3 Apr 2016 20:23:03 +0000 Subject: [PATCH] Changed the download parameters to the ax device. --- servo_firmware/ax12/Makefile | 3 ++- servo_firmware/ax12/src/mem.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/servo_firmware/ax12/Makefile b/servo_firmware/ax12/Makefile index 8f2792f..ff67ea5 100755 --- a/servo_firmware/ax12/Makefile +++ b/servo_firmware/ax12/Makefile @@ -30,7 +30,8 @@ $(PROJECT).elf: $(OBJS) $(CC) -c $(CFLAGS) -I$(INCLUDE_DIR) -o $@ $< download: $(MAIN_OUT_HEX) - ../../bin/fw_downloader -d /dev/ttyUSB0 -f $(PROJECT).hex -s ax12 + ../../bin/fw_downloader -d /dev/ttyUSB0 -c + ../../bin/fw_downloader -d /dev/ttyUSB0 -f $(PROJECT).hex -p ax clean: rm $(PROJECT).* diff --git a/servo_firmware/ax12/src/mem.c b/servo_firmware/ax12/src/mem.c index 214779b..8135821 100644 --- a/servo_firmware/ax12/src/mem.c +++ b/servo_firmware/ax12/src/mem.c @@ -5,8 +5,8 @@ // dynamixel RAM variables unsigned char ram_data[RAM_SIZE]; -// Dynamixel EEPROM variables -unsigned char EEMEM eeprom_data[19]={0x1C,0x00,0x00,0x01,0x22,0xFA,0x00,0x00,0xFF,0x03,0x00,0x50,0x3C,0xF0,0xFF,0x03,0x02,0x24,0x24}; +// Dynamixel EEPROM variables ID baud +unsigned char EEMEM eeprom_data[19]={0x1C,0x00,0x00,0x01,0x01,0xFA,0x00,0x00,0xFF,0x03,0x00,0x50,0x3C,0xF0,0xFF,0x03,0x02,0x24,0x24}; void ram_init(void) { -- GitLab