refactor(firmware): simplify configuration and diagnostics

This commit is contained in:
Onur Özkan committed 2026-08-23 00:40:36 +03:00
1 parent ba9c97ed3b
commit fdf82a5114
96 files changed
+1612 -2772

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ version.workspace = true
workspace = true
[dependencies]
kaptan-log = { path = "../kaptan-log" }
kaptan-err-propagate = { path = "../kaptan-err-propagate" }
kaptan-dma = { path = "../kaptan-dma" }
kaptan-mavlink = { path = "../kaptan-mavlink" }
kaptan-sensor = { path = "../kaptan-sensor" }
+4 -1
View File
@@ -8,7 +8,7 @@
#![no_std]
use kaptan_dma::TxCompletion;
use kaptan_log::KaptanError;
use kaptan_err_propagate::KaptanError;
use kaptan_mavlink::message::MessageData;
use kaptan_mavlink::{
MavlinkFrame,
@@ -80,10 +80,13 @@ pub struct VerticalDataConfig {
#[derive(Clone, Copy, Debug, Eq, PartialEq, KaptanError)]
pub enum DataChannelError {
/// A configured channel must be due at least once per second.
#[kaptan_error(id = 4001)]
ZeroRate,
/// A configured channel exceeds the service frequency.
#[kaptan_error(id = 4002)]
RateExceedsServiceFrequency,
/// Two configured channels cannot share the one-frame-per-tick budget.
#[kaptan_error(id = 4003)]
ScheduleFull,
}