set_power_pwm_override...help!!!

Discussion in 'Embedded Systems and Microcontrollers' started by ayu_ayfa, Apr 29, 2012.

  1. ayu_ayfa

    ayu_ayfa Thread Starter New Member

    Joined:
    Sep 26, 2011
    Messages:
    14
    how to determine the condition for this function currently i am using this coding

    case 0:{
    set_power_pwm_override(1,true,0);
    set_power_pwm_override(0,false,1);
    set_power_pwm_override(2,true,0);
    set_power_pwm_override(3,false,1);
    set_power_pwm_override(5,true,0);
    set_power_pwm_override(4,false,1);

    break;
    }
    case 1:{
    set_power_pwm_override(0,true,0);
    set_power_pwm_override(1,false,1);
    set_power_pwm_override(3,true,0);
    set_power_pwm_override(2,false,1);
    set_power_pwm_override(4,true,0);
    set_power_pwm_override(5,false,1);

    break;
    }
    }
    }

    in order to get the output as attached(untitled2)..but the signal produced from the coding above attached(untitled)..
    so now, i have no idea how to adjust the coding above especially about the true/false and also the condition 1/0....i do not know how to make the double phase shift..from my result,it only show one phase shift...

    anyone pls help me..:confused:

    Attached Files:

Share This Page