Browse Source

AP_HAL: added get_system_id() method on Util

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
f95bea699b
  1. 9
      libraries/AP_HAL/Util.h

9
libraries/AP_HAL/Util.h

@ -38,6 +38,15 @@ public:
set system clock in UTC microseconds set system clock in UTC microseconds
*/ */
virtual void set_system_clock(uint64_t time_utc_usec) {} virtual void set_system_clock(uint64_t time_utc_usec) {}
/*
get system identifier (eg. serial number)
return false if a system identifier is not available
Buf should be filled with a printable string and must be null
terminated
*/
virtual bool get_system_id(char buf[40]) { return false; }
}; };
#endif // __AP_HAL_UTIL_H__ #endif // __AP_HAL_UTIL_H__

Loading…
Cancel
Save