APM:Libraries
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
DataFlash_Class Class Reference

#include <DataFlash.h>

Collaboration diagram for DataFlash_Class:
[legend]

Classes

struct  log_write_fmt
 
struct  PID_Info
 

Public Member Functions

 FUNCTOR_TYPEDEF (vehicle_startup_message_Log_Writer, void)
 
 DataFlash_Class (const char *firmware_string, const AP_Int32 &log_bitmask)
 
 DataFlash_Class (const DataFlash_Class &other)=delete
 
DataFlash_Classoperator= (const DataFlash_Class &)=delete
 
void set_mission (const AP_Mission *mission)
 
void Init (const struct LogStructure *structure, uint8_t num_types)
 
bool CardInserted (void)
 
void EraseAll ()
 
void WriteBlock (const void *pBuffer, uint16_t size)
 
void WriteCriticalBlock (const void *pBuffer, uint16_t size)
 
uint16_t find_last_log () const
 
void get_log_boundaries (uint16_t log_num, uint16_t &start_page, uint16_t &end_page)
 
uint16_t get_num_logs (void)
 
void setVehicle_Startup_Log_Writer (vehicle_startup_message_Log_Writer writer)
 
void PrepForArming ()
 
void EnableWrites (bool enable)
 
bool WritesEnabled () const
 
void StopLogging ()
 
void Log_Write_Parameter (const char *name, float value)
 
void Log_Write_GPS (uint8_t instance, uint64_t time_us=0)
 
void Log_Write_RFND (const RangeFinder &rangefinder)
 
void Log_Write_IMU ()
 
void Log_Write_IMUDT (uint64_t time_us, uint8_t imu_mask)
 
bool Log_Write_ISBH (uint16_t seqno, AP_InertialSensor::IMU_SENSOR_TYPE sensor_type, uint8_t instance, uint16_t multiplier, uint16_t sample_count, uint64_t sample_us, float sample_rate_hz)
 
bool Log_Write_ISBD (uint16_t isb_seqno, uint16_t seqno, const int16_t x[32], const int16_t y[32], const int16_t z[32])
 
void Log_Write_Vibration ()
 
void Log_Write_RCIN (void)
 
void Log_Write_RCOUT (void)
 
void Log_Write_RSSI (AP_RSSI &rssi)
 
void Log_Write_Baro (uint64_t time_us=0)
 
void Log_Write_Power (void)
 
void Log_Write_AHRS2 (AP_AHRS &ahrs)
 
void Log_Write_POS (AP_AHRS &ahrs)
 
bool Log_Write_MavCmd (uint16_t cmd_total, const mavlink_mission_item_t &mav_cmd)
 
void Log_Write_Radio (const mavlink_radio_t &packet)
 
void Log_Write_Message (const char *message)
 
void Log_Write_MessageF (const char *fmt,...)
 
void Log_Write_CameraInfo (enum LogMessages msg, const AP_AHRS &ahrs, const Location &current_loc)
 
void Log_Write_Camera (const AP_AHRS &ahrs, const Location &current_loc)
 
void Log_Write_Trigger (const AP_AHRS &ahrs, const Location &current_loc)
 
void Log_Write_ESC (void)
 
void Log_Write_Airspeed (AP_Airspeed &airspeed)
 
void Log_Write_Attitude (AP_AHRS &ahrs, const Vector3f &targets)
 
void Log_Write_AttitudeView (AP_AHRS_View &ahrs, const Vector3f &targets)
 
void Log_Write_Current ()
 
void Log_Write_Compass (const Compass &compass, uint64_t time_us=0)
 
void Log_Write_Mode (uint8_t mode, uint8_t reason)
 
void Log_Write_EntireMission (const AP_Mission &mission)
 
void Log_Write_Mission_Cmd (const AP_Mission &mission, const AP_Mission::Mission_Command &cmd)
 
void Log_Write_Origin (uint8_t origin_type, const Location &loc)
 
void Log_Write_RPM (const AP_RPM &rpm_sensor)
 
void Log_Write_Rate (const AP_AHRS &ahrs, const AP_Motors &motors, const AC_AttitudeControl &attitude_control, const AC_PosControl &pos_control)
 
void Log_Write_Rally (const AP_Rally &rally)
 
void Log_Write_VisualOdom (float time_delta, const Vector3f &angle_delta, const Vector3f &position_delta, float confidence)
 
void Log_Write_AOA_SSA (AP_AHRS &ahrs)
 
void Log_Write_Beacon (AP_Beacon &beacon)
 
void Log_Write_Proximity (AP_Proximity &proximity)
 
void Log_Write_SRTL (bool active, uint16_t num_points, uint16_t max_points, uint8_t action, const Vector3f &point)
 
void Log_Write (const char *name, const char *labels, const char *fmt,...)
 
void Log_Write (const char *name, const char *labels, const char *units, const char *mults, const char *fmt,...)
 
void Log_WriteV (const char *name, const char *labels, const char *units, const char *mults, const char *fmt, va_list arg_list)
 
void Log_Write_PID (uint8_t msg_type, const PID_Info &info)
 
bool should_log (uint32_t mask) const
 
bool logging_started (void)
 
void flush (void)
 
void handle_mavlink_msg (class GCS_MAVLINK &, mavlink_message_t *msg)
 
void periodic_tasks ()
 
uint32_t num_dropped (void) const
 
bool log_while_disarmed (void) const
 
uint8_t log_replay (void) const
 
const struct LogStructurestructure (uint16_t num) const
 
const struct UnitStructureunit (uint16_t num) const
 
const struct MultiplierStructuremultiplier (uint16_t num) const
 
bool logging_present () const
 
bool logging_enabled () const
 
bool logging_failed () const
 
void set_vehicle_armed (bool armed_state)
 
bool vehicle_is_armed () const
 
void handle_log_send ()
 
bool in_log_download () const
 
float quiet_nanf () const
 
