Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-dev-f303 FastPWM3
Diff: Inverter/Inverter.cpp
- Revision:
- 4:c023f7b6f462
- Parent:
- 3:6a0015d88d06
- Child:
- 7:dc5f27756e02
--- a/Inverter/Inverter.cpp Wed Mar 09 04:00:48 2016 +0000
+++ b/Inverter/Inverter.cpp Sat Mar 12 08:04:51 2016 +0000
@@ -99,13 +99,13 @@
void Inverter::SampleCurrent(void){
// Dbg->write(1);
- GPIOC->ODR ^= (1 << 4); //Toggle pin for debugging
+ //GPIOC->ODR ^= (1 << 4); //Toggle pin for debugging
I_B = _I_Scale*((float) (ADC1->DR) - I_B_Offset);
I_C = _I_Scale*((float) (ADC2->DR)- I_C_Offset);
I_A = -I_B - I_C;
//DAC->DHR12R1 = ADC2->DR;
//DAC->DHR12R1 = TIM3->CNT>>2;//ADC2->DR; // pass ADC -> DAC, also clears EOC flag
ADC1->CR2 |= 0x40000000;
- GPIOC->ODR ^= (1 << 4); //toggle pin for debugging
+ //GPIOC->ODR ^= (1 << 4); //toggle pin for debugging
}