ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Copter: Simulink model and init scripts

Open fbredeme opened this issue 2 years ago • 2 comments

Meant to validate the models generated by the system Identification flight mode

  • arducopter.slx: Simulates ArduCopter Stabilize and Althold controller and optional plant model
  • sid_pre.m: Loads *.bin files to Matlab structures
  • sid_sim_init.m: Loads signals and parameters from Matlab structure into Simulink model

Work sponsored by IAV GmbH.

fbredeme avatar Sep 19 '22 13:09 fbredeme

Like we promised before, here it is a complete attitude controller simulink model.

Many thanks to Fabian.

amilcarlucas avatar Sep 19 '22 13:09 amilcarlucas

We agreed we should put it in, Tools/simulink. We are happy to have this merged into Copter-4.1 but recommended that it be put into master or it will almost never be found by users browsing the code.

rmackay9 avatar Sep 20 '22 01:09 rmackay9

can this be merged now?

amilcarlucas avatar Sep 25 '22 23:09 amilcarlucas

@amilcarlucas, yes, I've just re-run some of the failed jobs in the hope they pass next time.

rmackay9 avatar Sep 25 '22 23:09 rmackay9

cygwin still fails :(

amilcarlucas avatar Sep 27 '22 12:09 amilcarlucas

@rmackay9 should we just force this in, given that 4.1 isn't something we can actually reasonably expect to not have bitrotted in terms of testing? I know I don't pay any attention to it!

peterbarker avatar Oct 05 '22 10:10 peterbarker

@peterbarker, sure, sounds good to me. I'm not sure CI actually ever passed for the 4.1 branch

rmackay9 avatar Oct 05 '22 11:10 rmackay9

Thanks. We will do a 4.2 PR soon.

amilcarlucas avatar Oct 05 '22 11:10 amilcarlucas