double quiet_nan () const
 

Static Public Member Functions

static DataFlash_Classinstance (void)
 

Public Attributes

vehicle_startup_message_Log_Writer _vehicle_messages
 
struct {
   AP_Int8   backend_types
 
   AP_Int8   file_bufsize
 
   AP_Int8   file_disarm_rot
 
   AP_Int8   log_disarmed
 
   AP_Int8   log_replay
 
   AP_Int8   mav_bufsize
 
_params
 

Static Public Attributes

static const struct AP_Param::GroupInfo var_info []
 

Protected Member Functions

void WritePrioritisedBlock (const void *pBuffer, uint16_t size, bool is_critical)
 

Protected Attributes

const struct LogStructure_structures
 
uint8_t _num_types
 
const struct UnitStructure_units = log_Units
 
const struct MultiplierStructure_multipliers = log_Multipliers
 
const uint8_t _num_units = (sizeof(log_Units) / sizeof(log_Units[0]))
 
const uint8_t _num_multipliers = (sizeof(log_Multipliers) / sizeof(log_Multipliers[0]))
 

Private Member Functions

void internal_error () const
 
struct log_write_fmtmsg_fmt_for_name (const char *name, const char *labels, const char *units, const char *mults, const char *fmt)
 
bool msg_type_in_use (uint8_t msg_type) const
 
int16_t find_free_msg_type () const
 
bool fill_log_write_logstructure (struct LogStructure &logstruct, const uint8_t msg_type) const
 
int16_t Log_Write_calc_msg_len (const char *fmt) const
 
void Log_Write_Baro_instance (uint64_t time_us, uint8_t baro_instance, enum LogMessages type)
 
void Log_Write_IMU_instance (uint64_t time_us, uint8_t imu_instance, enum LogMessages type)
 
void Log_Write_Compass_instance (const Compass &compass, uint64_t time_us, uint8_t mag_instance, enum LogMessages type)
 
void Log_Write_Current_instance (uint64_t time_us, uint8_t battery_instance, enum LogMessages type, enum LogMessages celltype)
 
void Log_Write_IMUDT_instance (uint64_t time_us, uint8_t imu_instance, enum LogMessages type)
 
void backend_starting_new_log (const DataFlash_Backend *backend)
 
bool validate_structure (const struct LogStructure *logstructure, int16_t offset)
 
void validate_structures (const struct LogStructure *logstructures, const uint8_t num_types)
 
void dump_structure_field (const struct LogStructure *logstructure, const char *label, const uint8_t fieldnum)
 pretty-print field information from a log structure More...
 
void dump_structures (const struct LogStructure *logstructures, const uint8_t num_types)
 
void assert_same_fmt_for_name (const log_write_fmt *f, const char *name, const char *labels, const char *units, const char *mults, const char *fmt) const
 
const char * unit_name (const uint8_t unit_id)
 return a unit name given its ID More...
 
double multiplier_name (const uint8_t multiplier_id)
 return a multiplier value given its ID More...
 
void Log_Write_EKF_Timing (const char *name, uint64_t time_us, const struct ekf_timing &timing)
 
void Prep ()
 
bool should_handle_log_message ()
 
void handle_log_message (class GCS_MAVLINK &, mavlink_message_t *msg)
 
void handle_log_request_list (class GCS_MAVLINK &, mavlink_message_t *msg)
 
void handle_log_request_data (class GCS_MAVLINK &, mavlink_message_t *msg)
 
void handle_log_request_erase (class GCS_MAVLINK &, mavlink_message_t *msg)
 
void handle_log_request_end (class GCS_MAVLINK &, mavlink_message_t *msg)
 
void handle_log_send_listing ()
 
bool handle_log_send_data ()
 
void get_log_info (uint16_t log_num, uint32_t &size, uint32_t &time_utc)
 
int16_t get_log_data (uint16_t log_num, uint16_t page, uint32_t offset, uint16_t len, uint8_t *data)
 

Private Attributes

uint8_t _next_backend
 
DataFlash_Backendbackends [DATAFLASH_MAX_BACKENDS]
 
const char * _firmware_string
 
const AP_Int32 & _log_bitmask
 
struct DataFlash_Class::log_write_fmtlog_write_fmts
 
bool _armed
 
bool seen_ids [256] = { }
 
bool _writes_enabled:1
 
uint8_t _log_listing:1
 
uint8_t _log_sending:1
 
bool _in_log_download:1
 
uint16_t _log_next_list_entry
 
uint16_t _log_last_list_entry
 
uint16_t _log_num_logs
 
uint16_t _log_num_data
 
uint32_t _log_data_offset
 
uint32_t _log_data_size
 
uint32_t _log_data_remaining
 
uint16_t _log_data_page
 
GCS_MAVLINK_log_sending_link
 

Static Private Attributes

static DataFlash_Class_instance
 

Friends

class DataFlash_Backend
 

Detailed Description

Definition at line 48 of file DataFlash.h.

Constructor & Destructor Documentation

◆ DataFlash_Class() [1/2]

DataFlash_Class::DataFlash_Class ( const char *  firmware_string,
const AP_Int32 &  log_bitmask 
)

Definition at line 65 of file DataFlash.cpp.

Here is the call graph for this function:

◆ DataFlash_Class() [2/2]

DataFlash_Class::DataFlash_Class ( const DataFlash_Class other)
delete

Member Function Documentation

◆ assert_same_fmt_for_name()

void DataFlash_Class::assert_same_fmt_for_name ( const log_write_fmt f,
const char *  name,
const char *  labels,
const char *  units,
const char *  mults,
const char *  fmt 
) const
private

Definition at line 676 of file DataFlash.cpp.

Referenced by msg_fmt_for_name().

Here is the caller graph for this function:

◆ backend_starting_new_log()

void DataFlash_Class::backend_starting_new_log ( const DataFlash_Backend backend)
private

Definition at line 403 of file DataFlash.cpp.

Referenced by DataFlash_Backend::start_new_log_reset_variables().

Here is the caller graph for this function:

◆ CardInserted()

bool DataFlash_Class::CardInserted ( void  )

Definition at line 498 of file DataFlash.cpp.

Referenced by instance().

Here is the caller graph for this function:

◆ dump_structure_field()

void DataFlash_Class::dump_structure_field ( const struct LogStructure logstructure,
const char *  label,
const uint8_t  fieldnum 
)
private

pretty-print field information from a log structure

Definition at line 209 of file DataFlash.cpp.

Referenced by dump_structures().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump_structures()

void DataFlash_Class::dump_structures ( const struct LogStructure logstructures,
const uint8_t  num_types 
)
private

pretty-print log structures

Note
structures MUST be well-formed

Definition at line 216 of file DataFlash.cpp.

Referenced by Init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnableWrites()

void DataFlash_Class::EnableWrites ( bool  enable)
inline

Definition at line 90 of file DataFlash.h.

Referenced by Init().

Here is the caller graph for this function:

◆ EraseAll()

void DataFlash_Class::EraseAll ( )

Definition at line 494 of file DataFlash.cpp.

Referenced by handle_log_request_erase(), and instance().

Here is the caller graph for this function:

◆ fill_log_write_logstructure()

bool DataFlash_Class::fill_log_write_logstructure ( struct LogStructure logstruct,
const uint8_t  msg_type 
) const
private

Definition at line 835 of file DataFlash.cpp.

Referenced by DataFlash_Backend::Log_Write_Emit_FMT().

Here is the caller graph for this function:

◆ find_free_msg_type()

int16_t DataFlash_Class::find_free_msg_type ( ) const
private

Definition at line 820 of file DataFlash.cpp.

Referenced by msg_fmt_for_name().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_last_log()

uint16_t DataFlash_Class::find_last_log ( ) const

Definition at line 516 of file DataFlash.cpp.

Referenced by instance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flush()

void DataFlash_Class::flush ( void  )

Definition at line 582 of file DataFlash.cpp.

Referenced by DataFlashTest_AllTypes::flush_dataflash().

Here is the caller graph for this function:

◆ FUNCTOR_TYPEDEF()

DataFlash_Class::FUNCTOR_TYPEDEF ( vehicle_startup_message_Log_Writer  ,
void   
)

◆ get_log_boundaries()

void DataFlash_Class::get_log_boundaries ( uint16_t  log_num,
uint16_t &  start_page,
uint16_t &  end_page 
)

Definition at line 522 of file DataFlash.cpp.

Referenced by handle_log_request_data(), and instance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_log_data()

int16_t DataFlash_Class::get_log_data ( uint16_t  log_num,
uint16_t  page,
uint32_t  offset,
uint16_t  len,
uint8_t *  data 
)
private

Definition at line 534 of file DataFlash.cpp.

Referenced by handle_log_send_data().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_log_info()

void DataFlash_Class::get_log_info ( uint16_t  log_num,
uint32_t &  size,
uint32_t &  time_utc 
)
private

Definition at line 528 of file DataFlash.cpp.

Referenced by handle_log_request_data(), and handle_log_send_listing().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_num_logs()

uint16_t DataFlash_Class::get_num_logs ( void  )

Definition at line 540 of file DataFlash.cpp.

Referenced by handle_log_request_data(), handle_log_request_list(), and instance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_log_message()

void DataFlash_Class::handle_log_message ( class GCS_MAVLINK link,
mavlink_message_t *  msg 
)
private

handle all types of log download requests from the GCS

Definition at line 43 of file DataFlash_MAVLinkLogTransfer.cpp.

Referenced by handle_mavlink_msg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_log_request_data()

void DataFlash_Class::handle_log_request_data ( class GCS_MAVLINK link,
mavlink_message_t *  msg 
)
private

handle request for log data

Definition at line 105 of file DataFlash_MAVLinkLogTransfer.cpp.

Referenced by handle_log_message().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_log_request_end()

void DataFlash_Class::handle_log_request_end ( class GCS_MAVLINK link,
mavlink_message_t *  msg 
)
private

handle request to stop transfer and resume normal logging

Definition at line 170 of file DataFlash_MAVLinkLogTransfer.cpp.

Referenced by handle_log_message().

Here is the caller graph for this function:

◆ handle_log_request_erase()

void DataFlash_Class::handle_log_request_erase ( class GCS_MAVLINK link,
mavlink_message_t *  msg 
)
private

handle request to erase log data

Definition at line 159 of file DataFlash_MAVLinkLogTransfer.cpp.

Referenced by handle_log_message().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_log_request_list()

void DataFlash_Class::handle_log_request_list ( class GCS_MAVLINK link,
mavlink_message_t *  msg 
)
private

handle all types of log download requests from the GCS

Definition at line 67 of file DataFlash_MAVLinkLogTransfer.cpp.

Referenced by handle_log_message().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_log_send()

void DataFlash_Class::handle_log_send ( )

trigger sending of log messages if there are some pending

Definition at line 182 of file DataFlash_MAVLinkLogTransfer.cpp.

Referenced by GCS_MAVLINK::data_stream_send(), handle_log_request_data(), periodic_tasks(), and vehicle_is_armed().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_log_send_data()

bool DataFlash_Class::handle_log_send_data ( )
private

trigger sending of log data if there are some pending

Definition at line 260 of file DataFlash_MAVLinkLogTransfer.cpp.

Referenced by handle_log_send().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_log_send_listing()

void DataFlash_Class::handle_log_send_listing ( )
private

trigger sending of log messages if there are some pending

Definition at line 225 of file DataFlash_MAVLinkLogTransfer.cpp.

Referenced by handle_log_request_list(), and handle_log_send().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_mavlink_msg()

void DataFlash_Class::handle_mavlink_msg ( class GCS_MAVLINK link,
mavlink_message_t *  msg 
)

Definition at line 557 of file DataFlash.cpp.

Referenced by GCS_MAVLINK::handle_common_message().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ in_log_download()

bool DataFlash_Class::in_log_download ( ) const
inline

Definition at line 219 of file DataFlash.h.

Referenced by should_log(), and DataFlash_Backend::StartNewLogOK().

Here is the caller graph for this function:

◆ Init()

void DataFlash_Class::Init ( const struct LogStructure structure,
uint8_t  num_types 
)

Definition at line 77 of file DataFlash.cpp.

Referenced by instance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ instance()

static DataFlash_Class* DataFlash_Class::instance ( void  )
inlinestatic

Definition at line 62 of file DataFlash.h.

Referenced by AP_Compass_MMC3416::accumulate_field(), AP_Arming::arm_checks(), NavEKF3::check_log_write(), NavEKF2::check_log_write(), AC_AttitudeControl::control_monitor_log(), GCS_MAVLINK::data_stream_send(), GCS_MAVLINK::handle_common_message(), GCS_MAVLINK::handle_common_mission_message(), AP_Follow::handle_msg(), GCS_MAVLINK::handle_param_set(), SoloGimbal_Parameters::handle_param_value(), GCS_MAVLINK::handle_statustext(), GCS_MAVLINK::handle_timesync(), NavEKF3::InitialiseFilter(), NavEKF2::InitialiseFilter(), AP_Landing_Deepstall::Log(), AP_InertialSensor_Backend::log_accel_raw(), AP_SmartRTL::log_action(), AP_GPS_SBF::log_ExtEventPVTGeodetic(), AP_InertialSensor_Backend::log_gyro_raw(), AP_GPS_UBLOX::log_mon_hw(), AP_GPS_UBLOX::log_mon_hw2(), AP_Camera::log_picture(), AP_GPS_UBLOX::log_rxm_raw(), AP_GPS_UBLOX::log_rxm_rawx(), GCS_MAVLINK::log_vision_position_estimate_data(), AP_AHRS::Log_Write_Home_And_Origin(), Log_Write_ISBH(), AP_Tuning::Log_Write_Parameter_Tuning(), AP_Scheduler::Log_Write_Performance(), AP_Arming::logging_checks(), AP_GPS_SBP2::logging_ext_event(), AP_GPS_SBP::logging_log_full_update(), AP_GPS_SBP2::logging_log_full_update(), AP_GPS_SBP::logging_log_raw_sbp(), AP_GPS_SBP2::logging_log_raw_sbp(), AP_InertialSensor::BatchSampler::push_data_to_log(), AP_BattMonitor::read(), GCS::send_parameter_value(), AP_Baro::should_df_log(), AP_GPS::should_df_log(), AP_InertialSensor::BatchSampler::should_log(), AP_InertialSensor_Backend::should_log_imu_raw(), SITL::Aircraft::smooth_sensors(), AP_Compass_MMC3416::timer(), AP_Landing::type_slope_log(), CompassLearn::update(), AP_Baro_ICM20789::update(), Variometer::update(), AP_Baro::update(), AP_GPS::update_instance(), AP_Scheduler::update_logging(), AP_TECS::update_pitch_throttle(), SITL::Aircraft::update_position(), SoaringController::update_thermalling(), AP_Camera::update_trigger(), AP_GPS_Backend::Write_DataFlash_Log_Startup_messages(), AP_GPS_UBLOX::Write_DataFlash_Log_Startup_messages(), AC_PosControl::write_log(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ internal_error()

void DataFlash_Class::internal_error ( ) const
private

Definition at line 625 of file DataFlash.cpp.

Referenced by Log_WriteV().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ log_replay()

uint8_t DataFlash_Class::log_replay ( void  ) const
inline

Definition at line 189 of file DataFlash.h.

◆ log_while_disarmed()

bool DataFlash_Class::log_while_disarmed ( void  ) const
inline

Definition at line 188 of file DataFlash.h.

Referenced by should_log(), and DataFlash_Backend::ShouldLog().

Here is the caller graph for this function:

◆ Log_Write() [1/2]

void DataFlash_Class::Log_Write ( const char *  name,
const char *  labels,
const char *  fmt,
  ... 
)

Definition at line 632 of file DataFlash.cpp.

Referenced by AP_Compass_MMC3416::accumulate_field(), AC_AttitudeControl::control_monitor_log(), AP_Follow::handle_msg(), GCS_MAVLINK::handle_timesync(), GCS_MAVLINK::log_vision_position_estimate_data(), AP_Tuning::Log_Write_Parameter_Tuning(), SITL::Aircraft::smooth_sensors(), AP_Compass_MMC3416::timer(), AP_Landing::type_slope_log(), CompassLearn::update(), AP_Baro_ICM20789::update(), Variometer::update(), AP_TECS::update_pitch_throttle(), SITL::Aircraft::update_position(), SoaringController::update_thermalling(), AC_PosControl::write_log(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write() [2/2]

void DataFlash_Class::Log_Write ( const char *  name,
const char *  labels,
const char *  units,
const char *  mults,
const char *  fmt,
  ... 
)

Definition at line 641 of file DataFlash.cpp.

Here is the call graph for this function:

◆ Log_Write_AHRS2()

void DataFlash_Class::Log_Write_AHRS2 ( AP_AHRS ahrs)

Definition at line 458 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Airspeed()

void DataFlash_Class::Log_Write_Airspeed ( AP_Airspeed airspeed)

Definition at line 1551 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_AOA_SSA()

void DataFlash_Class::Log_Write_AOA_SSA ( AP_AHRS ahrs)

Definition at line 1685 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Attitude()

void DataFlash_Class::Log_Write_Attitude ( AP_AHRS ahrs,
const Vector3f targets 
)

Definition at line 1360 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_AttitudeView()

void DataFlash_Class::Log_Write_AttitudeView ( AP_AHRS_View ahrs,
const Vector3f targets 
)

Definition at line 1378 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Baro()

void DataFlash_Class::Log_Write_Baro ( uint64_t  time_us = 0)

Definition at line 279 of file LogFile.cpp.

Referenced by NavEKF3::check_log_write(), NavEKF2::check_log_write(), AP_Baro::update(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Baro_instance()

void DataFlash_Class::Log_Write_Baro_instance ( uint64_t  time_us,
uint8_t  baro_instance,
enum LogMessages  type 
)
private

Definition at line 258 of file LogFile.cpp.

Here is the call graph for this function:

◆ Log_Write_Beacon()

void DataFlash_Class::Log_Write_Beacon ( AP_Beacon beacon)

Definition at line 1698 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_calc_msg_len()

int16_t DataFlash_Class::Log_Write_calc_msg_len ( const char *  fmt) const
private

Definition at line 879 of file DataFlash.cpp.

Referenced by msg_fmt_for_name(), and validate_structure().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Camera()

void DataFlash_Class::Log_Write_Camera ( const AP_AHRS ahrs,
const Location current_loc 
)

Definition at line 1348 of file LogFile.cpp.

Referenced by AP_Camera::log_picture(), AP_Camera::update_trigger(), and WritesEnabled().

Here is the caller graph for this function:

◆ Log_Write_CameraInfo()

void DataFlash_Class::Log_Write_CameraInfo ( enum LogMessages  msg,
const AP_AHRS ahrs,
const Location current_loc 
)

Definition at line 1313 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Compass()

void DataFlash_Class::Log_Write_Compass ( const Compass compass,
uint64_t  time_us = 0 
)

Definition at line 1479 of file LogFile.cpp.

Referenced by NavEKF3::check_log_write(), NavEKF2::check_log_write(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Compass_instance()

void DataFlash_Class::Log_Write_Compass_instance ( const Compass compass,
uint64_t  time_us,
uint8_t  mag_instance,
enum LogMessages  type 
)
private

Definition at line 1455 of file LogFile.cpp.

Here is the call graph for this function:

◆ Log_Write_Current()

void DataFlash_Class::Log_Write_Current ( )

Definition at line 1436 of file LogFile.cpp.

Referenced by AP_BattMonitor::read(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Current_instance()

void DataFlash_Class::Log_Write_Current_instance ( uint64_t  time_us,
uint8_t  battery_instance,
enum LogMessages  type,
enum LogMessages  celltype 
)
private

Definition at line 1395 of file LogFile.cpp.

Here is the call graph for this function:

◆ Log_Write_EKF_Timing()

void DataFlash_Class::Log_Write_EKF_Timing ( const char *  name,
uint64_t  time_us,
const struct ekf_timing timing 
)
private

Referenced by Log_Write_POS().

Here is the caller graph for this function:

◆ Log_Write_EntireMission()

void DataFlash_Class::Log_Write_EntireMission ( const AP_Mission mission)

Definition at line 588 of file DataFlash.cpp.

Referenced by GCS_MAVLINK::handle_common_mission_message(), and WritesEnabled().

Here is the caller graph for this function:

◆ Log_Write_ESC()

void DataFlash_Class::Log_Write_ESC ( void  )

Definition at line 1509 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_GPS()

void DataFlash_Class::Log_Write_GPS ( uint8_t  instance,
uint64_t  time_us = 0 
)

Definition at line 136 of file LogFile.cpp.

Referenced by NavEKF3::check_log_write(), NavEKF2::check_log_write(), AP_GPS::update_instance(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_IMU()

void DataFlash_Class::Log_Write_IMU ( )

Definition at line 320 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_IMU_instance()

void DataFlash_Class::Log_Write_IMU_instance ( uint64_t  time_us,
uint8_t  imu_instance,
enum LogMessages  type 
)
private

Definition at line 294 of file LogFile.cpp.

Here is the call graph for this function:

◆ Log_Write_IMUDT()

void DataFlash_Class::Log_Write_IMUDT ( uint64_t  time_us,
uint8_t  imu_mask 
)

Definition at line 367 of file LogFile.cpp.

Referenced by NavEKF3::check_log_write(), NavEKF2::check_log_write(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_IMUDT_instance()

void DataFlash_Class::Log_Write_IMUDT_instance ( uint64_t  time_us,
uint8_t  imu_instance,
enum LogMessages  type 
)
private

Definition at line 341 of file LogFile.cpp.

Here is the call graph for this function:

◆ Log_Write_ISBD()

bool DataFlash_Class::Log_Write_ISBD ( uint16_t  isb_seqno,
uint16_t  seqno,
const int16_t  x[32],
const int16_t  y[32],
const int16_t  z[32] 
)

Definition at line 952 of file DataFlash.cpp.

Referenced by AP_InertialSensor::BatchSampler::push_data_to_log(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_ISBH()

bool DataFlash_Class::Log_Write_ISBH ( uint16_t  seqno,
AP_InertialSensor::IMU_SENSOR_TYPE  sensor_type,
uint8_t  instance,
uint16_t  multiplier,
uint16_t  sample_count,
uint64_t  sample_us,
float  sample_rate_hz 
)

Definition at line 919 of file DataFlash.cpp.

Referenced by AP_InertialSensor::BatchSampler::push_data_to_log(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_MavCmd()

bool DataFlash_Class::Log_Write_MavCmd ( uint16_t  cmd_total,
const mavlink_mission_item_t &  mav_cmd 
)

Referenced by WritesEnabled().

Here is the caller graph for this function:

◆ Log_Write_Message()

void DataFlash_Class::Log_Write_Message ( const char *  message)

Definition at line 593 of file DataFlash.cpp.

Referenced by GCS_MAVLINK::handle_statustext(), Log_Write_MessageF(), AP_GPS_Backend::Write_DataFlash_Log_Startup_messages(), and WritesEnabled().

Here is the caller graph for this function:

◆ Log_Write_MessageF()

void DataFlash_Class::Log_Write_MessageF ( const char *  fmt,
  ... 
)

Definition at line 391 of file DataFlash.cpp.

Referenced by AP_GPS_UBLOX::Write_DataFlash_Log_Startup_messages(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Mission_Cmd()

void DataFlash_Class::Log_Write_Mission_Cmd ( const AP_Mission mission,
const AP_Mission::Mission_Command cmd 
)

Definition at line 608 of file DataFlash.cpp.

Referenced by WritesEnabled().

Here is the caller graph for this function:

◆ Log_Write_Mode()

void DataFlash_Class::Log_Write_Mode ( uint8_t  mode,
uint8_t  reason 
)

Definition at line 598 of file DataFlash.cpp.

Referenced by WritesEnabled().

Here is the caller graph for this function:

◆ Log_Write_Origin()

void DataFlash_Class::Log_Write_Origin ( uint8_t  origin_type,
const Location loc 
)

Definition at line 1594 of file LogFile.cpp.

Referenced by AP_AHRS::Log_Write_Home_And_Origin(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Parameter()

void DataFlash_Class::Log_Write_Parameter ( const char *  name,
float  value 
)

Definition at line 603 of file DataFlash.cpp.

Referenced by GCS_MAVLINK::handle_param_set(), SoloGimbal_Parameters::handle_param_value(), AP_AutoTune::log_param_change(), GCS::send_parameter_value(), and WritesEnabled().

Here is the caller graph for this function:

◆ Log_Write_PID()

void DataFlash_Class::Log_Write_PID ( uint8_t  msg_type,
const PID_Info info 
)

Definition at line 1579 of file LogFile.cpp.

Here is the call graph for this function:

◆ Log_Write_POS()

void DataFlash_Class::Log_Write_POS ( AP_AHRS ahrs)

Definition at line 485 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Power()

void DataFlash_Class::Log_Write_Power ( void  )

Definition at line 437 of file LogFile.cpp.

Referenced by AP_BattMonitor::read(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Proximity()

void DataFlash_Class::Log_Write_Proximity ( AP_Proximity proximity)

Definition at line 1725 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Radio()

void DataFlash_Class::Log_Write_Radio ( const mavlink_radio_t &  packet)

Definition at line 1296 of file LogFile.cpp.

Referenced by GCS_MAVLINK::handle_radio_status(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Rally()

void DataFlash_Class::Log_Write_Rally ( const AP_Rally rally)

Definition at line 1647 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Rate()

void DataFlash_Class::Log_Write_Rate ( const AP_AHRS ahrs,
const AP_Motors motors,
const AC_AttitudeControl attitude_control,
const AC_PosControl pos_control 
)

Definition at line 1620 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_RCIN()

void DataFlash_Class::Log_Write_RCIN ( void  )

Definition at line 199 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_RCOUT()

void DataFlash_Class::Log_Write_RCOUT ( void  )

Definition at line 223 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_RFND()

void DataFlash_Class::Log_Write_RFND ( const RangeFinder rangefinder)

Definition at line 182 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_RPM()

void DataFlash_Class::Log_Write_RPM ( const AP_RPM rpm_sensor)

Definition at line 1608 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_RSSI()

void DataFlash_Class::Log_Write_RSSI ( AP_RSSI rssi)

Definition at line 248 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_SRTL()

void DataFlash_Class::Log_Write_SRTL ( bool  active,
uint16_t  num_points,
uint16_t  max_points,
uint8_t  action,
const Vector3f point 
)

Definition at line 1762 of file LogFile.cpp.

Referenced by AP_SmartRTL::log_action(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_Trigger()

void DataFlash_Class::Log_Write_Trigger ( const AP_AHRS ahrs,
const Location current_loc 
)

Definition at line 1354 of file LogFile.cpp.

Referenced by AP_Camera::log_picture(), and WritesEnabled().

Here is the caller graph for this function:

◆ Log_Write_Vibration()

void DataFlash_Class::Log_Write_Vibration ( )

Definition at line 390 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_Write_VisualOdom()

void DataFlash_Class::Log_Write_VisualOdom ( float  time_delta,
const Vector3f angle_delta,
const Vector3f position_delta,
float  confidence 
)

Definition at line 1667 of file LogFile.cpp.

Referenced by WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Log_WriteV()

void DataFlash_Class::Log_WriteV ( const char *  name,
const char *  labels,
const char *  units,
const char *  mults,
const char *  fmt,
va_list  arg_list 
)

Definition at line 650 of file DataFlash.cpp.

Referenced by Log_Write(), and WritesEnabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logging_enabled()

bool DataFlash_Class::logging_enabled ( ) const

Definition at line 365 of file DataFlash.cpp.

◆ logging_failed()

bool DataFlash_Class::logging_failed ( ) const

Definition at line 377 of file DataFlash.cpp.

◆ logging_present()

bool DataFlash_Class::logging_present ( ) const

Definition at line 361 of file DataFlash.cpp.

◆ logging_started()

bool DataFlash_Class::logging_started ( void  )

Definition at line 548 of file DataFlash.cpp.

Referenced by AP_Arming::arm_checks(), AP_AutoTune::log_param_change(), and AP_AutoTune::write_log().

Here is the caller graph for this function:

◆ msg_fmt_for_name()

DataFlash_Class::log_write_fmt * DataFlash_Class::msg_fmt_for_name ( const char *  name,
const char *  labels,
const char *  units,
const char *  mults,
const char *  fmt 
)
private

Definition at line 722 of file DataFlash.cpp.

Referenced by Log_WriteV().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ msg_type_in_use()

bool DataFlash_Class::msg_type_in_use ( uint8_t  msg_type) const
private

Definition at line 799 of file DataFlash.cpp.

Referenced by find_free_msg_type().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ multiplier()

const struct MultiplierStructure * DataFlash_Class::multiplier ( uint16_t  num) const

Definition at line 438 of file DataFlash.cpp.

Referenced by Log_Write_ISBH(), DataFlash_Backend::multiplier(), and WritesEnabled().

Here is the caller graph for this function:

◆ multiplier_name()

double DataFlash_Class::multiplier_name ( const uint8_t  multiplier_id)
private

return a multiplier value given its ID

Definition at line 197 of file DataFlash.cpp.

Referenced by dump_structure_field().

Here is the caller graph for this function:

◆ num_dropped()

uint32_t DataFlash_Class::num_dropped ( void  ) const

Definition at line 614 of file DataFlash.cpp.

Here is the call graph for this function:

◆ operator=()

DataFlash_Class& DataFlash_Class::operator= ( const DataFlash_Class )
delete

◆ periodic_tasks()

void DataFlash_Class::periodic_tasks ( )

Definition at line 575 of file DataFlash.cpp.

Here is the call graph for this function:

◆ Prep()

void DataFlash_Class::Prep ( )
private

Definition at line 507 of file DataFlash.cpp.

Referenced by Init().

Here is the caller graph for this function:

◆ PrepForArming()

void DataFlash_Class::PrepForArming ( )

Definition at line 450 of file DataFlash.cpp.

Referenced by AP_Arming::arm_checks(), and instance().

Here is the caller graph for this function:

◆ quiet_nan()

double DataFlash_Class::quiet_nan ( ) const
inline

Definition at line 222 of file DataFlash.h.

◆ quiet_nanf()

float DataFlash_Class::quiet_nanf ( ) const
inline

Definition at line 221 of file DataFlash.h.

◆ set_mission()

void DataFlash_Class::set_mission ( const AP_Mission mission)

Definition at line 476 of file DataFlash.cpp.

Referenced by instance().

Here is the caller graph for this function:

◆ set_vehicle_armed()

void DataFlash_Class::set_vehicle_armed ( bool  armed_state)

Definition at line 460 of file DataFlash.cpp.

◆ setVehicle_Startup_Log_Writer()

void DataFlash_Class::setVehicle_Startup_Log_Writer ( vehicle_startup_message_Log_Writer  writer)

Definition at line 455 of file DataFlash.cpp.

Referenced by instance().

Here is the caller graph for this function:

◆ should_handle_log_message()

bool DataFlash_Class::should_handle_log_message ( )
private

Definition at line 28 of file DataFlash_MAVLinkLogTransfer.cpp.

Referenced by handle_log_message().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ should_log()

bool DataFlash_Class::should_log ( uint32_t  mask) const

Definition at line 416 of file DataFlash.cpp.

Referenced by AP_Camera::log_picture(), AP_BattMonitor::read(), AP_Baro::should_df_log(), AP_GPS::should_df_log(), AP_InertialSensor::BatchSampler::should_log(), AP_InertialSensor_Backend::should_log_imu_raw(), and AP_Camera::update_trigger().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StopLogging()

void DataFlash_Class::StopLogging ( )

Definition at line 511 of file DataFlash.cpp.

Referenced by WritesEnabled().

Here is the caller graph for this function:

◆ structure()

const struct LogStructure * DataFlash_Class::structure ( uint16_t  num) const

Definition at line 356 of file DataFlash.cpp.

Referenced by instance(), msg_type_in_use(), and DataFlash_Backend::structure().

Here is the caller graph for this function:

◆ unit()

const struct UnitStructure * DataFlash_Class::unit ( uint16_t  num) const

Definition at line 433 of file DataFlash.cpp.

Referenced by DataFlash_Backend::unit().

Here is the caller graph for this function:

◆ unit_name()

const char * DataFlash_Class::unit_name ( const uint8_t  unit_id)
private

return a unit name given its ID

Definition at line 186 of file DataFlash.cpp.

Referenced by dump_structure_field().

Here is the caller graph for this function:

◆ validate_structure()

bool DataFlash_Class::validate_structure ( const struct LogStructure logstructure,
int16_t  offset 
)
private

Definition at line 245 of file DataFlash.cpp.

Referenced by msg_fmt_for_name(), and validate_structures().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate_structures()

void DataFlash_Class::validate_structures ( const struct LogStructure logstructures,
const uint8_t  num_types 
)
private

Definition at line 339 of file DataFlash.cpp.

Referenced by Init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vehicle_is_armed()

bool DataFlash_Class::vehicle_is_armed ( ) const
inline

Definition at line 216 of file DataFlash.h.

Referenced by should_handle_log_message(), should_log(), and DataFlash_Backend::ShouldLog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteBlock()

void DataFlash_Class::WriteBlock ( const void *  pBuffer,
uint16_t  size 
)

◆ WriteCriticalBlock()

void DataFlash_Class::WriteCriticalBlock ( const void *  pBuffer,
uint16_t  size 
)

Definition at line 485 of file DataFlash.cpp.

Referenced by instance(), and AP_Scheduler::Log_Write_Performance().

Here is the caller graph for this function:

◆ WritePrioritisedBlock()

void DataFlash_Class::WritePrioritisedBlock ( const void *  pBuffer,
uint16_t  size,
bool  is_critical 
)
protected

Definition at line 489 of file DataFlash.cpp.

◆ WritesEnabled()

bool DataFlash_Class::WritesEnabled ( ) const
inline

Definition at line 91 of file DataFlash.h.

Referenced by should_handle_log_message(), and DataFlash_Backend::ShouldLog().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ DataFlash_Backend

friend class DataFlash_Backend
friend

Definition at line 50 of file DataFlash.h.

Member Data Documentation

◆ _armed

bool DataFlash_Class::_armed
private

Definition at line 284 of file DataFlash.h.

Referenced by set_vehicle_armed(), and vehicle_is_armed().

◆ _firmware_string

const char* DataFlash_Class::_firmware_string
private

Definition at line 243 of file DataFlash.h.

Referenced by Init().

◆ _in_log_download

bool DataFlash_Class::_in_log_download
private

Definition at line 340 of file DataFlash.h.

Referenced by handle_log_request_data(), handle_log_request_end(), and in_log_download().

◆ _instance

DataFlash_Class * DataFlash_Class::_instance
staticprivate

Definition at line 310 of file DataFlash.h.

Referenced by DataFlash_Class(), and instance().

◆ _log_bitmask

const AP_Int32& DataFlash_Class::_log_bitmask
private

Definition at line 244 of file DataFlash.h.

Referenced by should_log(), and DataFlash_Backend::StartNewLogOK().

◆ _log_data_offset

uint32_t DataFlash_Class::_log_data_offset
private

Definition at line 355 of file DataFlash.h.

Referenced by handle_log_request_data(), and handle_log_send_data().

◆ _log_data_page

uint16_t DataFlash_Class::_log_data_page
private

Definition at line 364 of file DataFlash.h.

Referenced by handle_log_request_data(), and handle_log_send_data().

◆ _log_data_remaining

uint32_t DataFlash_Class::_log_data_remaining
private

Definition at line 361 of file DataFlash.h.

Referenced by handle_log_request_data(), and handle_log_send_data().

◆ _log_data_size

uint32_t DataFlash_Class::_log_data_size
private

Definition at line 358 of file DataFlash.h.

Referenced by handle_log_request_data().

◆ _log_last_list_entry

uint16_t DataFlash_Class::_log_last_list_entry
private

Definition at line 346 of file DataFlash.h.

Referenced by handle_log_request_list(), and handle_log_send_listing().

◆ _log_listing

uint8_t DataFlash_Class::_log_listing
private

◆ _log_next_list_entry

uint16_t DataFlash_Class::_log_next_list_entry
private

Definition at line 343 of file DataFlash.h.

Referenced by handle_log_request_list(), and handle_log_send_listing().

◆ _log_num_data

uint16_t DataFlash_Class::_log_num_data
private

Definition at line 352 of file DataFlash.h.

Referenced by handle_log_request_data(), and handle_log_send_data().

◆ _log_num_logs

uint16_t DataFlash_Class::_log_num_logs
private

Definition at line 349 of file DataFlash.h.

Referenced by handle_log_request_list(), and handle_log_send_listing().

◆ _log_sending

uint8_t DataFlash_Class::_log_sending
private

◆ _log_sending_link

GCS_MAVLINK* DataFlash_Class::_log_sending_link
private

◆ _multipliers

const struct MultiplierStructure* DataFlash_Class::_multipliers = log_Multipliers
protected

Definition at line 229 of file DataFlash.h.

Referenced by multiplier_name(), and validate_structure().

◆ _next_backend

uint8_t DataFlash_Class::_next_backend
private

◆ _num_multipliers

const uint8_t DataFlash_Class::_num_multipliers = (sizeof(log_Multipliers) / sizeof(log_Multipliers[0]))
protected

Definition at line 231 of file DataFlash.h.

Referenced by DataFlash_Backend::num_multipliers(), and validate_structure().

◆ _num_types

uint8_t DataFlash_Class::_num_types
protected

Definition at line 227 of file DataFlash.h.

Referenced by Init(), msg_type_in_use(), and DataFlash_Backend::num_types().

◆ _num_units

const uint8_t DataFlash_Class::_num_units = (sizeof(log_Units) / sizeof(log_Units[0]))
protected

Definition at line 230 of file DataFlash.h.

Referenced by DataFlash_Backend::num_units(), and validate_structure().

◆ _params

struct { ... } DataFlash_Class::_params

◆ _structures

const struct LogStructure* DataFlash_Class::_structures
protected

Definition at line 226 of file DataFlash.h.

Referenced by Init(), and structure().

◆ _units

const struct UnitStructure* DataFlash_Class::_units = log_Units
protected

Definition at line 228 of file DataFlash.h.

Referenced by unit(), unit_name(), and validate_structure().

◆ _vehicle_messages

vehicle_startup_message_Log_Writer DataFlash_Class::_vehicle_messages

◆ _writes_enabled

bool DataFlash_Class::_writes_enabled
private

Definition at line 333 of file DataFlash.h.

Referenced by EnableWrites(), and WritesEnabled().

◆ backend_types

AP_Int8 DataFlash_Class::backend_types

Definition at line 196 of file DataFlash.h.

◆ backends

DataFlash_Backend* DataFlash_Class::backends[DATAFLASH_MAX_BACKENDS]
private

◆ file_bufsize

AP_Int8 DataFlash_Class::file_bufsize

Definition at line 197 of file DataFlash.h.

◆ file_disarm_rot

AP_Int8 DataFlash_Class::file_disarm_rot

Definition at line 198 of file DataFlash.h.

Referenced by DataFlash_Backend::ShouldLog().

◆ log_disarmed

AP_Int8 DataFlash_Class::log_disarmed

Definition at line 199 of file DataFlash.h.

◆ log_replay

AP_Int8 DataFlash_Class::log_replay

Definition at line 200 of file DataFlash.h.

Referenced by NavEKF3::InitialiseFilter(), and NavEKF2::InitialiseFilter().

◆ log_write_fmts

struct DataFlash_Class::log_write_fmt * DataFlash_Class::log_write_fmts
private

◆ mav_bufsize

AP_Int8 DataFlash_Class::mav_bufsize

Definition at line 201 of file DataFlash.h.

Referenced by DataFlash_MAVLink::DataFlash_MAVLink().

◆ seen_ids

bool DataFlash_Class::seen_ids[256] = { }
private

Definition at line 325 of file DataFlash.h.

Referenced by validate_structure().

◆ var_info

const AP_Param::GroupInfo DataFlash_Class::var_info
static

Definition at line 194 of file DataFlash.h.

Referenced by DataFlash_Class().


The documentation for this class was generated from the following files: