mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
Rover: Log.cpp correct whitespace, remove tabs
This commit is contained in:
parent
d33f67e0c4
commit
5858c84f83
@ -27,7 +27,7 @@ bool Rover::print_log_menu(void)
|
||||
|
||||
if (0 == g.log_bitmask) {
|
||||
cliSerial->print("none");
|
||||
}else{
|
||||
} else {
|
||||
// Macro to make the following code a bit easier on the eye.
|
||||
// Pass it the capitalised name of the log option, as defined
|
||||
// in defines.h but without the LOG_ prefix. It will check for
|
||||
@ -131,7 +131,7 @@ int8_t Rover::select_logs(uint8_t argc, const Menu::arg *argv)
|
||||
|
||||
if (!strcasecmp(argv[0].str, "enable")) {
|
||||
g.log_bitmask.set_and_save(g.log_bitmask | bits);
|
||||
}else{
|
||||
} else {
|
||||
g.log_bitmask.set_and_save(g.log_bitmask & ~bits);
|
||||
}
|
||||
return(0);
|
||||
@ -277,15 +277,15 @@ void Rover::Log_Write_Nav_Tuning()
|
||||
// Write an attitude packet
|
||||
void Rover::Log_Write_Attitude()
|
||||
{
|
||||
Vector3f targets(0,0,0); // Rover does not have attitude targets, use place-holder for commonality with Dataflash Log_Write_Attitude message
|
||||
Vector3f targets(0, 0, 0); // Rover does not have attitude targets, use place-holder for commonality with Dataflash Log_Write_Attitude message
|
||||
|
||||
DataFlash.Log_Write_Attitude(ahrs, targets);
|
||||
|
||||
#if AP_AHRS_NAVEKF_AVAILABLE
|
||||
#if defined(OPTFLOW) and (OPTFLOW == ENABLED)
|
||||
DataFlash.Log_Write_EKF(ahrs,optflow.enabled());
|
||||
DataFlash.Log_Write_EKF(ahrs, optflow.enabled());
|
||||
#else
|
||||
DataFlash.Log_Write_EKF(ahrs,false);
|
||||
DataFlash.Log_Write_EKF(ahrs, false);
|
||||
#endif
|
||||
DataFlash.Log_Write_AHRS2(ahrs);
|
||||
#endif
|
||||
@ -468,7 +468,7 @@ void Rover::log_init(void)
|
||||
gcs_send_text(MAV_SEVERITY_INFO, "Preparing log system");
|
||||
DataFlash.Prep();
|
||||
gcs_send_text(MAV_SEVERITY_INFO, "Prepared log system");
|
||||
for (uint8_t i=0; i<num_gcs; i++) {
|
||||
for (uint8_t i=0; i < num_gcs; i++) {
|
||||
gcs[i].reset_cli_timeout();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user