set_power_pwm_override...help!!!

Status
Not open for further replies.

chibi41

New Member
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..
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…