Read three pulse values in a script

8 years 1 month ago #29527846 by marcusbarnet
I tried the command both on script and on console with the same results: it gives me a zero values.

?PIC 1 and ?PIC2 commands return me the correct pulse values while ?PIC 3 returns me zero values.

Do I have to set any particular configuration for pulse 3 in Roborun utility?

I didn\'t try ?PI 3, yet.

Please Log in or Create an account to join the conversation.

8 years 1 month ago #29527847 by Griffin Baker
Replied by Griffin Baker on topic Re:Read three pulse values in a script
What is your pulse 3 input capture type used as(ex. pulse width.....)? And also, what is the \"Input Use\" set for (ex. No action.....)?

Please Log in or Create an account to join the conversation.

8 years 1 month ago #29527849 by marcusbarnet
Pulse Input 3 is configured as the other two inputs: \"pulse width\" and \"motor command\".

Can it be an issue which can be solved with a firmware upgrade for my HDC2450?

Please Log in or Create an account to join the conversation.

8 years 1 month ago #29527851 by Griffin Baker
Replied by Griffin Baker on topic Re:Read three pulse values in a script
Try disabling one of the other 2, and see if it\'ll now read the 3rd one.

I\'m not sure if a firmware update will fix this.

Please Log in or Create an account to join the conversation.

8 years 1 month ago #29527859 by marcusbarnet
Hi Griffin,

I solved the problem by using ?PI 3 command in place of ?PIC or ?CIP and it seems to work very well now.

So, currently, I\'m using ?CIP 1 and ?CIP 2 for the first two pulse inputs and ?PI 3 for the third one and everything is OK, now.

For the third pulse input configuration, I\'m using \"pulse width\" and \"No action\" while the first two pulse input are used for tank steering in mixed mode 1.

I do not know if this can be an issue or if it is a normal operation for my HDC2450, however, now it is working with ?PI 3 for the third pulse input.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.088 seconds