![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
as
Dependencies: mbed CMSIS_DSP_5
Diff: main.cpp
- Revision:
- 4:59209081108f
- Parent:
- 3:44b632ea58aa
- Child:
- 5:0cee30954cdc
--- a/main.cpp Thu Oct 18 20:11:44 2018 +0000 +++ b/main.cpp Fri Oct 19 11:58:37 2018 +0000 @@ -6,8 +6,16 @@ int tiempo; float calcularRMS(int16_t *datos, int longitud); - - +{ + size_t longitud=len(datos) + int16_t sumatorio=0 + + for (n=0;n<longitud;n++) + { + int16_t producto=datos(n)*datos(n) + sumatorio=sumatorio+producto + } +} int main() {