{"id":192,"date":"2020-02-08T13:52:59","date_gmt":"2020-02-08T13:52:59","guid":{"rendered":"http:\/\/blog.rctoysky.com\/?p=192"},"modified":"2020-02-08T13:55:09","modified_gmt":"2020-02-08T13:55:09","slug":"px4-safety-switch","status":"publish","type":"post","link":"https:\/\/blog.rctoysky.com\/?p=192","title":{"rendered":"PX4 Safety Switch"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Safety Switch<\/h1>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ardupilot.org\/copter\/_images\/pixhawk_safetyswitch.jpg\"><img decoding=\"async\" src=\"https:\/\/ardupilot.org\/copter\/_images\/pixhawk_safetyswitch.jpg\" alt=\"..\/_images\/pixhawk_safetyswitch.jpg\"\/><\/a><\/figure>\n\n\n\n<p>A safety switch can be used to enable\/disable the outputs to motors and servos.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">LED meaning<\/h2>\n\n\n\n<ul><li>Constant blinking &#8211; system is initialising<\/li><li>Intermittent blinking &#8211; system is ready. press the safety switch to enable output to the motors.<\/li><li>Solid &#8211; safety switch has been pressed, motors and servos are able to move once the vehicle is armed.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring the Safety Switch<\/h2>\n\n\n\n<ul><li><a href=\"https:\/\/ardupilot.org\/copter\/docs\/parameters.html#brd-safetyenable\">BRD_SAFETYENABLE<\/a>&nbsp;= 0 to disable the switch<\/li><li><a href=\"https:\/\/ardupilot.org\/copter\/docs\/parameters.html#brd-safety-mask\">BRD_SAFETY_MASK<\/a>&nbsp;can be used to set which individual channels are enabled\/disabled with the safety switch<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ardupilot.org\/copter\/_images\/safetyswitch-bitmask.png\"><img decoding=\"async\" src=\"https:\/\/ardupilot.org\/copter\/_images\/safetyswitch-bitmask.png\" alt=\"..\/_images\/safetyswitch-bitmask.png\"\/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Using the Safety Switch to force I\/O board firmware update<\/h4>\n\n\n\n<p>If the safety switch is held down for the first few seconds after a Pixhawk is powered up, the I\/O firmware is reloaded.<\/p>\n\n\n\n<p>This is normally not required but in some rare cases is required after a firmware upload if you hear the \u201cStart up Failed\u201d sound after startup (see&nbsp;<a href=\"https:\/\/ardupilot.org\/copter\/docs\/common-sounds-pixhawkpx4.html#common-sounds-pixhawkpx4\">Sounds wiki page<\/a>).<\/p>\n\n\n\n<p>Note<\/p>\n\n\n\n<p>A Pixhawk has two CPUs, the main CPU (aka FMU) is where ArduPilot runs. There is a separate I\/O CPU which is responsible for some I\/O including PWM outputs to the MAIN OUT channels. Pixracers only have the main CPU.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Safety Switch A safety switch can be used to enable\/disable the outputs to motors and servos. LED meaning Constant blinking<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/posts\/192"}],"collection":[{"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192"}],"version-history":[{"count":1,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/posts\/192\/revisions"}],"predecessor-version":[{"id":193,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=\/wp\/v2\/posts\/192\/revisions\/193"}],"wp:attachment":[{"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rctoysky.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}