Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.65 KB

File metadata and controls

41 lines (32 loc) · 2.65 KB

Project Instructions

This project exposes a gRPC API to control a drone.

  • It uses Protobuf to define the API and Go language to implement it.
  • It uses the MAVLink Protocol to control the drone.

Reference documentation

Coding Style

  • Use Go for all new files
  • Follow the project structure defined in README.md
  • When writing comments for functions, use the following format:
// FunctionName
// Describes what the function does, starting with a verb (e.g., "Converts", "Processes", "Validates").
// Additional sentences provide more details.
func FunctionName(param Type) ReturnType {
    // ...
}

Example:

// HeartbeatMessageToMap
// Converts a HEARTBEAT message to a map with decoded fields for better readability.
// For example, the PX4 CustomMode is decoded into a human-readable format.
func HeartbeatMessageToMap(msg *common.MessageHeartbeat) (map[string]interface{}, error) {
    // ...
}