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

Use defaults.parm for Volanti and Ottano #136

Merged

Conversation

robertlong13
Copy link
Collaborator

@robertlong13 robertlong13 commented May 21, 2024

Full overhaul of hwdefs for CPNs and autopilots. Leaning on include-structure where appropriate, and including defaults.parm for Volanti and Ottano (with a shared common param file for the parameters that should be shared between them).

@robertlong13 robertlong13 deleted the feature/SW-159-use-defaults-parm-for-volanti-and-ottano branch May 22, 2024 03:15
@robertlong13 robertlong13 restored the feature/SW-159-use-defaults-parm-for-volanti-and-ottano branch May 22, 2024 03:16
@robertlong13 robertlong13 reopened this May 22, 2024
@robertlong13 robertlong13 force-pushed the feature/SW-159-use-defaults-parm-for-volanti-and-ottano branch 4 times, most recently from 4a54e87 to de6314d Compare May 23, 2024 04:58
@robertlong13 robertlong13 marked this pull request as ready for review May 28, 2024 08:36
@robertlong13 robertlong13 force-pushed the feature/SW-159-use-defaults-parm-for-volanti-and-ottano branch from 76062c6 to e1449ea Compare May 28, 2024 08:41
@robertlong13 robertlong13 requested a review from loki077 May 28, 2024 08:46
@robertlong13 robertlong13 force-pushed the feature/SW-159-use-defaults-parm-for-volanti-and-ottano branch 3 times, most recently from 9f17832 to 4666d6e Compare June 5, 2024 07:00
This fix scans all the include files in a hwdef, not just one on the
first line.

SW-159
This commit leads to zero changes to the output of hwdef.h for both
CarbonixF405 and CarbonixL496.

SW-159
loki077 and others added 17 commits June 15, 2024 03:37
Without this, Auto and Guided ignore terrain-frame commands. This does
NOT force terrain following on for relative-frame commands.

At the time of writing, Mission Planner only sends relative frame for
Guided mode, but this parameter change means that I can fix that in the
future without needing to update the firmware.

SW-159
Changing TRIM_THROTTLE to 60% from 75% which is from the logs of
Volanti to maintain TRIM_ARSPD_CM 21m/s.

SW-159
Disable FFT as on lower Frequency it could create a major slew rate
which could cause a crash. (Recommended by Tridge).

Removing Harmonic Notch Filter as FFT is disabled.

PID Pitch Rate D and I are reduce to compensate for removal of FFT.

SW-159
As the new value is 100 which is the default.

SW-159
The current compass priority is set as per GPS priority so left gps is
Priority 1.

SW-159
As current log size for an hour flight goes to 1GB so for a 2 hour
flight we need atleast 2GB. Changing it to 5GB gives us enough space to
not need to clear every flight once near full.

SW-159
Loop Rate for Control in Cube set to 200Hz from 400Hz Results SW-171.

This is done as bigger Aircraft such as Volanti and Ottano doesn't have
response time for 400Hz change. Going to 200Hz hast advantage..
1. Reducing Log size.
2. Freeing up CPU resources.

SW-159
20m/s is the minimum airspeed demanded in automatic throttle modes.
Should be 20% above stall speed which is 16.5m/s at 16kg MTOW.

SW-159
As the default Range Finder has been moved to DroneCAN we don't need
serial3 RangeFinder.

SW-159
On boot the Safety state is ON "SAFE". This will be same to Ottano for
consistency.

SW-159
This fixes the servo assignment for Volant and Ottano Tail CPNs.

SW-181

SW-159
FLTMODE1,11 # RTL
FLTMODE3,10 # Auto
FLTMODE4,19 # QLoiter
FLTMODE5,7 # Cruise

FLTMODE6 and 2 deleted as not used.

SW-159
This helps us better understand/maintain items in the parameter files.

SW-159
@loki077 loki077 force-pushed the feature/SW-159-use-defaults-parm-for-volanti-and-ottano branch from df5c385 to 787c5e7 Compare June 15, 2024 10:39
@loki077
Copy link
Contributor

loki077 commented Jun 15, 2024

I have note reviewed Ottano default completely.
Also, I have note reviewed devid-encode/decode code .

@robertlong13
Copy link
Collaborator Author

I have tested the devid bit, but I'll check again now that we've made a few changes.

@loki077
Copy link
Contributor

loki077 commented Jun 16, 2024

@robertlong13 are you ok for me to merge this PR?

@robertlong13
Copy link
Collaborator Author

robertlong13 commented Jun 16, 2024

@robertlong13 are you ok for me to merge this PR?

Yes, we'll open another PR to fix any issues, if there are any, in the coming weeks.

@loki077 loki077 merged commit 633b415 into CxPilot Jun 16, 2024
62 checks passed
@robertlong13 robertlong13 deleted the feature/SW-159-use-defaults-parm-for-volanti-and-ottano branch June 17, 2024 07:04
robertlong13 added a commit that referenced this pull request Jun 18, 2024
I accidentally dropped this change when resolving a merge conflict while
rebasing #136 onto #138.

This fixes an issue where an errant ESC[15] would show up for 5 seconds
after boot that would contain NaN values. This is related to a bug that
was years ago in ArduPilot: ArduPilot/ardupilot#22308

Basically, different areas of the code had different values for
ESC_TELEM_MAX_ESCS based which other header files were included at that
time.

SW-244
robertlong13 added a commit that referenced this pull request Jun 18, 2024
I accidentally dropped this change when resolving a merge conflict while
rebasing #136 onto #138.

This fixes an issue where an errant ESC[15] would show up for 5 seconds
after boot that would contain NaN values. This is related to a bug that
was years ago in ArduPilot: ArduPilot/ardupilot#22308

Basically, different areas of the code had different values for
ESC_TELEM_MAX_ESCS based which other header files were included at that
time.

SW-244
robertlong13 added a commit that referenced this pull request Jun 18, 2024
I accidentally dropped this change when resolving a merge conflict while
rebasing #136 onto #138.

This fixes an issue where an errant ESC[15] would show up for 5 seconds
after boot that would contain NaN values. This is related to a bug that
was years ago in ArduPilot: ArduPilot/ardupilot#22308

Basically, different areas of the code had different values for
ESC_TELEM_MAX_ESCS based which other header files were included at that
time.

SW-244
robertlong13 added a commit that referenced this pull request Jun 18, 2024
I accidentally dropped this change when resolving a merge conflict while
rebasing #136 onto #138.

This fixes an issue where an errant ESC[15] would show up for 5 seconds
after boot that would contain NaN values. This is related to a bug that
was years ago in ArduPilot: ArduPilot/ardupilot#22308

Basically, different areas of the code had different values for
ESC_TELEM_MAX_ESCS based which other header files were included at that
time.

SW-244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants