FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
void ConnectionDrive::HandleSdoOk
(
const uint8_t &
node
,
const uint16_t &
idx
,
const uint8_t &
subidx
,
const
Time
&
)
inline
private
Definition at line
659
of file
drivectrl.cc
.
661
{
662
ostringstream out;
663
out << hex;
664
out <<
"SDO-OK["
<< int(
node
) <<
"] "
<< idx <<
"/"
<< int(subidx) << dec <<
" "
;
665
666
switch
(idx)
667
{
668
case
kSetArmed
:
669
out <<
"(Armed state set)"
;
670
break
;
671
/*
672
case 0x1001:
673
Out() << inf2 << "- " << GetNodeName() << ": PDOs requested." << endl;
674
return;
675
*/
676
case
kSetPointVel
:
677
out <<
"(Pointing velocity set)"
;
678
break
;
679
680
case
kSetAcc
:
681
out <<
"(Acceleration set)"
;
682
break
;
683
684
case
kSetRpmMode
:
685
out <<
"(RPM mode set)"
;
686
break
;
687
688
case
kSetLedVoltage
:
689
out <<
"(LED Voltage set)"
;
690
Info
(out);
691
return
;
692
/*
693
case 0x3007:
694
//Out() << inf2 << "- Velocity set (" << GetNodeName() << ")" << endl;
695
return;
696
697
case 0x4000:
698
HandleNodeguard(tv);
699
return;
700
701
case 0x6000:
702
Out() << inf2 << "- " << GetNodeName() << ": Rotation direction set." << endl;
703
return;
704
705
case 0x6002:
706
Out() << inf2 << "- " << GetNodeName() << ": Velocity resolution set." << endl;
707
return;
708
*/
709
case
kSetPosition
:
710
out <<
"(Absolute positioning started)"
;
711
break
;
712
/*
713
case 0x6005:
714
Out() << inf2 << "- " << GetNodeName() << ": Relative positioning started." << endl;
715
fPosActive = kTRUE; // Make sure that the status is set correctly already before the first PDO
716
return;*/
717
}
718
/*
719
Out() << warn << setfill('0') << "WARNING - Nodedrv::HandleSDOOK: ";
720
Out() << "Node #" << dec << (int)fId << ": Sdo=" << hex << idx << "/" << (int)subidx << " set.";
721
Out() << endl;
722
*/
723
724
if
(
fVerbosity
>1)
725
Out
() << out.str() << endl;
726
}
node
Definition:
dns.c:26
ConnectionDrive::kSetPointVel
Definition:
drivectrl.cc:568
ConnectionDrive::kSetLedVoltage
Definition:
drivectrl.cc:572
Connection::Out
std::ostream & Out()
Definition:
Connection.h:51
ConnectionDrive::fVerbosity
uint16_t fVerbosity
Definition:
drivectrl.cc:484
ConnectionDrive::kSetAcc
Definition:
drivectrl.cc:569
MessageImp::Info
int Info(const std::string &str)
Definition:
MessageImp.h:47
ConnectionDrive::kSetRpmMode
Definition:
drivectrl.cc:570
ConnectionDrive::kSetPosition
Definition:
drivectrl.cc:573
ConnectionDrive::kSetArmed
Definition:
drivectrl.cc:567
ConnectionDrive
Generated on Sun Sep 18 2016 20:50:44 for FACT++ by
1.8.11