1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-18 08:54:15 +01:00

Added more telemetry baudrate options

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2198 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
pip 2010-12-06 08:31:24 +00:00 committed by pip
parent 72fab2f00b
commit 5e91f46633
2 changed files with 2 additions and 10 deletions

View File

@ -78,15 +78,7 @@ typedef struct {
// Field information
// Field Speed information
/* Enumeration options for field Speed */
typedef enum {
TELEMETRYSETTINGS_SPEED_2400 = 0,
TELEMETRYSETTINGS_SPEED_4800 = 1,
TELEMETRYSETTINGS_SPEED_9600 = 2,
TELEMETRYSETTINGS_SPEED_19200 = 3,
TELEMETRYSETTINGS_SPEED_38400 = 4,
TELEMETRYSETTINGS_SPEED_57600 = 5,
TELEMETRYSETTINGS_SPEED_115200 = 6
} TelemetrySettingsSpeedOptions;
typedef enum { TELEMETRYSETTINGS_SPEED_2400=0, TELEMETRYSETTINGS_SPEED_4800=1, TELEMETRYSETTINGS_SPEED_9600=2, TELEMETRYSETTINGS_SPEED_19200=3, TELEMETRYSETTINGS_SPEED_38400=4, TELEMETRYSETTINGS_SPEED_57600=5, TELEMETRYSETTINGS_SPEED_115200=6 } TelemetrySettingsSpeedOptions;
// Generic interface functions

View File

@ -80,7 +80,7 @@ static void setDefaults(UAVObjHandle obj, uint16_t instId)
// Initialize object fields to their default values
UAVObjGetInstanceData(obj, instId, &data);
memset(&data, 0, sizeof(TelemetrySettingsData));
data.Speed = 2;
data.Speed = 5;
UAVObjSetInstanceData(obj, instId, &data);