|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Friday, May 09, 2008 6:52 AM
Posts: 2,
Visits: 7
|
|
hi,
i got my serializer to work and its very nice. i'm using c++ in vs2005 to control it. so far i've gone through every line of the supplied test harness and the serializerlib source code and i want to go from using 1 servo to 2 at the same time.
i'm not seeing the relationship between the servo id number and a new initialized servo (in the testharness files). am i to assume that the first servo initialized is automatically assigned the next pin? or should i create a new pointer and change the motor_id to 2?
thanks
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: Friday, May 02, 2008 2:02 AM
Posts: 16,
Visits: 30
|
|
| hi rdas. i am darren. i am also using the serializer. but having problems. are u able to send me the source codes for c# and write me a dummy steps to operating it. it will be much appreciated. send it to tan_yong_han@hotmail.com
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Saturday, June 07, 2008 10:02 PM
Posts: 5,
Visits: 8
|
|
| The servo ID number must be provided to the constructor of CServoMotor class. The sample source code in TestHarnessDlg.cpp that demonstrates this follows: // Create the differential DC motor object if it does not yet exist. if (m_pServoMotor == NULL) { m_pServoMotor = new CServoMotor(m_Device, ActuatorConstants::MOTOR_ID_1); assert(m_pServoMotor != NULL); }The corrlelation between servo ID and Pin number is documented in the Serializer User Guide.
James Y. Wilson
Windows Embedded MVP
Fortudine Vincimus!
www.learningce.com
|
|
|
|