- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am running to actuators in two directions using 4 digitally controlled 1/2 bridge that have a current sense I read into my PSoC4.
In my code, I read the values in debug and they do match actual values from my scope. Yet when I do this simple if statement it does not compute properly. When the code is ran it see's the if statement as true, what am I missing? My C coding skills are not first class for sure!!
Can some one tell what i am doing wrong.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As my understanding, please change the "if statement" to below:
if((Motor1_Fwr_mVolts>=Current_Limit_mV)||(Motor1_Rev_mVolts>=Current_Limit_mV))
Best Regards,
Alice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As my understanding, please change the "if statement" to below:
if((Motor1_Fwr_mVolts>=Current_Limit_mV)||(Motor1_Rev_mVolts>=Current_Limit_mV))
Best Regards,
Alice