mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28: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) {
|
if (0 == g.log_bitmask) {
|
||||||
cliSerial->print("none");
|
cliSerial->print("none");
|
||||||
}else{
|
} else {
|
||||||
// Macro to make the following code a bit easier on the eye.
|
// Macro to make the following code a bit easier on the eye.
|
||||||
// Pass it the capitalised name of the log option, as defined
|
// Pass it the capitalised name of the log option, as defined
|
||||||
// in defines.h but without the LOG_ prefix. It will check for
|
// 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")) {
|
if (!strcasecmp(argv[0].str, "enable")) {
|
||||||
g.log_bitmask.set_and_save(g.log_bitmask | bits);
|
g.log_bitmask.set_and_save(g.log_bitmask | bits);
|
||||||
}else{
|
} else {
|
||||||
g.log_bitmask.set_and_save(g.log_bitmask & ~bits);
|
g.log_bitmask.set_and_save(g.log_bitmask & ~bits);
|
||||||
}
|
}
|
||||||
return(0);
|
return(0);
|
||||||
@ -277,15 +277,15 @@ void Rover::Log_Write_Nav_Tuning()
|
|||||||
// Write an attitude packet
|
// Write an attitude packet
|
||||||
void Rover::Log_Write_Attitude()
|
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);
|
DataFlash.Log_Write_Attitude(ahrs, targets);
|
||||||
|
|
||||||
#if AP_AHRS_NAVEKF_AVAILABLE
|
#if AP_AHRS_NAVEKF_AVAILABLE
|
||||||
#if defined(OPTFLOW) and (OPTFLOW == ENABLED)
|
#if defined(OPTFLOW) and (OPTFLOW == ENABLED)
|
||||||
DataFlash.Log_Write_EKF(ahrs,optflow.enabled());
|
DataFlash.Log_Write_EKF(ahrs, optflow.enabled());
|
||||||
#else
|
#else
|
||||||
DataFlash.Log_Write_EKF(ahrs,false);
|
DataFlash.Log_Write_EKF(ahrs, false);
|
||||||
#endif
|
#endif
|
||||||
DataFlash.Log_Write_AHRS2(ahrs);
|
DataFlash.Log_Write_AHRS2(ahrs);
|
||||||
#endif
|
#endif
|
||||||
@ -468,7 +468,7 @@ void Rover::log_init(void)
|
|||||||
gcs_send_text(MAV_SEVERITY_INFO, "Preparing log system");
|
gcs_send_text(MAV_SEVERITY_INFO, "Preparing log system");
|
||||||
DataFlash.Prep();
|
DataFlash.Prep();
|
||||||
gcs_send_text(MAV_SEVERITY_INFO, "Prepared log system");
|
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();
|
gcs[i].reset_cli_timeout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user