Problemas con Mobiflight
Si leyeron la entrada configuracion de radios veran que modifique el archivo resultante por afuera de la aplicacion.
Los autores de Mobiflight no aconsejan este tipo de practicas (Recomendacion: Siempre hacer una copia de los archivos resultantes antes de modificarlos !!!)
Cuando pongo en ejecucion Mobiflight hay veces que algun que otro switch no responde como deberia. Entonces lo que suelo hacer es en el entorno de Arduino ejecutar el siguiente programa:
/* https://www.arduino.cc/en/Tutorial/EEPROMClear
/*
* EEPROM Clear
*
* Sets all of the bytes of the EEPROM to 0.
* Please see eeprom_iteration for a more in depth
* look at how to traverse the EEPROM.
*
* This example code is in the public domain.
*/
#include <EEPROM.h>
void setup() {
// initialize the LED pin as an output.
pinMode(13, OUTPUT);
/***
Iterate through each byte of the EEPROM storage.
Larger AVR processors have larger EEPROM sizes, E.g:
- Arduno Duemilanove: 512b EEPROM storage.
- Arduino Uno: 1kb EEPROM storage.
- Arduino Mega: 4kb EEPROM storage.
Rather than hard-coding the length, you should use the pre-provided length function.
This will make your code portable to all AVR processors.
***/
for (int i = 0 ; i < EEPROM.length() ; i++) {
EEPROM.write(i, 0);
}
// turn the LED on when we're done
digitalWrite(13, HIGH);
}
void loop() {
/** Empty loop. **/
}
Esto borra la eeprom del Arduino. Les recomiendo modificar la lineas:
pinMode(13, OUTPUT);
y
digitalWrite(13, HIGH);
con el pin de salida de algun led de su cockpit para que al terminar de ejecutarse les de un aviso luminoso.
Al ejecutar Mobiflight nuevamente va a detectar el Arduino y va a solicitar cargar nuevamente el firmware.
Comentarios
Publicar un comentario