mirror of https://github.com/ArduPilot/ardupilot
DataFlash: Fix typos
This commit is contained in:
parent
2ee6a85e67
commit
dc7acdf03f
|
@ -360,7 +360,7 @@ bool DataFlash_Class::fill_log_write_logstructure(struct LogStructure &logstruct
|
|||
}
|
||||
|
||||
/* calculate the length of output of a format string. Note that this
|
||||
* returns an int16_t; if it returns -1 then an error has occured.
|
||||
* returns an int16_t; if it returns -1 then an error has occurred.
|
||||
* This was mechanically converted from init_field_types in
|
||||
* Tools/Replay/MsgHandler.cpp */
|
||||
int16_t DataFlash_Class::Log_Write_calc_msg_len(const char *fmt) const
|
||||
|
|
|
@ -34,7 +34,7 @@ void DataFlash_Block::FinishWrite(void)
|
|||
// Write Buffer to flash, NO WAIT
|
||||
BufferToPage(df_BufferNum, df_PageAdr, 0);
|
||||
df_PageAdr++;
|
||||
// If we reach the end of the memory, start from the begining
|
||||
// If we reach the end of the memory, start from the beginning
|
||||
if (df_PageAdr > df_NumPages)
|
||||
df_PageAdr = 1;
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ bool DataFlash_Block::check_wrapped(void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
// This funciton finds the last log number
|
||||
// This function finds the last log number
|
||||
uint16_t DataFlash_Block::find_last_log(void)
|
||||
{
|
||||
uint16_t last_page = find_last_page();
|
||||
|
@ -731,7 +731,7 @@ void DataFlash_Class::Log_Write_GPS(const AP_GPS &gps, uint8_t i, uint64_t time_
|
|||
};
|
||||
WriteBlock(&pkt, sizeof(pkt));
|
||||
|
||||
/* write auxillary accuracy information as well */
|
||||
/* write auxiliary accuracy information as well */
|
||||
float hacc = 0, vacc = 0, sacc = 0;
|
||||
gps.horizontal_accuracy(i, hacc);
|
||||
gps.vertical_accuracy(i, vacc);
|
||||
|
|
Loading…
Reference in New Issue