File tree Expand file tree Collapse file tree 5 files changed +17
-18
lines changed Expand file tree Collapse file tree 5 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,7 @@ void AP_Periph_FW::init()
162
162
#ifdef I2C_SLAVE_ENABLED
163
163
enable_gps = !g.serial_i2c_mode ;
164
164
#endif
165
-
166
- if (gps.get_type (0 ) != AP_GPS::GPS_Type::GPS_TYPE_NONE && enable_gps) {
165
+ if (enable_gps) {
167
166
gps.init ();
168
167
} else {
169
168
#ifdef GPIO_USART1_RX
@@ -381,6 +380,15 @@ void AP_Periph_FW::prepare_reboot()
381
380
hal.scheduler ->delay (40 );
382
381
}
383
382
383
+
384
+ /*
385
+ reboot, optionally holding in bootloader. For scripting
386
+ */
387
+ void AP_Periph_FW::reboot (bool hold_in_bootloader)
388
+ {
389
+ hal.scheduler ->reboot (hold_in_bootloader);
390
+ }
391
+
384
392
AP_Periph_FW *AP_Periph_FW::_singleton;
385
393
386
394
AP_Periph_FW& AP::periph ()
Original file line number Diff line number Diff line change @@ -218,6 +218,9 @@ class AP_Periph_FW {
218
218
219
219
void show_progress (uint32_t pct);
220
220
221
+ // reboot the peripheral, optionally holding in bootloader
222
+ void reboot (bool hold_in_bootloader);
223
+
221
224
static uint64_t get_tracked_tx_timestamp (uint8_t i);
222
225
223
226
#ifdef HAL_USB_VBUS_SENS_CHAN
Original file line number Diff line number Diff line change 13
13
void AP_Periph_DroneCAN::can_gps_update (void )
14
14
{
15
15
auto &gps = periph.gps ;
16
- if (gps.get_type (0 ) == AP_GPS::GPS_Type::GPS_TYPE_NONE) {
17
- return ;
18
- }
19
-
20
16
// we need to record this time as its reset when we call gps.update()
21
17
uint64_t last_message_local_time_us = gps.last_pps_time_usec ();
22
18
gps.update ();
Original file line number Diff line number Diff line change @@ -81,4 +81,3 @@ PE12 SLEEP_CAN2 OUTPUT PUSHPULL SPEED_LOW HIGH
81
81
PB7 SWITCH_CAN2_USB OUTPUT PUSHPULL SPEED_LOW LOW
82
82
83
83
define CAN_APP_NODE_NAME "com.cubepilot.herepro"
84
- define STM32_HAS_M4 FALSE
Original file line number Diff line number Diff line change @@ -215,17 +215,10 @@ define HAL_USB_VBUS_SENS_CHAN 16
215
215
216
216
define CAN_APP_NODE_NAME "com.cubepilot.herepro"
217
217
218
- define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
219
-
220
- define COMPASS_CAL_ENABLED 0
221
-
222
- define HAL_ENABLE_SLCAN 1
223
- # passthrough CAN1
224
- define HAL_DEFAULT_CPORT 1
225
-
226
218
define CONFIGURE_PPS_PIN TRUE
227
219
define AP_PERIPH_HAVE_LED TRUE
228
220
221
+ define AP_SCRIPTING_ENABLED 1
229
222
define SCRIPTING_HEAP_SIZE (64*1024)
230
223
231
224
define GPS_MOVING_BASELINE 1
@@ -242,9 +235,9 @@ define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0
242
235
243
236
HAL_USE_USB_MSD 1
244
237
define MSD_THD_PRIO NORMALPRIO
245
- define AP_RC_CHANNEL_ENABLED 1
246
238
#define HAL_BRD_OPTIONS_DEFAULT 8
247
239
248
- define STM32_HAS_M4 FALSE
249
-
250
240
define AP_SERIALLED_ENABLED 1
241
+ define HAL_EFI_ENABLED 0
242
+ define AP_FILESYSTEM_ROMFS_ENABLED 1
243
+ define UBLOX_RXM_RAW_LOGGING 1
You can’t perform that action at this time.
0 commit comments