multiple servo control
Navigates to RoboticsConnection.com Home RoboticsConnection.com HomePage
RoboticsConnection User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



multiple servo control Expand / Collapse
Author
Message
Posted Sunday, February 03, 2008 3:05 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #41
Posted Thursday, March 06, 2008 7:03 PM


Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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

Post #124
Posted Thursday, March 06, 2008 11:47 PM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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

Post #126
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: jsummerour

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 10:37pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.187. 12 queries. Compression Disabled.