Skip to content

futaba RS485 servo communication library for Unix like operating system.

License

Notifications You must be signed in to change notification settings

takarakasai/rsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code sample

  RSX_SPKT_DECL(spkt, 2);
  RSX_SPKT_INIT(spkt);
  RSX_SPKT_SETID(spkt, 0x01);
  RSX_SPKT_SETADDR(spkt, 0x24);
  RSX_SPKT_SETLENGTH(spkt, 0x01);
  RSX_SPKT_SET_U8(spkt, 0, 0x01);

  ECALL(rsx_pkt_ser(&spkt, buff, sizeof(buff), &size));
  ECALL(data_dump(buff, size));
  if (use_serial) ECALL(hr_serial_write(hrs, buff, size));

  usleep(5 * 1000);

  ECALL(get_current(hrs, &rpkt, buff, sizeof(buff), use_serial));
  usleep(5 * 1000);

  RSX_SPKT_SETID(spkt, 0x01);
  RSX_SPKT_SETADDR(spkt, 0x1e);
  RSX_SPKT_SETLENGTH(spkt, 0x02);

About

futaba RS485 servo communication library for Unix like operating system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published