Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support categorized default logging configurations, introduce PID tuning logging configurations #716

Merged
merged 4 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Pitch rate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "controller.pitchRate",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "gyro.y",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Pitch rate",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Pitch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "controller.pitch",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.pitch",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Pitch",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Position x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "posCtl.targetX",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.x",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Position x",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Position y.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "posCtl.targetY",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.y",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Position y",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Position z.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "posCtl.targetZ",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.z",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Position z",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Roll rate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "controller.rollRate",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "gyro.x",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Roll rate",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Roll.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "controller.roll",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.roll",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Roll",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Velocity x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "posCtl.targetVX",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.vx",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Velocity x",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Velocity y.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "posCtl.targetVY",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.vy",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Velocity y",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Velocity z.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "posCtl.targetVZ",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.vz",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Velocity z",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Yaw rate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "controller.yawRate",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "gyro.z",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Yaw rate",
"period": 10
}
}
}
22 changes: 22 additions & 0 deletions src/cfclient/configs/log/PID tuning components/Yaw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "controller.yaw",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.yaw",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Yaw",
"period": 10
}
}
}
46 changes: 46 additions & 0 deletions src/cfclient/configs/log/PID tuning/Attitude rate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "controller.pitchRate",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "controller.rollRate",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "controller.yawRate",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "gyro.x",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "gyro.y",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "gyro.z",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Attitude rate",
"period": 10
}
}
}
46 changes: 46 additions & 0 deletions src/cfclient/configs/log/PID tuning/Attitude.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"logconfig": {
"logblock": {
"variables": [
{
"name": "controller.pitch",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "controller.roll",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "controller.yaw",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.pitch",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.roll",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
},
{
"name": "stateEstimate.yaw",
"stored_as": "",
"fetch_as": "float",
"type": "TOC"
}
],
"name": "Attitude",
"period": 10
}
}
}
Loading
Loading