- Timestamp:
- 02/20/08 20:32:28 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/devdrv/macs.cc
r8865 r8866 606 606 void Macs::SetAcceleration(LWORD_t acc) 607 607 { 608 gLog << dbg << "- Setting acceleration to: " << vel<< endl;608 gLog << dbg << "- Setting acceleration to: " << acc << endl; 609 609 SendSDO(0x2003, 0, acc); // acceleration 610 610 WaitForSdo(0x2003, 0); … … 613 613 void Macs::SetDeceleration(LWORD_t dec) 614 614 { 615 gLog << dbg << "- Setting deceleration to: " << vel<< endl;615 gLog << dbg << "- Setting deceleration to: " << dec << endl; 616 616 SendSDO(0x2003, 1, dec); 617 617 WaitForSdo(0x2003, 1); … … 635 635 void Macs::StartRelPos(LWORDS_t pos) 636 636 { 637 if (!f IsArmed)637 if (!fArmed) 638 638 { 639 639 gLog << err << GetNodeName() << ": ERROR - Moving without being armed is not allowed." << endl; … … 648 648 void Macs::StartAbsPos(LWORDS_t pos) 649 649 { 650 if (!f IsArmed)650 if (!fArmed) 651 651 { 652 652 gLog << err << GetNodeName() << ": ERROR - Moving without being armed is not allowed." << endl; 653 653 return; 654 654 } 655 655 656 gLog << dbg << GetNodeName() << ": Starting relative positioning by " << (LWORD_t)pos << " ticks." << endl; 656 657 SendSDO(0x6004, 0, (LWORD_t)pos);
Note:
See TracChangeset
for help on using the changeset viewer.