uncrustify ArduCopter/Log.pde
This commit is contained in:
parent
b1cf3f7f91
commit
c1ce689e38
@ -22,15 +22,15 @@ static int8_t select_logs(uint8_t argc, const Menu::arg *argv);
|
||||
// printf_P is a version of print_f that reads from flash memory
|
||||
//static int8_t help_log(uint8_t argc, const Menu::arg *argv)
|
||||
/*{
|
||||
Serial.printf_P(PSTR("\n"
|
||||
"Commands:\n"
|
||||
" dump <n>"
|
||||
" erase (all logs)\n"
|
||||
" enable <name> | all\n"
|
||||
" disable <name> | all\n"
|
||||
"\n"));
|
||||
return 0;
|
||||
}*/
|
||||
* Serial.printf_P(PSTR("\n"
|
||||
* "Commands:\n"
|
||||
* " dump <n>"
|
||||
* " erase (all logs)\n"
|
||||
* " enable <name> | all\n"
|
||||
* " disable <name> | all\n"
|
||||
* "\n"));
|
||||
* return 0;
|
||||
* }*/
|
||||
|
||||
// Creates a constant array of structs representing menu options
|
||||
// and stores them in Flash memory, not RAM.
|
||||
@ -141,9 +141,9 @@ dump_log(uint8_t argc, const Menu::arg *argv)
|
||||
|
||||
DataFlash.get_log_boundaries(dump_log, dump_log_start, dump_log_end);
|
||||
/*Serial.printf_P(PSTR("Dumping Log number %d, start %d, end %d\n"),
|
||||
dump_log,
|
||||
dump_log_start,
|
||||
dump_log_end);
|
||||
* dump_log,
|
||||
* dump_log_start,
|
||||
* dump_log_end);
|
||||
*/
|
||||
Log_Read(dump_log_start, dump_log_end);
|
||||
//Serial.printf_P(PSTR("Done\n"));
|
||||
@ -314,14 +314,14 @@ static void Log_Write_Raw()
|
||||
static void Log_Read_Raw()
|
||||
{
|
||||
/*
|
||||
float logvar;
|
||||
Serial.printf_P(PSTR("RAW,"));
|
||||
for (int16_t y = 0; y < 9; y++) {
|
||||
logvar = get_float(DataFlash.ReadLong());
|
||||
Serial.print(logvar);
|
||||
Serial.print(", ");
|
||||
}
|
||||
Serial.println(" ");
|
||||
* float logvar;
|
||||
* Serial.printf_P(PSTR("RAW,"));
|
||||
* for (int16_t y = 0; y < 9; y++) {
|
||||
* logvar = get_float(DataFlash.ReadLong());
|
||||
* Serial.print(logvar);
|
||||
* Serial.print(", ");
|
||||
* }
|
||||
* Serial.println(" ");
|
||||
*/
|
||||
|
||||
float vx = get_float(DataFlash.ReadLong());
|
||||
@ -1029,23 +1029,42 @@ static int16_t Log_Read_Process(int16_t start_page, int16_t end_page)
|
||||
|
||||
#else // LOGGING_ENABLED
|
||||
|
||||
static void Log_Write_Startup() {}
|
||||
static void Log_Read_Startup() {}
|
||||
static void Log_Read(int16_t start_page, int16_t end_page) {}
|
||||
static void Log_Write_Cmd(byte num, struct Location *wp) {}
|
||||
static void Log_Write_Mode(byte mode) {}
|
||||
static void Log_Write_Raw() {}
|
||||
static void Log_Write_GPS() {}
|
||||
static void Log_Write_Current() {}
|
||||
static void Log_Write_Attitude() {}
|
||||
static void Log_Write_Data(int8_t _type, float _data){}
|
||||
static void Log_Write_Data(int8_t _type, int32_t _data){}
|
||||
static void Log_Write_Optflow() {}
|
||||
static void Log_Write_Nav_Tuning() {}
|
||||
static void Log_Write_Control_Tuning() {}
|
||||
static void Log_Write_Motors() {}
|
||||
static void Log_Write_Performance() {}
|
||||
static void Log_Write_PID() {}
|
||||
static int8_t process_logs(uint8_t argc, const Menu::arg *argv) { return 0; }
|
||||
static void Log_Write_Startup() {
|
||||
}
|
||||
static void Log_Read_Startup() {
|
||||
}
|
||||
static void Log_Read(int16_t start_page, int16_t end_page) {
|
||||
}
|
||||
static void Log_Write_Cmd(byte num, struct Location *wp) {
|
||||
}
|
||||
static void Log_Write_Mode(byte mode) {
|
||||
}
|
||||
static void Log_Write_Raw() {
|
||||
}
|
||||
static void Log_Write_GPS() {
|
||||
}
|
||||
static void Log_Write_Current() {
|
||||
}
|
||||
static void Log_Write_Attitude() {
|
||||
}
|
||||
static void Log_Write_Data(int8_t _type, float _data){
|
||||
}
|
||||
static void Log_Write_Data(int8_t _type, int32_t _data){
|
||||
}
|
||||
static void Log_Write_Optflow() {
|
||||
}
|
||||
static void Log_Write_Nav_Tuning() {
|
||||
}
|
||||
static void Log_Write_Control_Tuning() {
|
||||
}
|
||||
static void Log_Write_Motors() {
|
||||
}
|
||||
static void Log_Write_Performance() {
|
||||
}
|
||||
static void Log_Write_PID() {
|
||||
}
|
||||
static int8_t process_logs(uint8_t argc, const Menu::arg *argv) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // LOGGING_DISABLED
|
||||
|
Loading…
Reference in New Issue
Block a user