Hi all,
I am trying to use the different PF modes (PWM for instance) with my mindsensors
NRLink.
I tried adding new macros to PF.txt file without any sucess.
This is the file I used. I updated this macro file in my NRLink with NXT-G and
afterwars I built a simple NXT-G program to test PWM modes without sucess.
Motor Ch1 A Float, 50, 02, 01, 00,
Motor Ch1 A Forward, 53, 02, 01, 10,
Motor Ch1 A Reversed, 56, 02, 01, 20,
Motor Ch1 A Brake, 59, 02, 01, 30,
Motor Ch1 B Float, 5C, 02, 01, 00,
Motor Ch1 B Forward, 5F, 02, 01, 40,
Motor Ch1 B Reversed, 62, 02, 01, 80,
Motor Ch1 B Brake, 65, 02, 01, c0,
Motor Ch2 A Float, 68, 02, 11, 00,
Motor Ch2 A Forward, 6B, 02, 11, 10,
Motor Ch2 A Reversed, 6E, 02, 11, 20,
Motor Ch2 A Brake, 71, 02, 11, 30,
Motor Ch2 B Float, 74, 02, 11, 00,
Motor Ch2 B Forward, 77, 02, 11, 40,
Motor Ch2 B Reversed, 7A, 02, 11, 80,
Motor Ch2 B Brake, 7D, 02, 11, c0,
Motor Ch3 A Float, 80, 02, 21, 00,
Motor Ch3 A Forward, 83, 02, 21, 10,
Motor Ch3 A Reversed, 86, 02, 21, 20,
Motor Ch3 A Brake, 89, 02, 21, 30,
Motor Ch3 B Float, 8C, 02, 21, 00,
Motor Ch3 B Forward, 8F, 02, 21, 40,
Motor Ch3 B Reversed, 92, 02, 21, 80,
Motor Ch3 B Brake, 95, 02, 21, c0,
Motor Ch4 A Float, 98, 02, 31, 00,
Motor Ch4 A Forward, 9B, 02, 31, 10,
Motor Ch4 A Reversed, 9E, 02, 31, 20,
Motor Ch4 A Brake, A1, 02, 31, 30,
Motor Ch4 B Float, A4, 02, 31, 00,
Motor Ch4 B Forward, A7, 02, 31, 40,
Motor Ch4 B Reversed, AA, 02, 31, 80,
Motor Ch4 B Brake, AD, 02, 31, C0,
Motor Ch1 A PWM Float, C0, 02, 04, 00,
Motor Ch1 A PWM Fw 1, C3, 02, 04, 10,
Motor Ch1 A PWM Fw 2, C6, 02, 04, 20,
Motor Ch1 A PWM Fw 3, C9, 02, 04, 30,
Motor Ch1 A PWM Fw 4, CC, 02, 04, 40,
Motor Ch1 A PWM Fw 5, CF, 02, 04, 50,
Motor Ch1 A PWM Fw 6, D2, 02, 04, 60,
Motor Ch1 A PWM Fw 7, D5, 02, 04, 70,
Motor Ch1 A PWM Brake, D8, 02, 04, 80,
Motor Ch1 A PWM Bw 7, DB, 02, 04, 90,
Motor Ch1 A PWM Bw 6, DE, 02, 04, A0,
Motor Ch1 A PWM Bw 5, F1, 02, 04, B0,
Motor Ch1 A PWM Bw 4, F4, 02, 04, C0,
Motor Ch1 A PWM Bw 3, F7, 02, 04, D0,
Motor Ch1 A PWM Bw 2, FA, 02, 04, E0,
Motor Ch1 A PWM Bw 1, FD, 02, 04, F0,
Does anyone know how to use these extended PF modes?
I would also like to know the mapping between macro file and PF protocol, and
how the different NRLink NXT-G actions work (flush buffer, read, write, status).
Thanks,
Paco.
|