Situation(Free Fall) awareness and poshold

Firmware/software/electronics/mechanics
Post Reply
minisol0175
Beginner
Posts: 4
Joined: Mon Jun 14, 2021 1:33 am

Situation(Free Fall) awareness and poshold

Post by minisol0175 »

Hello!

When I drop or throw a drone with the motor turned off while the power is on, I want to turn on the motor and do poshold or althold.

In the firmware, I think 'sitaw.c' is the related code.

But the latest version doesn't have that code...

What code can I touch to do this? Thanks!
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Situation(Free Fall) awareness and poshold

Post by tobias »

The sitaw.c code was removed and partly replaced by the supervisor.c. You should be able to move the free fall code from the sitaw.c in there. I'm not sure it is the right place thought but for you only that doesn't matter.
Post Reply