You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a project that will revert all control subsystems to a default (cleared) state, and temporarily deactivate all PWM and IC modules when a trigger is activated (except the IC module tied to the trigger itself).
Provide functionality for re-initializing all PWM and IC modules, should the trigger be deactivated.
The switch should function using negative logic (when the trigger is in the "off" position, the kill switch is activated, and when the trigger is "on," the kill switch is deactivated.
This is to provide a level of safety where the kill switch will be activated should the remote control go out of range (thus causing all inputs to go to the "off" state, activating the kill switch).
Steps to Complete
Use the framework in the User Input Parsing Subsystem to read the value coming from the switch
Do the following only once when the value switches from high to low:
Store the current status and value of the Lift System engine throttle
Change all Propulsion System motor PWM signals to the "off" state (0% duty cycle)
After allowing some time to pass for deceleration of the craft, gradually reduce the throttle of the Lift System engine until it is completely off (gradually to avoid slamming the hovercraft on the ground).
Deactivate all Propulsion motor PWM modules
Deactivate Lift System throttle control
Do the following only once when the value switches from low to high:
Activate Lift System throttle control and return it to the proper setting using the previously stored values (the engine will need to be manually started again, so this will not immediately do anything)
Activate all Propulsion System motor PWM modules (again, nothing will happen immediately as the modules are still set to a 0% duty cycle)
Resume normal hovercraft operation (reading values from user input for the Propulsion System motor duty cycle and the Lift System engine throttle).
These operations should most likely be performed via an interrupt that triggers on a rising/falling edge of this signal (so the general operation will look extremely similar to the User Input Parsing Subsystem, except that the activation of this subsystem will affect every other subsystem directly)
The text was updated successfully, but these errors were encountered:
Objectives
Steps to Complete
The text was updated successfully, but these errors were encountered: